@versini/ui-panel 9.0.4 → 10.0.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/dist/index.d.ts CHANGED
@@ -18,7 +18,7 @@ export declare const PANEL_CLASSNAME = "av-panel";
18
18
 
19
19
  declare type PanelProps = {
20
20
  /**
21
- * Class name to apply to the Panel - this will ONLY override the default width styles.
21
+ * Class name to apply to the Panel.
22
22
  */
23
23
  className?: string;
24
24
  /**
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- @versini/ui-panel v9.0.4
2
+ @versini/ui-panel v10.0.0
3
3
  © 2026 gizmette.com
4
4
  */
5
5
 
@@ -235,10 +235,10 @@ const getPanelClassName = ({ className, kind, borderMode, animation, maxWidth =
235
235
  * Panel styles
236
236
  */ [`${PANEL_CLASSNAME} sm:rounded-3xl sm:border`]: kind === /* inlined export .TYPE_PANEL */ ("panel"),
237
237
  /**
238
- * Widths and max widths for Panel when no className is provided
239
- */ ["w-full sm:w-[95%] md:max-w-2xl"]: kind === /* inlined export .TYPE_PANEL */ ("panel") && !className && maxWidth === /* inlined export .SMALL */ ("small"),
240
- ["w-full sm:w-[95%] md:max-w-3xl"]: kind === /* inlined export .TYPE_PANEL */ ("panel") && !className && maxWidth === /* inlined export .MEDIUM */ ("medium"),
241
- ["w-full sm:w-[95%] md:max-w-4xl"]: kind === /* inlined export .TYPE_PANEL */ ("panel") && !className && maxWidth === /* inlined export .LARGE */ ("large"),
238
+ * Widths and max widths for Panel
239
+ */ ["w-full sm:w-[95%] md:max-w-2xl"]: kind === /* inlined export .TYPE_PANEL */ ("panel") && maxWidth === /* inlined export .SMALL */ ("small"),
240
+ ["w-full sm:w-[95%] md:max-w-3xl"]: kind === /* inlined export .TYPE_PANEL */ ("panel") && maxWidth === /* inlined export .MEDIUM */ ("medium"),
241
+ ["w-full sm:w-[95%] md:max-w-4xl"]: kind === /* inlined export .TYPE_PANEL */ ("panel") && maxWidth === /* inlined export .LARGE */ ("large"),
242
242
  /**
243
243
  * Heights and max heights for Panel
244
244
  * Mobile: full height, Desktop: clamp between min and max to allow flexible sizing
@@ -253,8 +253,8 @@ const getPanelClassName = ({ className, kind, borderMode, animation, maxWidth =
253
253
  * Messagebox styles
254
254
  */ [`${MESSAGEBOX_CLASSNAME} rounded-3xl border`]: kind === TYPE_MESSAGEBOX,
255
255
  /**
256
- * Widths and max widths for Messagebox when no className is provided
257
- */ ["w-[95%] sm:w-[50%] md:max-w-2xl"]: kind === TYPE_MESSAGEBOX && !className,
256
+ * Widths and max widths for Messagebox
257
+ */ ["w-[95%] sm:w-[50%] md:max-w-2xl"]: kind === TYPE_MESSAGEBOX,
258
258
  /**
259
259
  * Heights and max heights for Messagebox
260
260
  */ "h-64": kind === TYPE_MESSAGEBOX && effectiveMaxHeight === /* inlined export .SMALL */ ("small"),
@@ -263,9 +263,8 @@ const getPanelClassName = ({ className, kind, borderMode, animation, maxWidth =
263
263
  /**
264
264
  * Messagebox border colors
265
265
  */ "border-border-dark": borderMode === "dark" && kind === TYPE_MESSAGEBOX,
266
- "border-border-accent": borderMode === "light" && kind === TYPE_MESSAGEBOX,
267
- [`${className}`]: !!className
268
- }),
266
+ "border-border-accent": borderMode === "light" && kind === TYPE_MESSAGEBOX
267
+ }, className),
269
268
  innerWrapper: "content flex flex-col rounded-[inherit] relative min-h-full",
270
269
  scrollableContent: clsx("flex-1 overflow-y-auto overflow-x-hidden", "pt-12", {
271
270
  "pb-12": hasFooter
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@versini/ui-panel",
3
- "version": "9.0.4",
3
+ "version": "10.0.0",
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.1",
46
+ "@versini/ui-button": "11.3.2",
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": "7ed95d479dbfd4ef12b1e2fe9fdb763e2e538274"
61
+ "gitHead": "918514700deb34e30b661e4aba57efaff70e5560"
62
62
  }