@alexgorbatchev/shadcn 0.0.130 → 0.0.131

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.
@@ -631,8 +631,8 @@ function FoldToggle({ fold, descriptionId }) {
631
631
  return null;
632
632
  return /* @__PURE__ */ jsx6(Button2, {
633
633
  type: "button",
634
- variant: "link",
635
- size: "sm",
634
+ variant: "outline",
635
+ size: "xs",
636
636
  "data-slot": "option-card-fold",
637
637
  "aria-expanded": fold.isOpen,
638
638
  "aria-controls": descriptionId,
@@ -660,7 +660,31 @@ function OptionCard2({
660
660
  }) {
661
661
  const ids = useOptionCardIds();
662
662
  const fold = useFold(descriptionLines);
663
- const content = { label, description, descriptionLines, recommended, recommendedLabel, reason, image, marker };
663
+ const radioMarker = /* @__PURE__ */ jsxs4("span", {
664
+ className: "flex items-start gap-1.5",
665
+ children: [
666
+ /* @__PURE__ */ jsx6("span", {
667
+ "data-slot": "option-card-radio",
668
+ className: "mt-0.5 flex size-4 shrink-0 items-center justify-center rounded-full border border-input group-data-checked/option-card:border-primary",
669
+ children: /* @__PURE__ */ jsx6("span", {
670
+ className: "hidden size-2 rounded-full bg-primary group-data-checked/option-card:block forced-colors:bg-[Highlight]"
671
+ })
672
+ }),
673
+ marker ?? /* @__PURE__ */ jsx6("span", {
674
+ className: "before:content-[counter(option-card,lower-alpha)]"
675
+ })
676
+ ]
677
+ });
678
+ const content = {
679
+ label,
680
+ description,
681
+ descriptionLines,
682
+ recommended,
683
+ recommendedLabel,
684
+ reason,
685
+ image,
686
+ marker: radioMarker
687
+ };
664
688
  return /* @__PURE__ */ jsxs4("div", {
665
689
  "data-slot": "option-card-item",
666
690
  className: "relative min-w-0",
@@ -39,7 +39,11 @@ interface IOptionCardContentProps {
39
39
  marker?: ReactNode;
40
40
  }
41
41
  type OptionCardProps = Omit<RadioPrimitive.Root.Props, "children"> & IDensityProps & IOptionCardContentProps;
42
- /** One option of an `OptionCardGroup`: a bordered card with a leading letter, a bold label and a muted description. */
42
+ /**
43
+ * One option of an `OptionCardGroup`: a bordered card with a leading radio mark and letter, a bold label and a muted
44
+ * description. The radio mark shows the choice by shape as well as colour, and sets single choice apart from an
45
+ * `OptionCheckboxCard`'s checkbox.
46
+ */
43
47
  declare function OptionCard({ label, description, descriptionLines, recommended, recommendedLabel, reason, image, marker, density, className, ...props }: OptionCardProps): ReactElement;
44
48
  type OptionCheckboxCardProps = Omit<CheckboxPrimitive.Root.Props, "children"> & IDensityProps & IOptionCardContentProps;
45
49
  /**
@@ -26,7 +26,7 @@ import {
26
26
  PaginationPrevious2,
27
27
  PaginationNext2,
28
28
  PaginationEllipsis2
29
- } from "../../chunk-rzdp3st2.js";
29
+ } from "../../chunk-bw2stfag.js";
30
30
  import {
31
31
  MenuPopup,
32
32
  MenuItem2,
package/dist/index.js CHANGED
@@ -187,7 +187,7 @@ import {
187
187
  StatusTracker2,
188
188
  DashboardLayout2,
189
189
  BillingUsage2
190
- } from "./chunk-rzdp3st2.js";
190
+ } from "./chunk-bw2stfag.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.130",
2054
+ version: "0.0.131",
2055
2055
  description: "Sharp, monospace React components with compact and comfortable densities.",
2056
2056
  license: "MIT",
2057
2057
  repository: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexgorbatchev/shadcn",
3
- "version": "0.0.130",
3
+ "version": "0.0.131",
4
4
  "description": "Sharp, monospace React components with compact and comfortable densities.",
5
5
  "license": "MIT",
6
6
  "repository": {