@hh.ru/magritte-internal-drop-base 7.1.19 → 7.2.0

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/DropBase.d.ts CHANGED
@@ -32,6 +32,7 @@ declare const DropBase: import("react").ForwardRefExoticComponent<{
32
32
  minHeight?: number;
33
33
  host?: RefObject<HTMLElement>;
34
34
  lockPlacement?: boolean;
35
+ id?: string;
35
36
  } & {
36
37
  onCopy?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
37
38
  onCopyCapture?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
package/DropBase.js CHANGED
@@ -15,7 +15,7 @@ import { ThemeWrapper } from '@hh.ru/magritte-ui-theme-wrapper';
15
15
  import './findBestFitPlacement.js';
16
16
  import './useMonitorResize.js';
17
17
 
18
- var styles = {"drop-base":"magritte-drop-base___uJNG4_7-1-19","dropBase":"magritte-drop-base___uJNG4_7-1-19"};
18
+ var styles = {"drop-base":"magritte-drop-base___uJNG4_7-2-0","dropBase":"magritte-drop-base___uJNG4_7-2-0"};
19
19
 
20
20
  const DropBaseComponent = ({ visible, children, arrowGuardDistance, activatorRef, preferredViewport, onClose, autoFocusWhenOpened = false, closeByClickOutside = true, animationTimeout, animationClassNames, guardDistanceToActivator = 8, guardDistanceToViewport = 24, minHeight = 200, role, widthEqualToActivator = false, allowShrinkHeightToFitIntoViewport = false, keyboardNavigationMode = null, ignoreIntersections = false, style = {}, onAppear, onBeforeExit, onAfterExit, host, placement, forceDropMetricsUpdate, lockPlacement = false, ...props }, ref) => {
21
21
  const dropNodeRef = useRef(null);
package/index.css CHANGED
@@ -1,4 +1,4 @@
1
- .magritte-drop-base___uJNG4_7-1-19{
1
+ .magritte-drop-base___uJNG4_7-2-0{
2
2
  position:absolute;
3
3
  outline:none;
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hh.ru/magritte-internal-drop-base",
3
- "version": "7.1.19",
3
+ "version": "7.2.0",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "sideEffects": [
@@ -24,7 +24,7 @@
24
24
  "@hh.ru/magritte-common-use-multiple-refs": "1.1.11",
25
25
  "@hh.ru/magritte-common-use-no-bubbling": "1.0.8",
26
26
  "@hh.ru/magritte-common-use-when-font-loaded": "1.0.14",
27
- "@hh.ru/magritte-ui-theme-wrapper": "1.1.13"
27
+ "@hh.ru/magritte-ui-theme-wrapper": "1.1.14"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "classnames": "2.3.2",
@@ -35,5 +35,5 @@
35
35
  "publishConfig": {
36
36
  "access": "public"
37
37
  },
38
- "gitHead": "773d4352b733cf17fd5c2e1a5eb0a047d63fd8a0"
38
+ "gitHead": "51d0af522f9220f8afc59feee4834f50e6d99d2d"
39
39
  }
package/types.d.ts CHANGED
@@ -85,5 +85,6 @@ export type DropBasePermanentProps = {
85
85
  * подходящее расположение будет вычислено только один раз, при появлении выпадающего элемента
86
86
  */
87
87
  lockPlacement?: boolean;
88
+ id?: string;
88
89
  } & ReactHandlerProps;
89
90
  export {};