@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.
@@ -13,7 +13,7 @@ import {
13
13
  SidebarMenu2,
14
14
  SidebarMenuItem2,
15
15
  SidebarMenuButton2
16
- } from "./chunk-wjs8ks1h.js";
16
+ } from "./chunk-dhtk1cfw.js";
17
17
  import {
18
18
  ThreadList3
19
19
  } from "./chunk-645t7r1c.js";
@@ -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
  }