@alexgorbatchev/shadcn 0.0.178 → 0.0.180
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/{chunk-2jsgsjas.js → chunk-607s04df.js} +2 -2
- package/dist/{chunk-4fdcjb73.js → chunk-q1t6k1sr.js} +1 -1
- package/dist/components/image-viewer/index.js +1 -1
- package/dist/components/json-render/index.js +2 -2
- package/dist/index.js +1 -1
- package/dist/prototype.js +1 -1
- package/llms/components/data-display/FramedImage.md +12 -0
- package/llms/components/navigation/Outline.md +13 -0
- package/package.json +1 -1
|
@@ -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
|
},
|
|
@@ -951,7 +951,7 @@ function OutlineSection2({ title, meta, children }) {
|
|
|
951
951
|
children: [
|
|
952
952
|
/* @__PURE__ */ jsx11("p", {
|
|
953
953
|
id: titleId,
|
|
954
|
-
className: "min-w-0
|
|
954
|
+
className: "min-w-0 font-medium break-words",
|
|
955
955
|
children: title
|
|
956
956
|
}),
|
|
957
957
|
meta != null && /* @__PURE__ */ jsx11("span", {
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
PaginationPrevious2,
|
|
27
27
|
PaginationNext2,
|
|
28
28
|
PaginationEllipsis2
|
|
29
|
-
} from "../../chunk-
|
|
29
|
+
} from "../../chunk-q1t6k1sr.js";
|
|
30
30
|
import {
|
|
31
31
|
MenuPopup,
|
|
32
32
|
MenuItem2,
|
|
@@ -168,7 +168,7 @@ import {
|
|
|
168
168
|
} from "../../chunk-3ft0zbbf.js";
|
|
169
169
|
import {
|
|
170
170
|
FramedImage2
|
|
171
|
-
} from "../../chunk-
|
|
171
|
+
} from "../../chunk-607s04df.js";
|
|
172
172
|
import {
|
|
173
173
|
componentDefinitions2
|
|
174
174
|
} from "../../chunk-h1b1mqnc.js";
|
package/dist/index.js
CHANGED
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.180",
|
|
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
|
|
@@ -40,3 +40,16 @@ Storybook CSF excerpts. Default args and render apply unless overridden. Local h
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
```
|
|
43
|
+
|
|
44
|
+
### LongSectionTitle
|
|
45
|
+
|
|
46
|
+
```tsx
|
|
47
|
+
{
|
|
48
|
+
args: {
|
|
49
|
+
className: "w-56",
|
|
50
|
+
children: (<OutlineSection title="Q7 · Supply-chain vendor quotes and proofs of concept">
|
|
51
|
+
<OutlineItem label="What dependency data may go to vendors?" state="Not answered" onSelect={fn()}/>
|
|
52
|
+
</OutlineSection>),
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
```
|