@alexgorbatchev/shadcn 0.0.123 → 0.0.125
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-bvzjbk43.js +48 -0
- package/dist/{chunk-wjs8ks1h.js → chunk-dhtk1cfw.js} +2 -1
- package/dist/{chunk-5eswhdbp.js → chunk-kx91d0g6.js} +223 -146
- package/dist/components/DescriptionList.d.ts +16 -6
- package/dist/components/Heading.d.ts +1 -1
- package/dist/components/PageHeader.d.ts +7 -2
- package/dist/components/PageIntro.d.ts +7 -2
- package/dist/components/Quote.d.ts +16 -0
- package/dist/components/SkipLink.d.ts +14 -0
- package/dist/components/StatusDot.d.ts +18 -0
- 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 +3 -2
- package/dist/components/tree/index.js +6 -20
- package/dist/index.d.ts +6 -0
- package/dist/index.js +14 -2
- package/dist/prototype.js +1 -1
- package/dist/typeset.css +4 -1
- package/llms/components/data-display/DescriptionList.md +16 -0
- package/llms/components/data-display/Heading.md +18 -2
- package/llms/components/data-display/Quote.md +90 -0
- package/llms/components/data-display/StatusDot.md +80 -0
- package/llms/components/layout/PageHeader.md +8 -0
- package/llms/components/layout/PageIntro.md +8 -0
- package/llms/components/navigation/SkipLink.md +63 -0
- package/llms/components/overlays/Sheet.md +38 -0
- package/llms.txt +4 -1
- package/package.json +1 -1
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import {
|
|
2
|
+
cn2
|
|
3
|
+
} from "./chunk-en44w1pn.js";
|
|
4
|
+
|
|
5
|
+
// src/components/StatusDot.tsx
|
|
6
|
+
import { cva } from "class-variance-authority";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
var statusDotVariants2 = cva("inline-flex items-center gap-1 text-xs font-medium tabular-nums", {
|
|
9
|
+
variants: {
|
|
10
|
+
tone: {
|
|
11
|
+
primary: "text-primary",
|
|
12
|
+
muted: "text-muted-foreground"
|
|
13
|
+
},
|
|
14
|
+
placement: {
|
|
15
|
+
inline: "",
|
|
16
|
+
corner: "pointer-events-none absolute -top-0.5 -end-0.5"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
defaultVariants: { tone: "primary", placement: "inline" }
|
|
20
|
+
});
|
|
21
|
+
function StatusDot2({ tone, placement, count, className, ...props }) {
|
|
22
|
+
return /* @__PURE__ */ jsxs("span", {
|
|
23
|
+
"aria-hidden": "true",
|
|
24
|
+
"data-slot": "status-dot",
|
|
25
|
+
"data-tone": tone ?? "primary",
|
|
26
|
+
className: cn2(statusDotVariants2({ tone, placement }), className),
|
|
27
|
+
...props,
|
|
28
|
+
children: [
|
|
29
|
+
/* @__PURE__ */ jsx("svg", {
|
|
30
|
+
viewBox: "0 0 8 8",
|
|
31
|
+
className: "size-2 shrink-0",
|
|
32
|
+
focusable: "false",
|
|
33
|
+
children: /* @__PURE__ */ jsx("circle", {
|
|
34
|
+
cx: "4",
|
|
35
|
+
cy: "4",
|
|
36
|
+
r: "4",
|
|
37
|
+
fill: "currentColor"
|
|
38
|
+
})
|
|
39
|
+
}),
|
|
40
|
+
count !== undefined && /* @__PURE__ */ jsx("span", {
|
|
41
|
+
"data-slot": "status-dot-count",
|
|
42
|
+
children: count
|
|
43
|
+
})
|
|
44
|
+
]
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export { statusDotVariants2, StatusDot2 };
|
|
@@ -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
|
}
|