oziko-ui-kit 0.0.128 → 0.0.135
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/components/atoms/layer-manager/LayerManager.d.ts +5 -0
- package/dist/components/atoms/portal/Portal.d.ts +2 -1
- package/dist/custom-hooks/useInputRepresenter.d.ts +2 -1
- package/dist/custom-hooks/useOnClickOutside.d.ts +6 -0
- package/dist/index.export.d.ts +3 -1
- package/dist/index.mjs +16 -16
- package/dist/index.mjs.map +1 -1
- package/dist/utils/iconList.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type FC, type ReactNode, type RefObject } from "react";
|
|
2
|
+
export declare const LayerManagerProvider: FC<{
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
}>;
|
|
5
|
+
export declare function useLayer(refs: RefObject<HTMLElement | null>[], onClickOutside?: (event: MouseEvent) => void, enabled?: boolean): void;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { type ReactNode, type FC } from "react";
|
|
1
|
+
import { type ReactNode, type FC, type RefObject } from "react";
|
|
2
2
|
export type TypePortalProps = {
|
|
3
3
|
children: ReactNode;
|
|
4
4
|
className?: string;
|
|
5
5
|
onClickOutside?: (event?: MouseEvent) => void;
|
|
6
|
+
additionalRefs?: RefObject<HTMLElement | null>[];
|
|
6
7
|
};
|
|
7
8
|
declare const Portal: FC<TypePortalProps>;
|
|
8
9
|
export default Portal;
|
|
@@ -128,6 +128,7 @@ type TypeUseInputRepresenter = {
|
|
|
128
128
|
onChange?: (value: any) => void;
|
|
129
129
|
containerClassName?: string;
|
|
130
130
|
errorClassName?: string;
|
|
131
|
+
typeOverrides?: Partial<TypeInputTypeMap>;
|
|
131
132
|
};
|
|
132
|
-
declare const useInputRepresenter: ({ properties, value, error, onChange, containerClassName, errorClassName, }: TypeUseInputRepresenter) => (import("react/jsx-runtime").JSX.Element | null)[];
|
|
133
|
+
declare const useInputRepresenter: ({ properties, value, error, onChange, containerClassName, errorClassName, typeOverrides, }: TypeUseInputRepresenter) => (import("react/jsx-runtime").JSX.Element | null)[];
|
|
133
134
|
export default useInputRepresenter;
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { type RefObject } from "react";
|
|
2
|
+
/** @deprecated No longer needed — Portal/Popover/Select use LayerManager now. Kept for backward compatibility. */
|
|
3
|
+
export declare const handledClickOutsideEvents: WeakSet<Event>;
|
|
2
4
|
type ElementType = HTMLElement | null;
|
|
3
5
|
type TargetElement = RefObject<ElementType> | ElementType;
|
|
4
6
|
type TypeUseOnClickOutside = {
|
|
5
7
|
targetElements: (TargetElement | undefined)[];
|
|
6
8
|
onClickOutside: (event?: MouseEvent) => void;
|
|
7
9
|
};
|
|
10
|
+
/**
|
|
11
|
+
* For non-portal inline components (e.g. Autocomplete).
|
|
12
|
+
* Portal-based components should use `useLayer` from LayerManager instead.
|
|
13
|
+
*/
|
|
8
14
|
export declare const useOnClickOutside: ({ targetElements, onClickOutside }: TypeUseOnClickOutside) => void;
|
|
9
15
|
export {};
|
package/dist/index.export.d.ts
CHANGED
|
@@ -76,8 +76,9 @@ export { default as RelationInput } from "./components/atoms/relation-input/Rela
|
|
|
76
76
|
export { default as CircularProgress } from "./components/atoms/CircularProgress/CircularProgress";
|
|
77
77
|
export { default as useInputRepresenter } from "./custom-hooks/useInputRepresenter";
|
|
78
78
|
export { default as useKeyDown } from "./custom-hooks/useKeyDown";
|
|
79
|
-
export { useOnClickOutside } from "./custom-hooks/useOnClickOutside";
|
|
79
|
+
export { useOnClickOutside, handledClickOutsideEvents } from "./custom-hooks/useOnClickOutside";
|
|
80
80
|
export { default as useAdaptivePosition } from "./custom-hooks/useAdaptivePosition";
|
|
81
|
+
export { LayerManagerProvider, useLayer } from "./components/atoms/layer-manager/LayerManager";
|
|
81
82
|
export { createTheme } from "./theme/createTheme";
|
|
82
83
|
export { useTheme } from "./theme/ThemeContext";
|
|
83
84
|
export { type TypeChartComponentProps } from "./components/atoms/chart/Chart";
|
|
@@ -182,6 +183,7 @@ export { type IconName } from "./utils/iconList";
|
|
|
182
183
|
export { type TypeInputType } from "./custom-hooks/useInputRepresenter";
|
|
183
184
|
export { type ColorPickerProps, type ColorValue, type ColorFormat, } from "./components/atoms/color-picker";
|
|
184
185
|
export { type TypeProperties } from "./custom-hooks/useInputRepresenter";
|
|
186
|
+
export { type TypeInputTypeMap } from "./custom-hooks/useInputRepresenter";
|
|
185
187
|
export { api as apiUtil } from "./utils/api";
|
|
186
188
|
export { color as colorUtil } from "./utils/color";
|
|
187
189
|
export { helperUtils } from "./utils/helperUtils";
|