@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: "
|
|
635
|
-
size: "
|
|
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
|
|
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
|
-
/**
|
|
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
|
/**
|
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.131",
|
|
2055
2055
|
description: "Sharp, monospace React components with compact and comfortable densities.",
|
|
2056
2056
|
license: "MIT",
|
|
2057
2057
|
repository: {
|