@blakesteve/roster 2.8.1 → 2.9.1

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/README.md CHANGED
@@ -82,7 +82,7 @@ function App() {
82
82
  | `Input` | Text input with label, error state, and icon slots |
83
83
  | `Link` | Styled anchor with variant support |
84
84
  | `AvatarStrip` | Stacked avatar row with overflow chip, dismiss button, trailing slot, and label area |
85
- | `CollapsibleDescription` | Clamped text block with fade and Read more / Show less toggle |
85
+ | `CollapsibleSection` | Clamps any content (prose, chips, image grids) to a fixed height with a fade and expand/collapse toggle |
86
86
  | `LiquidTabs` | Controlled tab strip with a liquid sliding pill indicator — pill and filled variants |
87
87
  | `Select` | Dropdown selector |
88
88
  | `SegmentBar` | Proportional horizontal bar divided into colored segments with optional legend |
@@ -0,0 +1,15 @@
1
+ import * as React from "react";
2
+ export type CollapsibleSectionSize = "xs" | "sm" | "md" | "lg";
3
+ export interface CollapsibleSectionProps {
4
+ /** Any content — prose, chips, images, card grids, etc. */
5
+ children: React.ReactNode;
6
+ /** Controls how much is visible before the toggle appears. */
7
+ size?: CollapsibleSectionSize;
8
+ /** Label for the expand button. */
9
+ expandLabel?: string;
10
+ /** Label for the collapse button. */
11
+ collapseLabel?: string;
12
+ /** Extra classes applied to the outer wrapper. */
13
+ className?: string;
14
+ }
15
+ export declare function CollapsibleSection({ children, size, expandLabel, collapseLabel, className, }: CollapsibleSectionProps): import("react/jsx-runtime").JSX.Element;
package/dist/index.d.ts CHANGED
@@ -24,7 +24,7 @@ export * from './components/atoms/Textarea/textarea-variants';
24
24
  export * from './components/atoms/AvatarStrip/AvatarStrip';
25
25
  export * from './components/atoms/LiquidTabs/LiquidTabs';
26
26
  export * from './components/atoms/Tooltip/Tooltip';
27
- export * from './components/atoms/CollapsibleDescription/CollapsibleDescription';
27
+ export * from './components/atoms/CollapsibleSection/CollapsibleSection';
28
28
  export * from './components/atoms/SegmentBar/SegmentBar';
29
29
  export * from './components/molecules/Accordion/Accordion';
30
30
  export * from './components/molecules/Breadcrumbs/Breadcrumbs';