pennywise-ui 1.0.35 → 1.0.36
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/index.d.ts +1 -1
- package/dist/index.js +7 -2
- package/dist/index.umd.cjs +13 -13
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -275,7 +275,7 @@ export declare interface DropdownProps {
|
|
|
275
275
|
*
|
|
276
276
|
* @param isOpen - Новое состояние дропдауна.
|
|
277
277
|
*/
|
|
278
|
-
onChange: (isOpen: boolean
|
|
278
|
+
onChange: (isOpen: boolean) => void;
|
|
279
279
|
/**
|
|
280
280
|
* Содержимое дропдауна (то, что отображается при открытии).
|
|
281
281
|
*/
|
package/dist/index.js
CHANGED
|
@@ -5305,11 +5305,16 @@ const S2 = "Trigger__qLBhmuc6", w2 = "Content__JrjMmnQL", gi = {
|
|
|
5305
5305
|
}) => {
|
|
5306
5306
|
const { refs: a, floatingStyles: l, context: u } = C2({
|
|
5307
5307
|
open: e,
|
|
5308
|
-
onOpenChange:
|
|
5308
|
+
onOpenChange: (h, b) => {
|
|
5309
|
+
b && (b.preventDefault(), b.stopPropagation()), t(h);
|
|
5310
|
+
},
|
|
5309
5311
|
middleware: [Qf(4), qf(), Kf()],
|
|
5310
5312
|
placement: r,
|
|
5311
5313
|
whileElementsMounted: Bs
|
|
5312
|
-
}), f = p2(u, { toggle: i }), m = v2(u, {
|
|
5314
|
+
}), f = p2(u, { toggle: i }), m = v2(u, {
|
|
5315
|
+
escapeKey: !0,
|
|
5316
|
+
outsidePressEvent: "mousedown"
|
|
5317
|
+
}), p = y2(u, { role: "dialog" }), { getReferenceProps: v, getFloatingProps: g } = I2([
|
|
5313
5318
|
f,
|
|
5314
5319
|
m,
|
|
5315
5320
|
p
|