@alexgorbatchev/shadcn 0.0.134 → 0.0.136

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.
@@ -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-recommended:not-data-checked:not-aria-invalid:border-success data-disabled:cursor-not-allowed data-disabled:opacity-50 data-disabled:hover:bg-card data-readonly:cursor-default data-folding:pb-10";
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);
@@ -26,7 +26,7 @@ import {
26
26
  PaginationPrevious2,
27
27
  PaginationNext2,
28
28
  PaginationEllipsis2
29
- } from "../../chunk-yg6nxfwr.js";
29
+ } from "../../chunk-cnpasqar.js";
30
30
  import {
31
31
  MenuPopup,
32
32
  MenuItem2,
@@ -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` stays at full opacity, so new activity on a settled row stands out without un-fading it.
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
- className: cn2("flex shrink-0 items-center gap-1 text-xs tabular-nums", faded),
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(),
@@ -294,7 +295,12 @@ function TreeItem({
294
295
  className: "flex shrink-0 items-center",
295
296
  children: marker
296
297
  }),
297
- (hasDescription || actions) && /* @__PURE__ */ jsxs("div", {
298
+ descriptionLabel && /* @__PURE__ */ jsx("span", {
299
+ id: descriptionId,
300
+ hidden: true,
301
+ children: descriptionLabel
302
+ }),
303
+ (description !== undefined && description !== null || actions) && /* @__PURE__ */ jsxs("div", {
298
304
  className: cn2("flex shrink-0 items-center gap-1 text-xs tabular-nums", faded),
299
305
  children: [
300
306
  description !== undefined && description !== null && /* @__PURE__ */ jsx("span", {
@@ -303,11 +309,6 @@ function TreeItem({
303
309
  "data-slot": "tree-item-description",
304
310
  children: description
305
311
  }),
306
- descriptionLabel && /* @__PURE__ */ jsx("span", {
307
- id: descriptionId,
308
- hidden: true,
309
- children: descriptionLabel
310
- }),
311
312
  actions && /* @__PURE__ */ jsx("div", {
312
313
  "aria-hidden": "true",
313
314
  "data-slot": "tree-item-actions",
package/dist/index.js CHANGED
@@ -187,7 +187,7 @@ import {
187
187
  StatusTracker2,
188
188
  DashboardLayout2,
189
189
  BillingUsage2
190
- } from "./chunk-yg6nxfwr.js";
190
+ } from "./chunk-cnpasqar.js";
191
191
  import {
192
192
  Combobox2,
193
193
  ComboboxValue2,
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.134",
2054
+ version: "0.0.136",
2055
2055
  description: "Sharp, monospace React components with compact, comfortable, and touch densities.",
2056
2056
  license: "MIT",
2057
2057
  repository: {
@@ -51,6 +51,12 @@ Storybook CSF excerpts. Default args and render apply unless overridden. Local h
51
51
  {}
52
52
  ```
53
53
 
54
+ ### RecommendedNotChosen
55
+
56
+ ```tsx
57
+ {}
58
+ ```
59
+
54
60
  ### RecommendedOption
55
61
 
56
62
  ```tsx
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexgorbatchev/shadcn",
3
- "version": "0.0.134",
3
+ "version": "0.0.136",
4
4
  "description": "Sharp, monospace React components with compact, comfortable, and touch densities.",
5
5
  "license": "MIT",
6
6
  "repository": {