@alexgorbatchev/shadcn 0.0.175 → 0.0.176
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-my884zez.js → chunk-078csjnf.js} +1 -1
- package/dist/{chunk-s731w97q.js → chunk-0vj8xax9.js} +1 -1
- package/dist/{chunk-r6c6a6vj.js → chunk-0ymgqgtm.js} +1 -1
- package/dist/{chunk-6cf0q7v2.js → chunk-277gskfc.js} +1 -1
- package/dist/{chunk-tjy21ppg.js → chunk-2pjgj1pn.js} +2 -2
- package/dist/{chunk-pbyj8rja.js → chunk-3vme6asz.js} +1 -1
- package/dist/{chunk-2hahvm8t.js → chunk-847akg71.js} +8 -8
- package/dist/{chunk-0evygc14.js → chunk-99086h5y.js} +1 -1
- package/dist/{chunk-dthve8hk.js → chunk-asp04tyc.js} +1 -1
- package/dist/{chunk-bvzjbk43.js → chunk-b28egcxt.js} +2 -2
- package/dist/{chunk-tqwb4mfs.js → chunk-bx9s8n7h.js} +1 -1
- package/dist/{chunk-9crjmpxq.js → chunk-c78ze1d9.js} +2 -2
- package/dist/{chunk-jjxrk4vk.js → chunk-cfqn6fxt.js} +2 -2
- package/dist/{chunk-vspw38yj.js → chunk-ensvs5mj.js} +2 -2
- package/dist/{chunk-nhn079xz.js → chunk-ew47kns7.js} +2 -2
- package/dist/{chunk-ggek1mdz.js → chunk-g0hkpc2x.js} +3 -3
- package/dist/{chunk-21pbbe1z.js → chunk-gaxdgfm9.js} +1 -1
- package/dist/{chunk-e4bd3aax.js → chunk-hqeb9ah0.js} +1 -1
- package/dist/{chunk-d3x4abk0.js → chunk-j5gaa3qq.js} +1 -1
- package/dist/{chunk-trahv0ax.js → chunk-jpywbx5p.js} +2 -2
- package/dist/{chunk-zvvs917e.js → chunk-jq5jdbfz.js} +1 -1
- package/dist/{chunk-26t5yajy.js → chunk-kcptvw8y.js} +17 -6
- package/dist/{chunk-a7ktat27.js → chunk-ks3c6erk.js} +1 -1
- package/dist/{chunk-55vpb7v2.js → chunk-nqvemk3q.js} +1 -1
- package/dist/{chunk-f5e7ez2z.js → chunk-q56p3jvx.js} +3 -3
- package/dist/{chunk-f7sjzbtx.js → chunk-qdptn0n5.js} +1 -1
- package/dist/{chunk-v0mygtss.js → chunk-scas6etd.js} +1 -1
- package/dist/{chunk-sv7343sv.js → chunk-stkypf55.js} +1 -1
- package/dist/{chunk-5xekygak.js → chunk-t58fms99.js} +1 -1
- package/dist/{chunk-1n63jgaq.js → chunk-vzckkf6b.js} +4 -4
- package/dist/{chunk-z4gg2ny5.js → chunk-x1tachv6.js} +1 -1
- package/dist/chunk-yz1ft8hs.js +24 -0
- package/dist/components/Bubble.d.ts +2 -1
- package/dist/components/Field.d.ts +5 -2
- package/dist/components/assistant-ui/elements/CommandPalette.js +3 -3
- package/dist/components/assistant-ui/elements/ComposerCommandItem.js +3 -3
- package/dist/components/assistant-ui/elements/ComposerMenuItem.js +2 -2
- package/dist/components/assistant-ui/elements/ComposerModelItem.js +3 -3
- package/dist/components/assistant-ui/elements/ComposerPersonItem.js +3 -3
- package/dist/components/assistant-ui/elements/EditMessage.js +2 -2
- package/dist/components/assistant-ui/elements/ElicitationForm.js +3 -3
- package/dist/components/assistant-ui/elements/FeedbackDialog.js +3 -3
- package/dist/components/assistant-ui/elements/MessageActions.js +2 -2
- package/dist/components/assistant-ui/elements/ModelPicker.js +2 -2
- package/dist/components/assistant-ui/elements/ModelSelector.js +8 -8
- package/dist/components/assistant-ui/elements/ModelSelectorContent.js +7 -7
- package/dist/components/assistant-ui/elements/ModelSelectorEmpty.js +2 -2
- package/dist/components/assistant-ui/elements/ModelSelectorFocusAnchor.js +2 -2
- package/dist/components/assistant-ui/elements/ModelSelectorGroup.js +2 -2
- package/dist/components/assistant-ui/elements/ModelSelectorItem.js +2 -2
- package/dist/components/assistant-ui/elements/ModelSelectorList.js +4 -4
- package/dist/components/assistant-ui/elements/ModelSelectorSearch.js +2 -2
- package/dist/components/assistant-ui/elements/ModelSelectorSeparator.js +2 -2
- package/dist/components/assistant-ui/elements/ReasoningEffort.js +2 -2
- package/dist/components/assistant-ui/elements/ScheduleCard.js +2 -2
- package/dist/components/assistant-ui/elements/SettingsPanel.js +3 -3
- package/dist/components/assistant-ui/index.js +28 -28
- package/dist/components/assistant-ui/native/ModelSelector.js +10 -10
- package/dist/components/assistant-ui/native/index.js +10 -10
- package/dist/components/assistant-ui/utils/diffViewer/constants.d.ts +2 -2
- package/dist/components/command/index.js +1 -1
- package/dist/components/event-calendar/index.js +1 -1
- package/dist/components/gantt/index.js +1 -1
- package/dist/components/image-viewer/index.js +3 -3
- package/dist/components/input-otp/index.js +1 -1
- package/dist/components/json-render/index.js +10 -10
- package/dist/components/tree/TreeItem.d.ts +1 -1
- package/dist/components/tree/index.js +15 -10
- package/dist/index.js +8 -8
- package/dist/prototype.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-g187prhe.js +0 -24
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "../../chunk-en44w1pn.js";
|
|
7
7
|
import {
|
|
8
8
|
StatusDot2
|
|
9
|
-
} from "../../chunk-
|
|
9
|
+
} from "../../chunk-b28egcxt.js";
|
|
10
10
|
import"../../chunk-8ssktt4b.js";
|
|
11
11
|
import"../../chunk-e6hk39ev.js";
|
|
12
12
|
import"../../chunk-x90xmrba.js";
|
|
@@ -29,6 +29,7 @@ import {
|
|
|
29
29
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
30
30
|
import { useRender } from "@base-ui/react/use-render";
|
|
31
31
|
import {
|
|
32
|
+
ArchiveIcon,
|
|
32
33
|
ChevronRightIcon,
|
|
33
34
|
CircleAlertIcon,
|
|
34
35
|
CircleCheckIcon,
|
|
@@ -62,7 +63,8 @@ var STATUS_ICONS = {
|
|
|
62
63
|
failed: CircleAlertIcon,
|
|
63
64
|
held: HourglassIcon,
|
|
64
65
|
"handed-back": CircleCheckIcon,
|
|
65
|
-
"handed-back-unsent": CircleCheckIcon
|
|
66
|
+
"handed-back-unsent": CircleCheckIcon,
|
|
67
|
+
archived: ArchiveIcon
|
|
66
68
|
};
|
|
67
69
|
function TreeItemStatusIcon({ status, className }) {
|
|
68
70
|
const Icon = STATUS_ICONS[status];
|
|
@@ -195,7 +197,7 @@ function TreeItem({
|
|
|
195
197
|
props: mergeProps({
|
|
196
198
|
...nativeProps,
|
|
197
199
|
ref: undefined,
|
|
198
|
-
className: cn2("flex min-w-0 flex-1 items-center gap-2 self-stretch -my-1 py-1 outline-none focus-visible:ring-2 focus-visible:ring-ring", faded),
|
|
200
|
+
className: cn2("flex min-w-0 flex-1 items-center gap-2 self-stretch -my-1 py-1 outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset", faded),
|
|
199
201
|
children: label,
|
|
200
202
|
onFocus: () => item.setFocused(),
|
|
201
203
|
onClick: (event) => {
|
|
@@ -249,7 +251,7 @@ function TreeItem({
|
|
|
249
251
|
onDragStart: undefined
|
|
250
252
|
} : {},
|
|
251
253
|
style: { paddingInlineStart: `${item.getItemMeta().level * (item.getTree().getConfig().indent ?? 20) + 8}px` },
|
|
252
|
-
className: cn2("relative flex min-h-control min-w-0 cursor-default items-center gap-2 rounded-sm border border-transparent py-1 pr-2 text-sm outline-none pointer-coarse:min-h-11", isAriaDisabled ? "cursor-not-allowed focus-visible:outline-1 focus-visible:outline-ring/60 focus-visible:-outline-offset-1" : "hover:bg-accent focus-visible:ring-2 focus-visible:ring-ring", (isSelected || isDropTarget || isInsideTarget) && (selectionStyle === "accent" && isSelected ? "border-primary bg-muted/60 font-medium text-foreground" : "bg-accent text-accent-foreground"), tone === "warning" && "before:pointer-events-none before:absolute before:inset-y-1 before:start-0 before:w-0.5 before:rounded-full before:bg-warning", isDimmed && "group/tree-item"),
|
|
254
|
+
className: cn2("relative flex min-h-control min-w-0 cursor-default items-center gap-2 rounded-sm border border-transparent py-1 pr-2 text-sm outline-none pointer-coarse:min-h-11", isAriaDisabled ? "cursor-not-allowed focus-visible:outline-1 focus-visible:outline-ring/60 focus-visible:-outline-offset-1" : "hover:bg-accent focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset", (isSelected || isDropTarget || isInsideTarget) && (selectionStyle === "accent" && isSelected ? "border-primary bg-muted/60 font-medium text-foreground" : "bg-accent text-accent-foreground"), tone === "warning" && "before:pointer-events-none before:absolute before:inset-y-1 before:start-0 before:w-0.5 before:rounded-full before:bg-warning", isDimmed && "group/tree-item"),
|
|
253
255
|
children: /* @__PURE__ */ jsxs(Fragment, {
|
|
254
256
|
children: [
|
|
255
257
|
item.isFolder() && expandOn === "disclosure" ? /* @__PURE__ */ jsx(Button2, {
|
|
@@ -269,15 +271,18 @@ function TreeItem({
|
|
|
269
271
|
children: /* @__PURE__ */ jsx(ChevronRightIcon, {
|
|
270
272
|
className: cn2(isExpanded && "rotate-90")
|
|
271
273
|
})
|
|
272
|
-
}) : item.isFolder() ? /* @__PURE__ */ jsx(
|
|
274
|
+
}) : item.isFolder() ? /* @__PURE__ */ jsx("span", {
|
|
273
275
|
"aria-hidden": "true",
|
|
274
|
-
className: cn2("size-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
276
|
+
className: cn2("inline-flex size-4 shrink-0 items-center justify-center", faded),
|
|
277
|
+
children: /* @__PURE__ */ jsx(ChevronRightIcon, {
|
|
278
|
+
className: cn2("size-3.5", isExpanded && "rotate-90")
|
|
279
|
+
})
|
|
280
|
+
}) : leading === undefined ? /* @__PURE__ */ jsx("span", {
|
|
281
|
+
className: cn2("shrink-0", expandOn === "disclosure" ? "size-control-xs" : "size-4")
|
|
282
|
+
}) : null,
|
|
278
283
|
leading !== undefined && /* @__PURE__ */ jsx("div", {
|
|
279
284
|
"data-slot": "tree-item-leading",
|
|
280
|
-
className: cn2("flex
|
|
285
|
+
className: cn2("flex shrink-0 items-center justify-center", expandOn === "disclosure" ? "size-control-xs" : "size-4 has-[>button]:size-control-xs", faded),
|
|
281
286
|
onClick: (event) => event.stopPropagation(),
|
|
282
287
|
onDoubleClick: (event) => event.stopPropagation(),
|
|
283
288
|
onKeyDown: (event) => event.stopPropagation(),
|
package/dist/index.js
CHANGED
|
@@ -188,11 +188,11 @@ import {
|
|
|
188
188
|
DashboardLayout2,
|
|
189
189
|
BillingUsage2,
|
|
190
190
|
SelectionAction2
|
|
191
|
-
} from "./chunk-
|
|
191
|
+
} from "./chunk-kcptvw8y.js";
|
|
192
192
|
import {
|
|
193
193
|
statusDotVariants2,
|
|
194
194
|
StatusDot2
|
|
195
|
-
} from "./chunk-
|
|
195
|
+
} from "./chunk-b28egcxt.js";
|
|
196
196
|
import {
|
|
197
197
|
Combobox2,
|
|
198
198
|
ComboboxValue2,
|
|
@@ -225,7 +225,7 @@ import {
|
|
|
225
225
|
useDropTarget2,
|
|
226
226
|
DropTarget2,
|
|
227
227
|
Kanban2
|
|
228
|
-
} from "./chunk-
|
|
228
|
+
} from "./chunk-c78ze1d9.js";
|
|
229
229
|
import {
|
|
230
230
|
NumberField2,
|
|
231
231
|
NumberFieldGroup2,
|
|
@@ -245,7 +245,7 @@ import {
|
|
|
245
245
|
} from "./chunk-5nch5bsy.js";
|
|
246
246
|
import {
|
|
247
247
|
Slider2
|
|
248
|
-
} from "./chunk-
|
|
248
|
+
} from "./chunk-nqvemk3q.js";
|
|
249
249
|
import {
|
|
250
250
|
MenuPortal,
|
|
251
251
|
MenuPopup,
|
|
@@ -301,17 +301,17 @@ import {
|
|
|
301
301
|
Toggle2,
|
|
302
302
|
ToggleGroup2,
|
|
303
303
|
ToggleGroupItem2
|
|
304
|
-
} from "./chunk-
|
|
304
|
+
} from "./chunk-3vme6asz.js";
|
|
305
305
|
import {
|
|
306
306
|
Checkbox2
|
|
307
307
|
} from "./chunk-b5s5y5wq.js";
|
|
308
308
|
import {
|
|
309
309
|
Kbd2,
|
|
310
310
|
KbdGroup2
|
|
311
|
-
} from "./chunk-
|
|
311
|
+
} from "./chunk-yz1ft8hs.js";
|
|
312
312
|
import {
|
|
313
313
|
Switch2
|
|
314
|
-
} from "./chunk-
|
|
314
|
+
} from "./chunk-stkypf55.js";
|
|
315
315
|
import {
|
|
316
316
|
Progress2,
|
|
317
317
|
ProgressTrack2,
|
|
@@ -336,7 +336,7 @@ import {
|
|
|
336
336
|
FieldDescription2,
|
|
337
337
|
FieldSeparator2,
|
|
338
338
|
FieldError2
|
|
339
|
-
} from "./chunk-
|
|
339
|
+
} from "./chunk-2pjgj1pn.js";
|
|
340
340
|
import {
|
|
341
341
|
Spinner2
|
|
342
342
|
} from "./chunk-t3p4dn1p.js";
|
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.176",
|
|
2055
2055
|
description: "Sharp, monospace React components with compact, comfortable, and touch densities.",
|
|
2056
2056
|
license: "MIT",
|
|
2057
2057
|
repository: {
|
package/package.json
CHANGED
package/dist/chunk-g187prhe.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
cn2
|
|
3
|
-
} from "./chunk-en44w1pn.js";
|
|
4
|
-
|
|
5
|
-
// src/components/Kbd.tsx
|
|
6
|
-
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
function Kbd2({ density, className, ...props }) {
|
|
8
|
-
return /* @__PURE__ */ jsx("kbd", {
|
|
9
|
-
"data-density": density,
|
|
10
|
-
"data-slot": "kbd",
|
|
11
|
-
className: cn2("pointer-events-none inline-flex h-tag w-fit min-w-5 items-center justify-center gap-1 rounded-sm bg-muted px-1 font-sans text-xs font-medium text-muted-foreground select-none in-data-[size=xs]:h-auto in-data-[size=xs]:min-w-4 in-data-[size=xs]:px-1 in-data-[size=xs]:py-0.5 in-data-[size=xs]:text-[10px] in-data-[size=xs]:leading-none in-data-[slot=tooltip-content]:bg-muted in-data-[slot=tooltip-content]:text-foreground in-data-[variant=default]:bg-primary-foreground/15 in-data-[variant=default]:text-primary-foreground in-data-[variant=success]:bg-success-foreground/15 in-data-[variant=success]:text-success-foreground in-data-[variant=warning]:bg-warning-foreground/15 in-data-[variant=warning]:text-warning-foreground [&_svg:not([class*='size-'])]:size-3", className),
|
|
12
|
-
...props
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
function KbdGroup2({ density, className, ...props }) {
|
|
16
|
-
return /* @__PURE__ */ jsx("kbd", {
|
|
17
|
-
"data-density": density,
|
|
18
|
-
"data-slot": "kbd-group",
|
|
19
|
-
className: cn2("inline-flex items-center gap-1", className),
|
|
20
|
-
...props
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export { Kbd2, KbdGroup2 };
|