@alexgorbatchev/shadcn 0.0.126 → 0.0.127

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/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.126",
2054
+ version: "0.0.127",
2055
2055
  description: "Sharp, monospace React components with compact and comfortable densities.",
2056
2056
  license: "MIT",
2057
2057
  repository: {
package/dist/typeset.css CHANGED
@@ -31,6 +31,15 @@
31
31
  --typeset-rule: var(--color-border, color-mix(in oklab, currentColor 20%, transparent));
32
32
  }
33
33
 
34
+ /*
35
+ * Compact prose inside a dense control, such as an option card's description: the surrounding text size at every
36
+ * width (no larger phone step) and tighter spacing between blocks, so it reads as part of the control.
37
+ */
38
+ .typeset.typeset-compact:not(:where(.not-typeset, [data-not-typeset], .not-typeset *, [data-not-typeset] *)) {
39
+ --typeset-flow: 0.5em;
40
+ font-size: var(--typeset-size);
41
+ }
42
+
34
43
  .typeset *:not(:where(.not-typeset, [data-not-typeset], .not-typeset *, [data-not-typeset] *)) {
35
44
  /* Paragraphs. */
36
45
  &:where(p) {
@@ -239,3 +239,22 @@ Storybook CSF excerpts. Default args and render apply unless overridden. Local h
239
239
  }
240
240
  }
241
241
  ```
242
+
243
+ ### CompactProseDescription
244
+
245
+ ```tsx
246
+ {
247
+ render: (args) => (<div className="w-96">
248
+ <OptionCardGroup aria-label="Rollout" {...args}>
249
+ <OptionCard value="blue-green" label="Blue-green" description={<span className="typeset typeset-compact block" data-testid="compact">
250
+ <p>Starts a full copy and switches traffic at once.</p>
251
+ <p>Rollback is instant.</p>
252
+ </span>}/>
253
+ <OptionCard value="recreate" label="Recreate" description={<span className="typeset block" data-testid="regular">
254
+ <p>Stops everything, then starts the new release.</p>
255
+ <p>Simple, with downtime.</p>
256
+ </span>}/>
257
+ </OptionCardGroup>
258
+ </div>)
259
+ }
260
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexgorbatchev/shadcn",
3
- "version": "0.0.126",
3
+ "version": "0.0.127",
4
4
  "description": "Sharp, monospace React components with compact and comfortable densities.",
5
5
  "license": "MIT",
6
6
  "repository": {