@versini/ui-panel 9.0.5 → 10.0.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/index.d.ts +1 -1
- package/dist/index.js +17 -29
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
@versini/ui-panel
|
|
2
|
+
@versini/ui-panel v10.0.1
|
|
3
3
|
© 2026 gizmette.com
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -8,7 +8,6 @@ import { cloneElement, createContext, useCallback, useContext, useEffect, useId,
|
|
|
8
8
|
import { FloatingFocusManager, FloatingNode, FloatingOverlay, FloatingPortal, FloatingTree, useClick, useDismiss, useFloating, useFloatingNodeId, useFloatingParentNodeId, useInteractions, useMergeRefs, useRole } from "@floating-ui/react";
|
|
9
9
|
import clsx from "clsx";
|
|
10
10
|
|
|
11
|
-
;// CONCATENATED MODULE: ./src/common/constants.ts
|
|
12
11
|
const MESSAGEBOX_CLASSNAME = "av-messagebox";
|
|
13
12
|
const PANEL_CLASSNAME = "av-panel";
|
|
14
13
|
const TYPE_PANEL = "panel";
|
|
@@ -20,19 +19,13 @@ const MEDIUM = "medium";
|
|
|
20
19
|
const LARGE = "large";
|
|
21
20
|
const NONE = "none";
|
|
22
21
|
|
|
23
|
-
;// CONCATENATED MODULE: external "react/jsx-runtime"
|
|
24
22
|
|
|
25
|
-
;// CONCATENATED MODULE: external "react"
|
|
26
23
|
|
|
27
|
-
;// CONCATENATED MODULE: external "@floating-ui/react"
|
|
28
24
|
|
|
29
|
-
;// CONCATENATED MODULE: external "clsx"
|
|
30
25
|
|
|
31
|
-
;// CONCATENATED MODULE: ./src/components/Modal/ModalContext.tsx
|
|
32
26
|
|
|
33
27
|
const ModalContext = /*#__PURE__*/ createContext(null);
|
|
34
28
|
|
|
35
|
-
;// CONCATENATED MODULE: ./src/components/Modal/ModalHooks.tsx
|
|
36
29
|
|
|
37
30
|
|
|
38
31
|
|
|
@@ -96,7 +89,6 @@ const useModalContext = ()=>{
|
|
|
96
89
|
/* v8 ignore stop */ return context;
|
|
97
90
|
};
|
|
98
91
|
|
|
99
|
-
;// CONCATENATED MODULE: ./src/components/Modal/Modal.tsx
|
|
100
92
|
|
|
101
93
|
|
|
102
94
|
|
|
@@ -215,7 +207,6 @@ function ModalClose({ ref, trigger, className, ...rest }) {
|
|
|
215
207
|
});
|
|
216
208
|
}
|
|
217
209
|
|
|
218
|
-
;// CONCATENATED MODULE: ./src/components/Panel/utilities.ts
|
|
219
210
|
|
|
220
211
|
|
|
221
212
|
const getFooterAndHeaderCommonClasses = ({ blurEffect })=>{
|
|
@@ -235,10 +226,10 @@ const getPanelClassName = ({ className, kind, borderMode, animation, maxWidth =
|
|
|
235
226
|
* Panel styles
|
|
236
227
|
*/ [`${PANEL_CLASSNAME} sm:rounded-3xl sm:border`]: kind === /* inlined export .TYPE_PANEL */ ("panel"),
|
|
237
228
|
/**
|
|
238
|
-
* Widths and max widths for Panel
|
|
239
|
-
*/ ["w-full sm:w-[95%] md:max-w-2xl"]: kind === /* inlined export .TYPE_PANEL */ ("panel") &&
|
|
240
|
-
["w-full sm:w-[95%] md:max-w-3xl"]: kind === /* inlined export .TYPE_PANEL */ ("panel") &&
|
|
241
|
-
["w-full sm:w-[95%] md:max-w-4xl"]: kind === /* inlined export .TYPE_PANEL */ ("panel") &&
|
|
229
|
+
* Widths and max widths for Panel
|
|
230
|
+
*/ ["w-full sm:w-[95%] md:max-w-2xl"]: kind === /* inlined export .TYPE_PANEL */ ("panel") && maxWidth === /* inlined export .SMALL */ ("small"),
|
|
231
|
+
["w-full sm:w-[95%] md:max-w-3xl"]: kind === /* inlined export .TYPE_PANEL */ ("panel") && maxWidth === /* inlined export .MEDIUM */ ("medium"),
|
|
232
|
+
["w-full sm:w-[95%] md:max-w-4xl"]: kind === /* inlined export .TYPE_PANEL */ ("panel") && maxWidth === /* inlined export .LARGE */ ("large"),
|
|
242
233
|
/**
|
|
243
234
|
* Heights and max heights for Panel
|
|
244
235
|
* Mobile: full height, Desktop: clamp between min and max to allow flexible sizing
|
|
@@ -253,8 +244,8 @@ const getPanelClassName = ({ className, kind, borderMode, animation, maxWidth =
|
|
|
253
244
|
* Messagebox styles
|
|
254
245
|
*/ [`${MESSAGEBOX_CLASSNAME} rounded-3xl border`]: kind === TYPE_MESSAGEBOX,
|
|
255
246
|
/**
|
|
256
|
-
* Widths and max widths for Messagebox
|
|
257
|
-
*/ ["w-[95%] sm:w-[50%] md:max-w-2xl"]: kind === TYPE_MESSAGEBOX
|
|
247
|
+
* Widths and max widths for Messagebox
|
|
248
|
+
*/ ["w-[95%] sm:w-[50%] md:max-w-2xl"]: kind === TYPE_MESSAGEBOX,
|
|
258
249
|
/**
|
|
259
250
|
* Heights and max heights for Messagebox
|
|
260
251
|
*/ "h-64": kind === TYPE_MESSAGEBOX && effectiveMaxHeight === /* inlined export .SMALL */ ("small"),
|
|
@@ -263,9 +254,8 @@ const getPanelClassName = ({ className, kind, borderMode, animation, maxWidth =
|
|
|
263
254
|
/**
|
|
264
255
|
* Messagebox border colors
|
|
265
256
|
*/ "border-border-dark": borderMode === "dark" && kind === TYPE_MESSAGEBOX,
|
|
266
|
-
"border-border-accent": borderMode === "light" && kind === TYPE_MESSAGEBOX
|
|
267
|
-
|
|
268
|
-
}),
|
|
257
|
+
"border-border-accent": borderMode === "light" && kind === TYPE_MESSAGEBOX
|
|
258
|
+
}, className),
|
|
269
259
|
innerWrapper: "content flex flex-col rounded-[inherit] relative min-h-full",
|
|
270
260
|
scrollableContent: clsx("flex-1 overflow-y-auto overflow-x-hidden", "pt-12", {
|
|
271
261
|
"pb-12": hasFooter
|
|
@@ -291,7 +281,6 @@ const getPanelClassName = ({ className, kind, borderMode, animation, maxWidth =
|
|
|
291
281
|
};
|
|
292
282
|
};
|
|
293
283
|
|
|
294
|
-
;// CONCATENATED MODULE: ./src/components/Panel/Panel.tsx
|
|
295
284
|
|
|
296
285
|
|
|
297
286
|
|
|
@@ -423,16 +412,15 @@ const Panel = ({ open, onOpenChange, title, children, footer, borderMode = "ligh
|
|
|
423
412
|
});
|
|
424
413
|
};
|
|
425
414
|
|
|
426
|
-
;// CONCATENATED MODULE: ./src/components/index.ts
|
|
427
415
|
// @v8-ignore-start
|
|
428
416
|
|
|
429
417
|
|
|
430
418
|
|
|
431
|
-
var
|
|
432
|
-
var
|
|
433
|
-
var
|
|
434
|
-
var
|
|
435
|
-
var
|
|
436
|
-
var
|
|
437
|
-
var
|
|
438
|
-
export { MESSAGEBOX_CLASSNAME, PANEL_CLASSNAME, Panel, TYPE_MESSAGEBOX,
|
|
419
|
+
var components_ANIMATION_FADE = /* inlined export .ANIMATION_FADE */ ("fade");
|
|
420
|
+
var components_ANIMATION_SLIDE = /* inlined export .ANIMATION_SLIDE */ ("slide");
|
|
421
|
+
var components_LARGE = /* inlined export .LARGE */ ("large");
|
|
422
|
+
var components_MEDIUM = /* inlined export .MEDIUM */ ("medium");
|
|
423
|
+
var components_NONE = /* inlined export .NONE */ ("none");
|
|
424
|
+
var components_SMALL = /* inlined export .SMALL */ ("small");
|
|
425
|
+
var components_TYPE_PANEL = /* inlined export .TYPE_PANEL */ ("panel");
|
|
426
|
+
export { MESSAGEBOX_CLASSNAME, PANEL_CLASSNAME, Panel, TYPE_MESSAGEBOX, components_ANIMATION_FADE as ANIMATION_FADE, components_ANIMATION_SLIDE as ANIMATION_SLIDE, components_LARGE as LARGE, components_MEDIUM as MEDIUM, components_NONE as NONE, components_SMALL as SMALL, components_TYPE_PANEL as TYPE_PANEL };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/ui-panel",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Arno Versini",
|
|
6
6
|
"publishConfig": {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@testing-library/jest-dom": "6.9.1",
|
|
46
|
-
"@versini/ui-button": "11.3.
|
|
46
|
+
"@versini/ui-button": "11.3.3",
|
|
47
47
|
"@versini/ui-system": "6.0.2",
|
|
48
48
|
"@versini/ui-types": "8.3.0"
|
|
49
49
|
},
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"sideEffects": [
|
|
59
59
|
"**/*.css"
|
|
60
60
|
],
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "b46abc9c2e87588d6c9b438f70e68a4ffd05c28c"
|
|
62
62
|
}
|