@alexgorbatchev/shadcn 0.0.121 → 0.0.122
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.
|
@@ -21,10 +21,10 @@ type TreeItemProps<T> = useRender.ComponentProps<"div", TreeItemState> & IDensit
|
|
|
21
21
|
*/
|
|
22
22
|
hasIcon?: boolean;
|
|
23
23
|
/**
|
|
24
|
-
* Calls attention to the row with the `warning` tone: a
|
|
25
|
-
* lightning bolt for something live.
|
|
26
|
-
*
|
|
27
|
-
*
|
|
24
|
+
* Calls attention to the row with the `warning` tone: a 2 px warning bar on its leading edge and a warning-coloured
|
|
25
|
+
* start icon, such as a lightning bolt for something live. The row takes no fill, so fills keep meaning selection, and
|
|
26
|
+
* a selected row keeps the selection background with the bar. Pair it with words in `descriptionLabel`, so the meaning
|
|
27
|
+
* never rests on colour.
|
|
28
28
|
*/
|
|
29
29
|
tone?: "default" | "warning";
|
|
30
30
|
endEnhancer?: ReactNode;
|
|
@@ -257,7 +257,7 @@ function TreeItem({
|
|
|
257
257
|
onDragStart: undefined
|
|
258
258
|
} : {},
|
|
259
259
|
style: { paddingInlineStart: `${item.getItemMeta().level * (item.getTree().getConfig().indent ?? 20) + 8}px` },
|
|
260
|
-
className: cn2("relative flex min-h-control min-w-0 cursor-default items-center gap-2 rounded-sm py-1 pr-2 text-sm outline-none hover:bg-accent focus-visible:ring-2 focus-visible:ring-ring", (isSelected || isDropTarget || isInsideTarget) && "bg-accent text-accent-foreground", tone === "warning" &&
|
|
260
|
+
className: cn2("relative flex min-h-control min-w-0 cursor-default items-center gap-2 rounded-sm py-1 pr-2 text-sm outline-none hover:bg-accent focus-visible:ring-2 focus-visible:ring-ring", (isSelected || isDropTarget || isInsideTarget) && "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"),
|
|
261
261
|
children: /* @__PURE__ */ jsxs(Fragment, {
|
|
262
262
|
children: [
|
|
263
263
|
item.isFolder() && expandOn === "disclosure" ? /* @__PURE__ */ jsx(Button2, {
|
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.122",
|
|
2055
2055
|
description: "Sharp, monospace React components with compact and comfortable densities.",
|
|
2056
2056
|
license: "MIT",
|
|
2057
2057
|
repository: {
|