@classic-homes/theme-react 0.4.2 → 0.4.3

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.js CHANGED
@@ -3396,6 +3396,9 @@ var DataPanel = React24.forwardRef(
3396
3396
  const edge = controlledEdge ?? internalEdge;
3397
3397
  const isExpanded = controlledExpanded ?? internalExpanded;
3398
3398
  const showContent = variant !== "card" || isExpanded || isCardVerticalDragging;
3399
+ const resizeRight = !disableResize && (variant === "full" && (mode === "detached" || edge === "left") || variant === "card" && isExpanded && !isMobile);
3400
+ const resizeBottom = !disableResize && variant === "full" && (mode === "detached" || edge === "top");
3401
+ const hasFooter = !!(footerContent || actions.length > 0 || footerActions);
3399
3402
  const saveTimeoutRef = React24.useRef(null);
3400
3403
  const isMountedRef = React24.useRef(true);
3401
3404
  React24.useEffect(() => {
@@ -4246,7 +4249,13 @@ var DataPanel = React24.forwardRef(
4246
4249
  }
4247
4250
  ),
4248
4251
  showContent && /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_jsx_runtime25.Fragment, { children: [
4249
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(DataPanelContent, { children }),
4252
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
4253
+ DataPanelContent,
4254
+ {
4255
+ className: cn(resizeRight && "mr-2.5", resizeBottom && !hasFooter && "mb-2.5"),
4256
+ children
4257
+ }
4258
+ ),
4250
4259
  /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
4251
4260
  DataPanelFooter,
4252
4261
  {
package/dist/index.mjs CHANGED
@@ -3319,6 +3319,9 @@ var DataPanel = React24.forwardRef(
3319
3319
  const edge = controlledEdge ?? internalEdge;
3320
3320
  const isExpanded = controlledExpanded ?? internalExpanded;
3321
3321
  const showContent = variant !== "card" || isExpanded || isCardVerticalDragging;
3322
+ const resizeRight = !disableResize && (variant === "full" && (mode === "detached" || edge === "left") || variant === "card" && isExpanded && !isMobile);
3323
+ const resizeBottom = !disableResize && variant === "full" && (mode === "detached" || edge === "top");
3324
+ const hasFooter = !!(footerContent || actions.length > 0 || footerActions);
3322
3325
  const saveTimeoutRef = React24.useRef(null);
3323
3326
  const isMountedRef = React24.useRef(true);
3324
3327
  React24.useEffect(() => {
@@ -4169,7 +4172,13 @@ var DataPanel = React24.forwardRef(
4169
4172
  }
4170
4173
  ),
4171
4174
  showContent && /* @__PURE__ */ jsxs17(Fragment5, { children: [
4172
- /* @__PURE__ */ jsx25(DataPanelContent, { children }),
4175
+ /* @__PURE__ */ jsx25(
4176
+ DataPanelContent,
4177
+ {
4178
+ className: cn(resizeRight && "mr-2.5", resizeBottom && !hasFooter && "mb-2.5"),
4179
+ children
4180
+ }
4181
+ ),
4173
4182
  /* @__PURE__ */ jsx25(
4174
4183
  DataPanelFooter,
4175
4184
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@classic-homes/theme-react",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "React components for the Classic theme system",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",