fictoan-react 1.11.12 → 1.11.13
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.
|
@@ -1225,7 +1225,7 @@ var useClickOutside = function useClickOutside2(ref, handler) {
|
|
|
1225
1225
|
};
|
|
1226
1226
|
}, [ref, memoizedHandler]);
|
|
1227
1227
|
};
|
|
1228
|
-
var _excluded$F = ["children", "openWhen", "
|
|
1228
|
+
var _excluded$F = ["children", "openWhen", "closeUsing", "closeOnClickOutside", "padding", "position", "size", "bgColor", "bgColour", "isDismissible", "showOverlay", "label"];
|
|
1229
1229
|
function _extends$G() {
|
|
1230
1230
|
return _extends$G = Object.assign ? Object.assign.bind() : function(n) {
|
|
1231
1231
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -1294,7 +1294,7 @@ function _objectWithoutPropertiesLoose$F(r, e) {
|
|
|
1294
1294
|
return t;
|
|
1295
1295
|
}
|
|
1296
1296
|
var Drawer = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
|
|
1297
|
-
var children = _ref.children, openWhen = _ref.openWhen,
|
|
1297
|
+
var children = _ref.children, openWhen = _ref.openWhen, closeUsing = _ref.closeUsing, closeOnClickOutside = _ref.closeOnClickOutside, padding = _ref.padding, position = _ref.position, _ref$size = _ref.size, size = _ref$size === void 0 ? "medium" : _ref$size, bgColor = _ref.bgColor, bgColour = _ref.bgColour, _ref$isDismissible = _ref.isDismissible, isDismissible = _ref$isDismissible === void 0 ? true : _ref$isDismissible, _ref$showOverlay = _ref.showOverlay, showOverlay = _ref$showOverlay === void 0 ? false : _ref$showOverlay, label = _ref.label, props = _objectWithoutProperties$F(_ref, _excluded$F);
|
|
1298
1298
|
var _useState = useState(openWhen), _useState2 = _slicedToArray$c(_useState, 2), shouldRender = _useState2[0], setShouldRender = _useState2[1];
|
|
1299
1299
|
var drawerRef = useRef(null);
|
|
1300
1300
|
var effectiveRef = ref || drawerRef;
|
|
@@ -1321,7 +1321,7 @@ var Drawer = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
|
|
|
1321
1321
|
classNames.push(size);
|
|
1322
1322
|
}
|
|
1323
1323
|
var closeDrawer = function closeDrawer2() {
|
|
1324
|
-
return
|
|
1324
|
+
return closeUsing === null || closeUsing === void 0 ? void 0 : closeUsing();
|
|
1325
1325
|
};
|
|
1326
1326
|
useClickOutside(effectiveRef, closeOnClickOutside ? closeDrawer : function() {
|
|
1327
1327
|
});
|
|
@@ -5,7 +5,7 @@ export interface DrawerCustomProps {
|
|
|
5
5
|
position: "top" | "right" | "bottom" | "left";
|
|
6
6
|
size?: SpacingTypes;
|
|
7
7
|
openWhen?: boolean;
|
|
8
|
-
|
|
8
|
+
closeUsing?: () => void;
|
|
9
9
|
closeOnClickOutside?: boolean;
|
|
10
10
|
isDismissible?: boolean;
|
|
11
11
|
showOverlay?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../src/components/Drawer/Drawer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../src/components/Drawer/Drawer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAMtE,OAAO,cAAc,CAAC;AAGtB,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAIxE,MAAM,WAAW,iBAAiB;IAC1B,QAAQ,EAAgB,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;IAC5D,IAAoB,CAAC,EAAG,YAAY,CAAC;IACrC,QAAoB,CAAC,EAAG,OAAO,CAAC;IAChC,UAAoB,CAAC,EAAG,MAAM,IAAI,CAAC;IACnC,mBAAoB,CAAC,EAAG,OAAO,CAAC;IAChC,aAAoB,CAAC,EAAG,OAAO,CAAC;IAChC,WAAoB,CAAC,EAAG,OAAO,CAAC;IAChC,KAAoB,CAAC,EAAG,MAAM,CAAC;CACtC;AAED,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC;AAC/C,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,EAAE,MAAM,iBAAiB,CAAC,GAAG,iBAAiB,CAAC;AAGnH,eAAO,MAAM,MAAM,8JAyHlB,CAAC"}
|
package/dist/components/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client;";
|
|
3
|
-
import { A, g, h, B, i, b, a, C, c, s, t, d, _, f, e, D, E, q, F, l, m, n, H, ac, ad, ae, af, ag, ah, k, I, o, L, M, y, z, N, J, G, V, W, K, P, O, Q, r, R, x, w, U, S, p, a1, $, a0, Z, a2, a3, j, a4, u, v, a5, a6, ai, T, a7, aa, a9, ab, X, Y, a8 } from "../Heading-
|
|
3
|
+
import { A, g, h, B, i, b, a, C, c, s, t, d, _, f, e, D, E, q, F, l, m, n, H, ac, ad, ae, af, ag, ah, k, I, o, L, M, y, z, N, J, G, V, W, K, P, O, Q, r, R, x, w, U, S, p, a1, $, a0, Z, a2, a3, j, a4, u, v, a5, a6, ai, T, a7, aa, a9, ab, X, Y, a8 } from "../Heading-CprgCW_q.js";
|
|
4
4
|
export {
|
|
5
5
|
A as Accordion,
|
|
6
6
|
g as Article,
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client;";
|
|
3
|
-
import { A, g, h, B, i, b, a, C, c, s, t, d, _, f, e, D, E, q, F, l, m, n, H, ac, ad, ae, af, ag, ah, k, I, o, L, M, y, z, N, J, G, V, W, K, P, O, Q, r, R, x, w, U, S, p, a1, $, a0, Z, a2, a3, j, a4, u, v, a5, a6, ai, T, a7, aa, a9, ab, ak, aj, al, X, Y, a8 } from "./Heading-
|
|
3
|
+
import { A, g, h, B, i, b, a, C, c, s, t, d, _, f, e, D, E, q, F, l, m, n, H, ac, ad, ae, af, ag, ah, k, I, o, L, M, y, z, N, J, G, V, W, K, P, O, Q, r, R, x, w, U, S, p, a1, $, a0, Z, a2, a3, j, a4, u, v, a5, a6, ai, T, a7, aa, a9, ab, ak, aj, al, X, Y, a8 } from "./Heading-CprgCW_q.js";
|
|
4
4
|
function _toConsumableArray(r2) {
|
|
5
5
|
return _arrayWithoutHoles(r2) || _iterableToArray(r2) || _unsupportedIterableToArray(r2) || _nonIterableSpread();
|
|
6
6
|
}
|
package/package.json
CHANGED