@oliasoft-open-source/react-ui-library 7.1.0 → 7.1.2-beta-1
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/popover/popover.d.ts.map +1 -1
- package/dist/components/popover/popover.test-case.stories.d.ts +1 -0
- package/dist/components/popover/popover.test-case.stories.d.ts.map +1 -1
- package/dist/components/popover/use-popover-top-layer-dismiss.d.ts +20 -0
- package/dist/components/popover/use-popover-top-layer-dismiss.d.ts.map +1 -0
- package/dist/index.js +1120 -1094
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../../src/components/popover/popover.tsx"],"names":[],"mappings":"AAAA,OAAc,EAIZ,SAAS,EAMV,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../../src/components/popover/popover.tsx"],"names":[],"mappings":"AAAA,OAAc,EAIZ,SAAS,EAMV,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAkBnD,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IACrC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,gGAAgG;IAChG,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,kJAAkJ;IAClJ,0BAA0B,CAAC,EAAE,OAAO,CAAC;CACtC;AAED,eAAO,MAAM,OAAO,GAAI,wNAcrB,aAAa,mDAoIf,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover.test-case.stories.d.ts","sourceRoot":"","sources":["../../../src/components/popover/popover.test-case.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEtD,OAAO,EAAE,aAAa,EAAW,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"popover.test-case.stories.d.ts","sourceRoot":"","sources":["../../../src/components/popover/popover.test-case.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEtD,OAAO,EAAE,aAAa,EAAW,MAAM,WAAW,CAAC;wBAoB9C,IAAI;AAZT,wBAYU;AAEV,eAAO,MAAM,IAAI,EAAE,OAAO,CAAC,aAAa,CAAmC,CAAC;AAqE5E,eAAO,MAAM,qBAAqB,EAAE,OAiBnC,CAAC;AA6BF,eAAO,MAAM,wBAAwB;;4BAWqB;QAAE,aAAa,EAAE,WAAW,CAAA;KAAE;CADvF,CAAC;AAeF,eAAO,MAAM,0BAA0B;;4BAWqB;QAAE,aAAa,EAAE,WAAW,CAAA;KAAE;CADzF,CAAC;AAeF,eAAO,MAAM,8BAA8B,EAAE,OAAO,CAAC,aAAa,CA2BjE,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
import { TEmpty } from '../../typings/common-type-definitions';
|
|
3
|
+
interface IUsePopoverTopLayerDismiss {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
closeOnOutsideClick: boolean;
|
|
6
|
+
isNonModal: boolean;
|
|
7
|
+
triggerRef: RefObject<HTMLElement | null>;
|
|
8
|
+
close: TEmpty;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Closes a modal Popover when its underlay is pressed inside a parent Modal.
|
|
12
|
+
*
|
|
13
|
+
* RAC `useInteractOutside` ignores presses in `[data-react-aria-top-layer]`.
|
|
14
|
+
* Modal popovers portal into `#modalLayers`, which uses that attribute so nested
|
|
15
|
+
* overlays stay interactive. The underlay is in the same node, so RAC never
|
|
16
|
+
* dismisses it.
|
|
17
|
+
*/
|
|
18
|
+
export declare const usePopoverTopLayerDismiss: ({ isOpen, closeOnOutsideClick, isNonModal, triggerRef, close, }: IUsePopoverTopLayerDismiss) => void;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=use-popover-top-layer-dismiss.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-popover-top-layer-dismiss.d.ts","sourceRoot":"","sources":["../../../src/components/popover/use-popover-top-layer-dismiss.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAa,MAAM,OAAO,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AAKzD,UAAU,0BAA0B;IAClC,MAAM,EAAE,OAAO,CAAC;IAChB,mBAAmB,EAAE,OAAO,CAAC;IAC7B,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAC1C,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,yBAAyB,GAAI,iEAMvC,0BAA0B,KAAG,IA6B/B,CAAC"}
|