@alexgorbatchev/shadcn 0.0.196 → 0.0.197
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.
|
@@ -544,7 +544,7 @@ function OptionCheckboxGroup2({
|
|
|
544
544
|
onValueChange: trackedOnValueChange
|
|
545
545
|
});
|
|
546
546
|
}
|
|
547
|
-
var CARD_CLASS = "group/option-card grid h-full w-full cursor-pointer grid-cols-[
|
|
547
|
+
var CARD_CLASS = "group/option-card grid h-full w-full cursor-pointer grid-cols-[max-content_minmax(0,1fr)] content-start 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 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";
|
|
548
548
|
var CARD_CONTROL_SELECTOR = '[data-slot="option-card"], [data-slot="option-checkbox-card"]';
|
|
549
549
|
function useFold(lines) {
|
|
550
550
|
const ref = useRef(null);
|
|
@@ -732,7 +732,7 @@ function OptionCard2({
|
|
|
732
732
|
"data-folding": fold.isFoldable || undefined,
|
|
733
733
|
"aria-labelledby": recommended ? `${ids.label} ${ids.tag}` : ids.label,
|
|
734
734
|
"aria-describedby": getDescribedBy(ids, content),
|
|
735
|
-
className: (state) => cn2(CARD_CLASS,
|
|
735
|
+
className: (state) => cn2(CARD_CLASS, typeof className === "function" ? className(state) : className),
|
|
736
736
|
...props,
|
|
737
737
|
children: /* @__PURE__ */ jsx6(OptionCardContent, {
|
|
738
738
|
ids,
|
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.197",
|
|
2055
2055
|
description: "Sharp, monospace React components with compact, comfortable, and touch densities.",
|
|
2056
2056
|
license: "MIT",
|
|
2057
2057
|
repository: {
|
|
@@ -292,6 +292,23 @@ Storybook CSF excerpts. Default args and render apply unless overridden. Local h
|
|
|
292
292
|
}
|
|
293
293
|
```
|
|
294
294
|
|
|
295
|
+
### MixedChoiceAlignment
|
|
296
|
+
|
|
297
|
+
```tsx
|
|
298
|
+
{
|
|
299
|
+
render: () => (<div className="flex w-96 flex-col gap-4">
|
|
300
|
+
<OptionCardGroup aria-label="Strategy">
|
|
301
|
+
<OptionCard value="rolling" label="Rolling update" description="One instance at a time."/>
|
|
302
|
+
<OptionCard value="blue-green" label="Blue-green" description="Switch traffic at once." recommended/>
|
|
303
|
+
</OptionCardGroup>
|
|
304
|
+
<OptionCheckboxGroup aria-label="Teams">
|
|
305
|
+
<OptionCheckboxCard value="support" label="Support" description="Answers customers."/>
|
|
306
|
+
<OptionCheckboxCard value="finance" label="Finance"/>
|
|
307
|
+
</OptionCheckboxGroup>
|
|
308
|
+
</div>)
|
|
309
|
+
}
|
|
310
|
+
```
|
|
311
|
+
|
|
295
312
|
### CompactProseDescription
|
|
296
313
|
|
|
297
314
|
```tsx
|