@alexgorbatchev/shadcn 0.0.123 → 0.0.124
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-8x9hkznc.js → chunk-8ja1nk62.js} +1 -1
- package/dist/{chunk-wjs8ks1h.js → chunk-dhtk1cfw.js} +2 -1
- package/dist/{chunk-5eswhdbp.js → chunk-xdher2cd.js} +1 -1
- package/dist/components/assistant-ui/native/ThreadListSidebar.js +2 -2
- package/dist/components/assistant-ui/native/index.js +2 -2
- package/dist/components/json-render/index.js +2 -2
- package/dist/index.js +2 -2
- package/dist/prototype.js +1 -1
- package/llms/components/overlays/Sheet.md +38 -0
- package/package.json +1 -1
|
@@ -104,6 +104,7 @@ function SheetContent2({
|
|
|
104
104
|
"data-slot": "sheet-content",
|
|
105
105
|
"data-scroll": "none",
|
|
106
106
|
"data-side": side,
|
|
107
|
+
"data-close-button": showCloseButton ? "" : undefined,
|
|
107
108
|
"data-sized": sheetWidth === undefined ? undefined : "",
|
|
108
109
|
style: sheetWidth === undefined ? style : (state) => {
|
|
109
110
|
const sized = {
|
|
@@ -140,7 +141,7 @@ function SheetHeader2({ density, className, ...props }) {
|
|
|
140
141
|
return /* @__PURE__ */ jsx("div", {
|
|
141
142
|
"data-density": density,
|
|
142
143
|
"data-slot": "sheet-header",
|
|
143
|
-
className: cn2("flex flex-col gap-0.5 p-panel", className),
|
|
144
|
+
className: cn2("flex flex-col gap-0.5 p-panel in-data-close-button:pe-[calc(1.25rem+var(--spacing-control-sm))]", className),
|
|
144
145
|
...props
|
|
145
146
|
});
|
|
146
147
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ThreadListSidebar2
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-8ja1nk62.js";
|
|
4
4
|
import"../../../chunk-645t7r1c.js";
|
|
5
5
|
import"../../../chunk-9t5h5ps3.js";
|
|
6
6
|
import"../../../chunk-4bjqbky7.js";
|
|
7
|
-
import"../../../chunk-
|
|
7
|
+
import"../../../chunk-dhtk1cfw.js";
|
|
8
8
|
import"../../../chunk-1fzwfn11.js";
|
|
9
9
|
import"../../../chunk-m4geb1s5.js";
|
|
10
10
|
import"../../../chunk-tcefvfr8.js";
|
|
@@ -201,10 +201,10 @@ import {
|
|
|
201
201
|
TaskTray2
|
|
202
202
|
} from "../../../chunk-rgdesh1z.js";
|
|
203
203
|
import"../../../chunk-4bjqbky7.js";
|
|
204
|
-
import"../../../chunk-
|
|
204
|
+
import"../../../chunk-dhtk1cfw.js";
|
|
205
205
|
import {
|
|
206
206
|
ThreadListSidebar2
|
|
207
|
-
} from "../../../chunk-
|
|
207
|
+
} from "../../../chunk-8ja1nk62.js";
|
|
208
208
|
import {
|
|
209
209
|
useVoiceTranscript2,
|
|
210
210
|
VoiceConversation2
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
PaginationPrevious2,
|
|
27
27
|
PaginationNext2,
|
|
28
28
|
PaginationEllipsis2
|
|
29
|
-
} from "../../chunk-
|
|
29
|
+
} from "../../chunk-xdher2cd.js";
|
|
30
30
|
import {
|
|
31
31
|
MenuPopup,
|
|
32
32
|
MenuItem2,
|
|
@@ -153,7 +153,7 @@ import {
|
|
|
153
153
|
import"../../chunk-7vnpp3ya.js";
|
|
154
154
|
import"../../chunk-m4geb1s5.js";
|
|
155
155
|
import"../../chunk-9ecf92s6.js";
|
|
156
|
-
import"../../chunk-
|
|
156
|
+
import"../../chunk-dhtk1cfw.js";
|
|
157
157
|
import"../../chunk-tcefvfr8.js";
|
|
158
158
|
import"../../chunk-38barrma.js";
|
|
159
159
|
import"../../chunk-0ef27nx1.js";
|
package/dist/index.js
CHANGED
|
@@ -181,7 +181,7 @@ import {
|
|
|
181
181
|
StatusTracker2,
|
|
182
182
|
DashboardLayout2,
|
|
183
183
|
BillingUsage2
|
|
184
|
-
} from "./chunk-
|
|
184
|
+
} from "./chunk-xdher2cd.js";
|
|
185
185
|
import {
|
|
186
186
|
Combobox2,
|
|
187
187
|
ComboboxValue2,
|
|
@@ -371,7 +371,7 @@ import {
|
|
|
371
371
|
SidebarMenuSub2,
|
|
372
372
|
SidebarMenuSubItem2,
|
|
373
373
|
SidebarMenuSubButton2
|
|
374
|
-
} from "./chunk-
|
|
374
|
+
} from "./chunk-dhtk1cfw.js";
|
|
375
375
|
import {
|
|
376
376
|
Avatar2,
|
|
377
377
|
AvatarImage2,
|
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.124",
|
|
2055
2055
|
description: "Sharp, monospace React components with compact and comfortable densities.",
|
|
2056
2056
|
license: "MIT",
|
|
2057
2057
|
repository: {
|
|
@@ -161,6 +161,44 @@ Storybook CSF excerpts. Default args and render apply unless overridden. Local h
|
|
|
161
161
|
}
|
|
162
162
|
```
|
|
163
163
|
|
|
164
|
+
### LongTitle
|
|
165
|
+
|
|
166
|
+
```tsx
|
|
167
|
+
{
|
|
168
|
+
args: { side: "right", width: 640 },
|
|
169
|
+
render: (args) => (<Sheet>
|
|
170
|
+
<SheetTrigger render={<Button variant="outline"/>}>Open commit</SheetTrigger>
|
|
171
|
+
<SheetContent {...args}>
|
|
172
|
+
<SheetHeader>
|
|
173
|
+
<SheetTitle>
|
|
174
|
+
1 commit to main: feat(sheet): a side sheet takes a width and never grows past the viewport
|
|
175
|
+
</SheetTitle>
|
|
176
|
+
<SheetDescription>Pushed to the main branch.</SheetDescription>
|
|
177
|
+
</SheetHeader>
|
|
178
|
+
</SheetContent>
|
|
179
|
+
</Sheet>)
|
|
180
|
+
}
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
### LongTitleCompact
|
|
184
|
+
|
|
185
|
+
```tsx
|
|
186
|
+
{
|
|
187
|
+
args: { ...LongTitle.args, density: "compact" },
|
|
188
|
+
render: (args) => (<Sheet>
|
|
189
|
+
<SheetTrigger render={<Button variant="outline"/>}>Open commit</SheetTrigger>
|
|
190
|
+
<SheetContent {...args}>
|
|
191
|
+
<SheetHeader>
|
|
192
|
+
<SheetTitle>
|
|
193
|
+
1 commit to main: feat(sheet): a side sheet takes a width and never grows past the viewport
|
|
194
|
+
</SheetTitle>
|
|
195
|
+
<SheetDescription>Pushed to the main branch.</SheetDescription>
|
|
196
|
+
</SheetHeader>
|
|
197
|
+
</SheetContent>
|
|
198
|
+
</Sheet>)
|
|
199
|
+
}
|
|
200
|
+
```
|
|
201
|
+
|
|
164
202
|
### Wide
|
|
165
203
|
|
|
166
204
|
```tsx
|