@oliasoft-open-source/react-ui-library 5.23.0-beta-13 → 5.23.0-beta-14

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.
Files changed (44) hide show
  1. package/dist/components/audit-log/audit-log.d.ts +5 -37
  2. package/dist/components/audit-log/audit-log.d.ts.map +1 -1
  3. package/dist/components/audit-log/changes-overview.d.ts +7 -2
  4. package/dist/components/audit-log/changes-overview.d.ts.map +1 -1
  5. package/dist/components/audit-log/comparison-view-modal.d.ts +2 -6
  6. package/dist/components/audit-log/comparison-view-modal.d.ts.map +1 -1
  7. package/dist/components/audit-log/utils.d.ts.map +1 -1
  8. package/dist/components/menu/layer/placementOptions.d.ts.map +1 -1
  9. package/dist/components/menu/menu.d.ts +2 -2
  10. package/dist/components/menu/menu.d.ts.map +1 -1
  11. package/dist/components/menu/menu.interface.d.ts +1 -1
  12. package/dist/components/menu/menu.interface.d.ts.map +1 -1
  13. package/dist/components/pop-confirm/pop-confirm.d.ts +1 -1
  14. package/dist/components/pop-confirm/pop-confirm.d.ts.map +1 -1
  15. package/dist/components/popover/popover.d.ts +2 -2
  16. package/dist/components/popover/popover.d.ts.map +1 -1
  17. package/dist/components/select/custom-select/custom-select.d.ts.map +1 -1
  18. package/dist/components/select/custom-select/hooks/use-custom-select-logic.d.ts +4 -4
  19. package/dist/components/select/custom-select/hooks/use-custom-select-logic.d.ts.map +1 -1
  20. package/dist/components/select/custom-select/layer/placementOptions.d.ts +0 -3
  21. package/dist/components/select/custom-select/layer/placementOptions.d.ts.map +1 -1
  22. package/dist/components/tooltip/tooltip-layer.d.ts +1 -1
  23. package/dist/components/tooltip/tooltip-layer.d.ts.map +1 -1
  24. package/dist/components/tooltip/tooltip.d.ts +2 -2
  25. package/dist/components/tooltip/tooltip.d.ts.map +1 -1
  26. package/dist/global.css +1 -1
  27. package/dist/helpers/floating-layer/components/arrow.d.ts +11 -0
  28. package/dist/helpers/floating-layer/components/arrow.d.ts.map +1 -0
  29. package/dist/helpers/floating-layer/components/root.d.ts +5 -0
  30. package/dist/helpers/floating-layer/components/root.d.ts.map +1 -0
  31. package/dist/helpers/floating-layer/hooks/use-floating-layer.d.ts +3 -0
  32. package/dist/helpers/floating-layer/hooks/use-floating-layer.d.ts.map +1 -0
  33. package/dist/helpers/floating-layer/hooks/use-hover.d.ts +6 -0
  34. package/dist/helpers/floating-layer/hooks/use-hover.d.ts.map +1 -0
  35. package/dist/helpers/floating-layer/hooks/use-mouse-position-as-trigger.d.ts +10 -0
  36. package/dist/helpers/floating-layer/hooks/use-mouse-position-as-trigger.d.ts.map +1 -0
  37. package/dist/helpers/floating-layer/index.d.ts +7 -0
  38. package/dist/helpers/floating-layer/index.d.ts.map +1 -0
  39. package/dist/helpers/floating-layer/types.d.ts +35 -0
  40. package/dist/helpers/floating-layer/types.d.ts.map +1 -0
  41. package/dist/helpers/floating-layer/utils/geometry.d.ts +27 -0
  42. package/dist/helpers/floating-layer/utils/geometry.d.ts.map +1 -0
  43. package/dist/index.js +1817 -1628
  44. package/package.json +2 -2
@@ -0,0 +1,11 @@
1
+ import { default as React } from 'react';
2
+ import { ArrowProps } from '../types';
3
+ type FloatingArrowProps = ArrowProps & {
4
+ size?: number;
5
+ backgroundColor?: string;
6
+ borderColor?: string;
7
+ borderWidth?: number;
8
+ };
9
+ export declare const Arrow: React.ForwardRefExoticComponent<Omit<FloatingArrowProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
10
+ export {};
11
+ //# sourceMappingURL=arrow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"arrow.d.ts","sourceRoot":"","sources":["../../../../src/helpers/floating-layer/components/arrow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAGtC,KAAK,kBAAkB,GAAG,UAAU,GAAG;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,KAAK,uGAqDjB,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { ReactNode } from 'react';
2
+ export declare const FloatingLayerRoot: ({ children }: {
3
+ children: ReactNode;
4
+ }) => import("react/jsx-runtime").JSX.Element;
5
+ //# sourceMappingURL=root.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"root.d.ts","sourceRoot":"","sources":["../../../../src/helpers/floating-layer/components/root.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGzC,eAAO,MAAM,iBAAiB,GAAI,cAAc;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,4CAQtE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { LayerOptions } from '../types';
2
+ export declare const useLayer: ({ isOpen, arrowOffset, containerOffset, placement, possiblePlacements, triggerOffset, overflowContainer, onOutsideClick, trigger, }: LayerOptions) => any;
3
+ //# sourceMappingURL=use-floating-layer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-floating-layer.d.ts","sourceRoot":"","sources":["../../../../src/helpers/floating-layer/hooks/use-floating-layer.tsx"],"names":[],"mappings":"AAuBA,OAAO,EAAU,YAAY,EAAE,MAAM,UAAU,CAAC;AAGhD,eAAO,MAAM,QAAQ,GAAI,qIAUtB,YAAY,KAAG,GA0JjB,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare const useHover: ({ delayEnter, delayLeave, hideOnScroll, }: {
2
+ delayEnter?: number;
3
+ delayLeave?: number;
4
+ hideOnScroll?: boolean;
5
+ }) => [boolean, Record<string, unknown>, () => void];
6
+ //# sourceMappingURL=use-hover.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-hover.d.ts","sourceRoot":"","sources":["../../../../src/helpers/floating-layer/hooks/use-hover.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,GAAI,2CAItB;IACD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,KAAG,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,IAAI,CAwDhD,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ export declare const useMousePositionAsTrigger: () => {
3
+ handleMouseEvent: (evt: React.MouseEvent<HTMLDivElement>) => void;
4
+ hasMousePosition: boolean;
5
+ resetMousePosition: () => void;
6
+ trigger: {
7
+ getBoundingClientRect: () => DOMRect;
8
+ } | null;
9
+ };
10
+ //# sourceMappingURL=use-mouse-position-as-trigger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-mouse-position-as-trigger.d.ts","sourceRoot":"","sources":["../../../../src/helpers/floating-layer/hooks/use-mouse-position-as-trigger.ts"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,eAAO,MAAM,yBAAyB;4BAML,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC;;;;;;CAuBhE,CAAC"}
@@ -0,0 +1,7 @@
1
+ export { Arrow } from './components/arrow';
2
+ export { FloatingLayerRoot } from './components/root';
3
+ export { useHover } from './hooks/use-hover';
4
+ export { useLayer } from './hooks/use-floating-layer';
5
+ export { useMousePositionAsTrigger } from './hooks/use-mouse-position-as-trigger';
6
+ export type { ArrowProps, Placement } from './types';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/helpers/floating-layer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAClF,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,35 @@
1
+ import { CSSProperties, Ref } from 'react';
2
+ export type Placement = 'top-start' | 'top-center' | 'top-end' | 'right-start' | 'right-center' | 'right-end' | 'bottom-start' | 'bottom-center' | 'bottom-end' | 'left-start' | 'left-center' | 'left-end' | 'center';
3
+ export type FloatingPlacement = 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end';
4
+ export type FloatingSide = 'top' | 'right' | 'bottom' | 'left';
5
+ export type VirtualTrigger = {
6
+ getBounds?: () => DOMRect;
7
+ getBoundingClientRect?: () => DOMRect;
8
+ };
9
+ export type Bounds = {
10
+ width: number;
11
+ height: number;
12
+ x: number;
13
+ y: number;
14
+ top: number;
15
+ right: number;
16
+ bottom: number;
17
+ left: number;
18
+ };
19
+ export type LayerOptions = {
20
+ arrowOffset?: number;
21
+ containerOffset?: number;
22
+ isOpen: boolean;
23
+ overflowContainer?: boolean;
24
+ placement?: Placement | string;
25
+ possiblePlacements?: Array<Placement | string>;
26
+ triggerOffset?: number;
27
+ onOutsideClick?: () => void;
28
+ trigger?: VirtualTrigger | null;
29
+ };
30
+ export type ArrowProps = {
31
+ ref?: Ref<SVGSVGElement>;
32
+ style?: CSSProperties;
33
+ placement?: FloatingPlacement;
34
+ };
35
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/helpers/floating-layer/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE3C,MAAM,M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AC;CACjC,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,GAAG,CAAC,EAAE,GAAG,CAAC,aAAa,CAAC,CAAC;IACzB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,SAAS,CAAC,EAAE,iBAAiB,CAAC;CAC/B,CAAC"}
@@ -0,0 +1,27 @@
1
+ import { CSSProperties } from 'react';
2
+ import { FloatingPlacement, FloatingSide } from '../types';
3
+ type ArrowCoordinates = {
4
+ x?: number;
5
+ y?: number;
6
+ };
7
+ export type ArrowGeometry = {
8
+ width: number;
9
+ height: number;
10
+ edgeStyle: CSSProperties;
11
+ path: string;
12
+ borderPath: string;
13
+ };
14
+ export declare const toFloatingPlacement: (placement?: "center" | string) => FloatingPlacement;
15
+ export declare const getPlacementSide: (placement?: string) => FloatingSide | undefined;
16
+ export declare const getArrowSide: ({ placement, style, }: {
17
+ placement?: string;
18
+ style?: CSSProperties;
19
+ }) => FloatingSide;
20
+ export declare const getArrowStyle: (placement: FloatingPlacement, coordinates?: ArrowCoordinates, arrowOffset?: number) => CSSProperties;
21
+ export declare const getArrowGeometry: ({ side, size, borderWidth, }: {
22
+ side: FloatingSide;
23
+ size: number;
24
+ borderWidth: number;
25
+ }) => ArrowGeometry;
26
+ export {};
27
+ //# sourceMappingURL=geometry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geometry.d.ts","sourceRoot":"","sources":["../../../../src/helpers/floating-layer/utils/geometry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE3D,KAAK,gBAAgB,GAAG;IACtB,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,aAAa,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAC9B,YAAW,QAAQ,GAAG,MAAuB,KAC5C,iBAMF,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAC3B,YAAY,MAAM,KACjB,YAAY,GAAG,SAajB,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,uBAG1B;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB,KAAG,YAEH,CAAC;AAEF,eAAO,MAAM,aAAa,GACxB,WAAW,iBAAiB,EAC5B,cAAc,gBAAgB,EAC9B,oBAAe,KACd,aAoBF,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,8BAI9B;IACD,IAAI,EAAE,YAAY,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACrB,KAAG,aAaH,CAAC"}