@cmgfi/clear-ds 1.2.5 → 1.3.0
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/index.cjs +47 -47
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +66 -30
- package/dist/index.mjs +5504 -5492
- package/dist/index.mjs.map +1 -1
- package/dist/llms.txt +26 -0
- package/package.json +1 -1
package/dist/llms.txt
CHANGED
|
@@ -716,6 +716,7 @@ Props:
|
|
|
716
716
|
- `subTitle`: ReactNode — muted subtitle below the title
|
|
717
717
|
- `footer`: ReactNode — action area at the bottom (typically buttons)
|
|
718
718
|
- `children`: ReactNode — card body
|
|
719
|
+
- `tone`: `'light' | 'dark'` — default `'light'`. `dark` renders a dark navy surface with light text (built-in title/subtitle/content flip to readable light values) for cards on a dark/saturated dashboard band; compose stat content (label + value) inside.
|
|
719
720
|
- `onClick`: `React.MouseEventHandler<HTMLDivElement>` — makes the card interactive with hover shadow lift
|
|
720
721
|
|
|
721
722
|
```tsx
|
|
@@ -726,6 +727,12 @@ Props:
|
|
|
726
727
|
<Card title="Open Application" onClick={() => navigate('/app/123')}>
|
|
727
728
|
<p>Click anywhere to open.</p>
|
|
728
729
|
</Card>
|
|
730
|
+
|
|
731
|
+
// Dark stat tile on a dashboard band
|
|
732
|
+
<Card tone="dark">
|
|
733
|
+
<span className="label">Prospect</span>
|
|
734
|
+
<span className="value">97,686</span>
|
|
735
|
+
</Card>
|
|
729
736
|
```
|
|
730
737
|
|
|
731
738
|
---
|
|
@@ -774,6 +781,10 @@ Props:
|
|
|
774
781
|
- `tabs`: `TabItem[]` — `{ id: string; label: string; icon?: ReactNode; count?: number; icon2?: ReactNode; content?: ReactNode; disabled?: boolean }`
|
|
775
782
|
- `activeTab`: string — controlled active tab ID
|
|
776
783
|
- `onChange`: `(id: string) => void`
|
|
784
|
+
- `variant`: `'panel' | 'nav' | 'pills'` (default `'panel'`)
|
|
785
|
+
- `'panel'`: underline strip + the active tab's `content` rendered below.
|
|
786
|
+
- `'nav'`: page-level navigation strip (larger padding, renders as `<nav>`, no content panel).
|
|
787
|
+
- `'pills'`: pill-shaped segmented switcher for a dark/colored host surface — translucent glass track, a solid light pill behind the active segment, and `count` shown as a red circular badge. Strip-only (no content panel). Place it on a saturated or dark background.
|
|
777
788
|
|
|
778
789
|
```tsx
|
|
779
790
|
const [active, setActive] = useState('tab1');
|
|
@@ -788,6 +799,21 @@ const [active, setActive] = useState('tab1');
|
|
|
788
799
|
/>
|
|
789
800
|
```
|
|
790
801
|
|
|
802
|
+
```tsx
|
|
803
|
+
// Pills variant — segmented view switcher on a dark/colored band.
|
|
804
|
+
<Tabs
|
|
805
|
+
variant="pills"
|
|
806
|
+
tabs={[
|
|
807
|
+
{ id: 'overview', label: 'Overview' },
|
|
808
|
+
{ id: 'processing', label: 'To Processing' },
|
|
809
|
+
{ id: 'closing', label: 'To Closing' },
|
|
810
|
+
{ id: 'reminders', label: 'Reminders', count: 20 },
|
|
811
|
+
]}
|
|
812
|
+
activeTab={view}
|
|
813
|
+
onChange={setView}
|
|
814
|
+
/>
|
|
815
|
+
```
|
|
816
|
+
|
|
791
817
|
---
|
|
792
818
|
|
|
793
819
|
### BannerTabs
|