@alexgorbatchev/shadcn 0.0.156 → 0.0.157

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.
@@ -1355,7 +1355,7 @@ function ImageComparisonToolbar({
1355
1355
  ]
1356
1356
  })
1357
1357
  }),
1358
- /* @__PURE__ */ jsx10(ToolbarSection, {
1358
+ mode === "toggle" && /* @__PURE__ */ jsx10(ToolbarSection, {
1359
1359
  title: "Shown image",
1360
1360
  titleId: `${id}-side`,
1361
1361
  children: /* @__PURE__ */ jsxs8(ToggleGroup2, {
@@ -1367,7 +1367,6 @@ function ImageComparisonToolbar({
1367
1367
  variant: "outline",
1368
1368
  size: "sm",
1369
1369
  spacing: 0,
1370
- disabled: mode !== "toggle",
1371
1370
  density,
1372
1371
  children: [
1373
1372
  /* @__PURE__ */ jsx10(ToggleGroupItem2, {
@@ -1381,7 +1380,7 @@ function ImageComparisonToolbar({
1381
1380
  ]
1382
1381
  })
1383
1382
  }),
1384
- /* @__PURE__ */ jsx10(ToolbarSection, {
1383
+ mode === "side-by-side" && /* @__PURE__ */ jsx10(ToolbarSection, {
1385
1384
  title: "Orientation",
1386
1385
  titleId: `${id}-orientation`,
1387
1386
  children: /* @__PURE__ */ jsxs8(ToggleGroup2, {
@@ -1392,7 +1391,6 @@ function ImageComparisonToolbar({
1392
1391
  variant: "outline",
1393
1392
  size: "sm",
1394
1393
  spacing: 0,
1395
- disabled: mode !== "side-by-side",
1396
1394
  density,
1397
1395
  children: [
1398
1396
  /* @__PURE__ */ jsxs8(ToggleGroupItem2, {
@@ -1425,11 +1423,10 @@ function ImageComparisonToolbar({
1425
1423
  density
1426
1424
  })
1427
1425
  }),
1428
- /* @__PURE__ */ jsx10(Button2, {
1426
+ mode === "toggle" && /* @__PURE__ */ jsx10(Button2, {
1429
1427
  variant: "outline",
1430
1428
  size: "sm",
1431
1429
  density,
1432
- disabled: mode !== "toggle",
1433
1430
  className: "shrink-0 touch-none",
1434
1431
  onPointerDown: (event) => {
1435
1432
  if (event.button === 0)
@@ -170,7 +170,7 @@ function SplitView({
170
170
  const content = /* @__PURE__ */ jsx("section", {
171
171
  "aria-label": contentLabel,
172
172
  hidden: isTakeover,
173
- className: cn2("min-w-0 bg-card", isWide && "h-full", contentPadding === "panel" && "p-4", isFill && (isOverlay ? "flex flex-1 flex-col" : "flex min-h-0 flex-1 flex-col overflow-hidden")),
173
+ className: cn2("min-w-0 bg-card", isWide && "h-full", contentPadding === "panel" && "p-4", isFill && (isOverlay ? "flex min-h-0 flex-1 flex-col" : "flex min-h-0 flex-1 flex-col overflow-hidden")),
174
174
  children
175
175
  });
176
176
  const sidebarSlot = portalSlots ? /* @__PURE__ */ jsx(SlotHost, {
@@ -256,7 +256,7 @@ function SplitView({
256
256
  }) : isOverlay ? /* @__PURE__ */ jsxs(Fragment, {
257
257
  children: [
258
258
  /* @__PURE__ */ jsx("div", {
259
- className: cn2("flex min-w-0 flex-col bg-card", isFill && "flex-1"),
259
+ className: cn2("flex min-w-0 flex-col bg-card", isFill && "h-full min-h-0 flex-1"),
260
260
  children: contentSlot
261
261
  }),
262
262
  /* @__PURE__ */ jsx(Drawer2, {
package/dist/prototype.js CHANGED
@@ -2051,7 +2051,7 @@ var program = new Command;
2051
2051
  // package.json
2052
2052
  var package_default = {
2053
2053
  name: "@alexgorbatchev/shadcn",
2054
- version: "0.0.156",
2054
+ version: "0.0.157",
2055
2055
  description: "Sharp, monospace React components with compact, comfortable, and touch densities.",
2056
2056
  license: "MIT",
2057
2057
  repository: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexgorbatchev/shadcn",
3
- "version": "0.0.156",
3
+ "version": "0.0.157",
4
4
  "description": "Sharp, monospace React components with compact, comfortable, and touch densities.",
5
5
  "license": "MIT",
6
6
  "repository": {