@alexgorbatchev/shadcn 0.0.134 → 0.0.135
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-yg6nxfwr.js → chunk-cnpasqar.js} +1 -1
- package/dist/components/json-render/index.js +1 -1
- package/dist/components/tree/TreeItem.d.ts +2 -1
- package/dist/components/tree/index.js +2 -1
- package/dist/index.js +1 -1
- package/dist/prototype.js +1 -1
- package/llms/components/forms/OptionCardGroup.md +6 -0
- package/package.json +1 -1
|
@@ -517,7 +517,7 @@ function OptionCheckboxGroup2({ analytics, density, className, ...props }) {
|
|
|
517
517
|
onValueChange: trackedOnValueChange
|
|
518
518
|
});
|
|
519
519
|
}
|
|
520
|
-
var CARD_CLASS = "group/option-card grid w-full cursor-pointer grid-cols-[1.25rem_minmax(0,1fr)] items-start gap-x-2 rounded-md border border-input bg-card p-panel-sm text-start text-sm text-card-foreground transition-colors outline-none [counter-increment:option-card] hover:bg-muted/40 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring focus-visible:outline-solid data-checked:border-primary data-checked:ring-1 data-checked:ring-primary forced-colors:data-checked:border-[color:Highlight] aria-invalid:not-data-checked:border-destructive data-
|
|
520
|
+
var CARD_CLASS = "group/option-card grid w-full cursor-pointer grid-cols-[1.25rem_minmax(0,1fr)] items-start gap-x-2 rounded-md border border-input bg-card p-panel-sm text-start text-sm text-card-foreground transition-colors outline-none [counter-increment:option-card] hover:bg-muted/40 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring focus-visible:outline-solid data-checked:border-primary data-checked:ring-1 data-checked:ring-primary forced-colors:data-checked:border-[color:Highlight] aria-invalid:not-data-checked:border-destructive data-disabled:cursor-not-allowed data-disabled:opacity-50 data-disabled:hover:bg-card data-readonly:cursor-default data-folding:pb-10";
|
|
521
521
|
function useFold(lines) {
|
|
522
522
|
const ref = useRef(null);
|
|
523
523
|
const [isOverflowing, setIsOverflowing] = useState(false);
|
|
@@ -33,7 +33,8 @@ type TreeItemProps<T> = useRender.ComponentProps<"div", TreeItemState> & IDensit
|
|
|
33
33
|
isDropTarget?: boolean;
|
|
34
34
|
/**
|
|
35
35
|
* Fades a settled row, such as completed work, to 70% opacity; hover and keyboard focus restore full opacity. The
|
|
36
|
-
* `marker`
|
|
36
|
+
* `marker` and the `endEnhancer`'s tags stay at full opacity, so new activity on a settled row stands out without
|
|
37
|
+
* un-fading it, and muted tag text keeps 4.5:1.
|
|
37
38
|
*/
|
|
38
39
|
isDimmed?: boolean;
|
|
39
40
|
/** Marks a row with activity its reader has not seen yet: the label turns bold. Pair it with a `marker`. */
|
|
@@ -282,7 +282,8 @@ function TreeItem({
|
|
|
282
282
|
children: label
|
|
283
283
|
}) : label,
|
|
284
284
|
endEnhancer && /* @__PURE__ */ jsx("div", {
|
|
285
|
-
|
|
285
|
+
"data-slot": "tree-item-end",
|
|
286
|
+
className: "flex shrink-0 items-center gap-1 text-xs tabular-nums",
|
|
286
287
|
onClick: (event) => event.stopPropagation(),
|
|
287
288
|
onDoubleClick: (event) => event.stopPropagation(),
|
|
288
289
|
onKeyDown: (event) => event.stopPropagation(),
|
package/dist/index.js
CHANGED
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.135",
|
|
2055
2055
|
description: "Sharp, monospace React components with compact, comfortable, and touch densities.",
|
|
2056
2056
|
license: "MIT",
|
|
2057
2057
|
repository: {
|