@alexgorbatchev/shadcn 0.0.178 → 0.0.179
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.
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
// src/components/image-viewer/FramedImage.tsx
|
|
6
6
|
import { cva } from "class-variance-authority";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
|
-
var framedImageVariants = cva("rounded-xs border border-media-edge", {
|
|
8
|
+
var framedImageVariants = cva("rounded-xs border border-media-edge object-contain", {
|
|
9
9
|
variants: {
|
|
10
10
|
size: {
|
|
11
|
-
intrinsic: "h-auto max-h-[70vh] w-auto max-w-full",
|
|
11
|
+
intrinsic: "h-auto max-h-[70vh] w-auto max-w-full self-start",
|
|
12
12
|
fill: "block h-auto w-full"
|
|
13
13
|
}
|
|
14
14
|
},
|
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.
|
|
2054
|
+
version: "0.0.179",
|
|
2055
2055
|
description: "Sharp, monospace React components with compact, comfortable, and touch densities.",
|
|
2056
2056
|
license: "MIT",
|
|
2057
2057
|
repository: {
|
|
@@ -57,6 +57,18 @@ Storybook CSF excerpts. Default args and render apply unless overridden. Local h
|
|
|
57
57
|
}
|
|
58
58
|
```
|
|
59
59
|
|
|
60
|
+
### TallInFlexColumn
|
|
61
|
+
|
|
62
|
+
```tsx
|
|
63
|
+
{
|
|
64
|
+
args: { src: fixture_tallScreenshot, alt: "Tall page" },
|
|
65
|
+
render: (args) => (<figure className="flex w-full max-w-3xl flex-col gap-1">
|
|
66
|
+
<FramedImage {...args}/>
|
|
67
|
+
<figcaption>Caption</figcaption>
|
|
68
|
+
</figure>)
|
|
69
|
+
}
|
|
70
|
+
```
|
|
71
|
+
|
|
60
72
|
### Fill
|
|
61
73
|
|
|
62
74
|
```tsx
|