@nationaldesignstudio/react 0.1.0 → 0.2.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/component-registry.md +46 -19
- package/dist/components/atoms/accordion/accordion.d.ts +7 -7
- package/dist/components/sections/banner/banner.d.ts +9 -9
- package/dist/components/sections/faq-section/faq-section.d.ts +1 -1
- package/dist/components/sections/hero/hero.d.ts +115 -18
- package/dist/components/sections/tout/tout.d.ts +8 -8
- package/dist/components/sections/two-column-section/two-column-section.d.ts +7 -21
- package/dist/index.js +1212 -1188
- package/dist/index.js.map +1 -1
- package/dist/tokens.css +16 -16
- package/package.json +1 -1
- package/src/components/atoms/accordion/accordion.test.tsx +18 -20
- package/src/components/atoms/accordion/accordion.tsx +19 -17
- package/src/components/atoms/background/background.test.tsx +2 -2
- package/src/components/atoms/background/background.tsx +48 -29
- package/src/components/atoms/button/button.tsx +1 -1
- package/src/components/atoms/button/icon-button.tsx +51 -16
- package/src/components/organisms/card/card.test.tsx +4 -2
- package/src/components/sections/banner/banner.stories.tsx +5 -1
- package/src/components/sections/banner/banner.tsx +10 -10
- package/src/components/sections/faq-section/faq-section.stories.tsx +7 -7
- package/src/components/sections/faq-section/faq-section.tsx +3 -3
- package/src/components/sections/hero/hero.tsx +33 -51
- package/src/components/sections/tout/tout.stories.tsx +31 -7
- package/src/components/sections/tout/tout.tsx +6 -8
- package/src/components/sections/two-column-section/two-column-section.stories.tsx +11 -11
- package/src/components/sections/two-column-section/two-column-section.tsx +16 -10
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Component Registry
|
|
2
2
|
|
|
3
3
|
> Auto-generated component metadata for AI/agent consumption.
|
|
4
|
-
> Generated: 2026-01-
|
|
4
|
+
> Generated: 2026-01-13T20:09:44.586Z
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
@@ -484,6 +484,9 @@ className="font-semibold" // Font weight 600
|
|
|
484
484
|
The title text displayed in the hero.
|
|
485
485
|
- `titleClassName`: string
|
|
486
486
|
Custom typography class for the title using primitive tokens.
|
|
487
|
+
- `colorScheme`: "dark" | "light"
|
|
488
|
+
Color scheme for text content.
|
|
489
|
+
Values: `dark`, `light`
|
|
487
490
|
- `top`: React.ReactNode
|
|
488
491
|
Content for the top slot (full-width, no padding).
|
|
489
492
|
- `background`: React.ReactNode | string
|
|
@@ -1203,7 +1206,11 @@ className="font-semibold" // Font weight 600
|
|
|
1203
1206
|
<Banner
|
|
1204
1207
|
heading="Custom Styled Banner"
|
|
1205
1208
|
description="This banner has a custom background color applied via className."
|
|
1206
|
-
action={
|
|
1209
|
+
action={
|
|
1210
|
+
<Button variant="outline" colorScheme="light">
|
|
1211
|
+
Action
|
|
1212
|
+
</Button>
|
|
1213
|
+
}
|
|
1207
1214
|
className="bg-gray-1000 text-gray-50 [&_h2]:text-gray-50 [&_p]:text-gray-200"
|
|
1208
1215
|
/>
|
|
1209
1216
|
```
|
|
@@ -1503,8 +1510,8 @@ className="font-semibold" // Font weight 600
|
|
|
1503
1510
|
```
|
|
1504
1511
|
|
|
1505
1512
|
```tsx
|
|
1506
|
-
<FaqSection
|
|
1507
|
-
<Accordion defaultExpanded="faq-1">
|
|
1513
|
+
<FaqSection colorScheme="dark">
|
|
1514
|
+
<Accordion colorScheme="dark" defaultExpanded="faq-1">
|
|
1508
1515
|
<AccordionItem
|
|
1509
1516
|
id="faq-1"
|
|
1510
1517
|
title="What is the US Tech Force (Tech Force)?"
|
|
@@ -1531,7 +1538,7 @@ className="font-semibold" // Font weight 600
|
|
|
1531
1538
|
```
|
|
1532
1539
|
|
|
1533
1540
|
```tsx
|
|
1534
|
-
<FaqSection
|
|
1541
|
+
<FaqSection colorScheme="light">
|
|
1535
1542
|
<Accordion defaultExpanded="faq-1">
|
|
1536
1543
|
<AccordionItem
|
|
1537
1544
|
id="faq-1"
|
|
@@ -2177,7 +2184,11 @@ className="font-semibold" // Font weight 600
|
|
|
2177
2184
|
headline="Brand-Large/Headline/Small"
|
|
2178
2185
|
body="A river pattern stacks content in a simple vertical flow: one clear heading, a short block of copy, then the next step. It's ideal for guiding citizens through a process or story, keeping focus moving straight down the page with minimal choices and well-timed calls to action."
|
|
2179
2186
|
primaryAction={<Button>Primary</Button>}
|
|
2180
|
-
secondaryAction={
|
|
2187
|
+
secondaryAction={
|
|
2188
|
+
<Button variant="outline" colorScheme="light">
|
|
2189
|
+
Secondary
|
|
2190
|
+
</Button>
|
|
2191
|
+
}
|
|
2181
2192
|
backgroundMedia={<PlaceholderBackground />}
|
|
2182
2193
|
/>
|
|
2183
2194
|
```
|
|
@@ -2187,7 +2198,11 @@ className="font-semibold" // Font weight 600
|
|
|
2187
2198
|
headline="Brand-Large/Headline/Small"
|
|
2188
2199
|
body="A river pattern stacks content in a simple vertical flow: one clear heading, a short block of copy, then the next step. It's ideal for guiding citizens through a process or story, keeping focus moving straight down the page with minimal choices and well-timed calls to action."
|
|
2189
2200
|
primaryAction={<Button>Primary</Button>}
|
|
2190
|
-
secondaryAction={
|
|
2201
|
+
secondaryAction={
|
|
2202
|
+
<Button variant="outline" colorScheme="light">
|
|
2203
|
+
Secondary
|
|
2204
|
+
</Button>
|
|
2205
|
+
}
|
|
2191
2206
|
backgroundMedia={<PlaceholderBackground />}
|
|
2192
2207
|
/>
|
|
2193
2208
|
```
|
|
@@ -2198,7 +2213,7 @@ className="font-semibold" // Font weight 600
|
|
|
2198
2213
|
body="A river pattern stacks content in a simple vertical flow: one clear heading, a short block of copy, then the next step. It's ideal for guiding citizens through a process or story, keeping focus moving straight down the page with minimal choices and well-timed calls to action."
|
|
2199
2214
|
primaryAction={<Button size="sm">Primary</Button>}
|
|
2200
2215
|
secondaryAction={
|
|
2201
|
-
<Button size="sm" variant="
|
|
2216
|
+
<Button size="sm" variant="outline" colorScheme="light">
|
|
2202
2217
|
Secondary
|
|
2203
2218
|
</Button>
|
|
2204
2219
|
}
|
|
@@ -2211,7 +2226,11 @@ className="font-semibold" // Font weight 600
|
|
|
2211
2226
|
headline="Work with Purpose"
|
|
2212
2227
|
body="Join a team that's building the future of government services. We're looking for passionate individuals who want to make a difference."
|
|
2213
2228
|
primaryAction={<Button>View Careers</Button>}
|
|
2214
|
-
secondaryAction={
|
|
2229
|
+
secondaryAction={
|
|
2230
|
+
<Button variant="outline" colorScheme="light">
|
|
2231
|
+
Learn More
|
|
2232
|
+
</Button>
|
|
2233
|
+
}
|
|
2215
2234
|
backgroundMedia={<ImageBackground />}
|
|
2216
2235
|
/>
|
|
2217
2236
|
```
|
|
@@ -2230,7 +2249,11 @@ className="font-semibold" // Font weight 600
|
|
|
2230
2249
|
headline="Experience Innovation"
|
|
2231
2250
|
body="See how modern technology is transforming the way government serves its citizens."
|
|
2232
2251
|
primaryAction={<Button>Watch Video</Button>}
|
|
2233
|
-
secondaryAction={
|
|
2252
|
+
secondaryAction={
|
|
2253
|
+
<Button variant="outline" colorScheme="light">
|
|
2254
|
+
Learn More
|
|
2255
|
+
</Button>
|
|
2256
|
+
}
|
|
2234
2257
|
backgroundMedia={
|
|
2235
2258
|
<div className="absolute inset-0 bg-gray-800 flex items-center justify-center">
|
|
2236
2259
|
<span className="text-gray-400 typography-body-small">
|
|
@@ -2246,7 +2269,11 @@ className="font-semibold" // Font weight 600
|
|
|
2246
2269
|
headline="Work with Purpose"
|
|
2247
2270
|
body="Join a team that's building the future of government services. We're looking for passionate individuals who want to make a difference."
|
|
2248
2271
|
primaryAction={<Button>View Careers</Button>}
|
|
2249
|
-
secondaryAction={
|
|
2272
|
+
secondaryAction={
|
|
2273
|
+
<Button variant="outline" colorScheme="light">
|
|
2274
|
+
Learn More
|
|
2275
|
+
</Button>
|
|
2276
|
+
}
|
|
2250
2277
|
backgroundMedia={<ImageBackground />}
|
|
2251
2278
|
footer={<NdstudioFooter />}
|
|
2252
2279
|
/>
|
|
@@ -2279,7 +2306,7 @@ className="font-semibold" // Font weight 600
|
|
|
2279
2306
|
|
|
2280
2307
|
```tsx
|
|
2281
2308
|
<TwoColumnSection
|
|
2282
|
-
|
|
2309
|
+
colorScheme="dark"
|
|
2283
2310
|
title="US Tech Force"
|
|
2284
2311
|
lead="The US Tech Force is recruiting an elite corps of engineers to build the next generation of government technology."
|
|
2285
2312
|
>
|
|
@@ -2296,7 +2323,7 @@ className="font-semibold" // Font weight 600
|
|
|
2296
2323
|
|
|
2297
2324
|
```tsx
|
|
2298
2325
|
<TwoColumnSection
|
|
2299
|
-
|
|
2326
|
+
colorScheme="light"
|
|
2300
2327
|
title="US Tech Force"
|
|
2301
2328
|
lead="The US Tech Force is recruiting an elite corps of engineers to build the next generation of government technology."
|
|
2302
2329
|
>
|
|
@@ -2313,7 +2340,7 @@ className="font-semibold" // Font weight 600
|
|
|
2313
2340
|
|
|
2314
2341
|
```tsx
|
|
2315
2342
|
<TwoColumnSection
|
|
2316
|
-
|
|
2343
|
+
colorScheme="dark"
|
|
2317
2344
|
title="US Tech Force"
|
|
2318
2345
|
lead="The US Tech Force is recruiting an elite corps of engineers to build the next generation of government technology. Backed by the White House, Tech Force will tackle the most complex and large-scale civic and defense challenges of our era."
|
|
2319
2346
|
>
|
|
@@ -2341,7 +2368,7 @@ className="font-semibold" // Font weight 600
|
|
|
2341
2368
|
|
|
2342
2369
|
```tsx
|
|
2343
2370
|
<TwoColumnSection
|
|
2344
|
-
|
|
2371
|
+
colorScheme="dark"
|
|
2345
2372
|
title="US Tech Force"
|
|
2346
2373
|
lead="The US Tech Force is recruiting an elite corps of engineers to build the next generation of government technology. Backed by the White House, Tech Force will tackle the most complex and large-scale civic and defense challenges of our era."
|
|
2347
2374
|
>
|
|
@@ -2369,7 +2396,7 @@ className="font-semibold" // Font weight 600
|
|
|
2369
2396
|
|
|
2370
2397
|
```tsx
|
|
2371
2398
|
<TwoColumnSection
|
|
2372
|
-
|
|
2399
|
+
colorScheme="dark"
|
|
2373
2400
|
title="US Tech Force"
|
|
2374
2401
|
lead="The US Tech Force is recruiting an elite corps of engineers to build the next generation of government technology. Backed by the White House, Tech Force will tackle the most complex and large-scale civic and defense challenges of our era."
|
|
2375
2402
|
>
|
|
@@ -2396,7 +2423,7 @@ className="font-semibold" // Font weight 600
|
|
|
2396
2423
|
```
|
|
2397
2424
|
|
|
2398
2425
|
```tsx
|
|
2399
|
-
<TwoColumnSection
|
|
2426
|
+
<TwoColumnSection colorScheme="dark" title="About the Program">
|
|
2400
2427
|
<p>
|
|
2401
2428
|
Through a two-year program, participants will work in teams reporting
|
|
2402
2429
|
directly to agency leadership. In collaboration with leading technology
|
|
@@ -2413,7 +2440,7 @@ className="font-semibold" // Font weight 600
|
|
|
2413
2440
|
|
|
2414
2441
|
```tsx
|
|
2415
2442
|
<TwoColumnSection
|
|
2416
|
-
|
|
2443
|
+
colorScheme="dark"
|
|
2417
2444
|
title="Our Mission"
|
|
2418
2445
|
lead={
|
|
2419
2446
|
<>
|
|
@@ -2438,7 +2465,7 @@ className="font-semibold" // Font weight 600
|
|
|
2438
2465
|
|
|
2439
2466
|
```tsx
|
|
2440
2467
|
<TwoColumnSection
|
|
2441
|
-
|
|
2468
|
+
colorScheme="dark"
|
|
2442
2469
|
title="Join Us"
|
|
2443
2470
|
lead="Build the future of American government technology."
|
|
2444
2471
|
>
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import { VariantProps } from 'tailwind-variants';
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
declare const accordionVariants: import('tailwind-variants').TVReturnType<{
|
|
4
|
-
|
|
4
|
+
colorScheme: {
|
|
5
5
|
dark: string;
|
|
6
6
|
light: string;
|
|
7
7
|
};
|
|
8
8
|
}, undefined, "flex flex-col", import('tailwind-variants/dist/config.js').TVConfig<{
|
|
9
|
-
|
|
9
|
+
colorScheme: {
|
|
10
10
|
dark: string;
|
|
11
11
|
light: string;
|
|
12
12
|
};
|
|
13
13
|
}, {
|
|
14
|
-
|
|
14
|
+
colorScheme: {
|
|
15
15
|
dark: string;
|
|
16
16
|
light: string;
|
|
17
17
|
};
|
|
18
18
|
}>, {
|
|
19
|
-
|
|
19
|
+
colorScheme: {
|
|
20
20
|
dark: string;
|
|
21
21
|
light: string;
|
|
22
22
|
};
|
|
23
23
|
}, undefined, import('tailwind-variants').TVReturnType<{
|
|
24
|
-
|
|
24
|
+
colorScheme: {
|
|
25
25
|
dark: string;
|
|
26
26
|
light: string;
|
|
27
27
|
};
|
|
28
28
|
}, undefined, "flex flex-col", import('tailwind-variants/dist/config.js').TVConfig<{
|
|
29
|
-
|
|
29
|
+
colorScheme: {
|
|
30
30
|
dark: string;
|
|
31
31
|
light: string;
|
|
32
32
|
};
|
|
33
33
|
}, {
|
|
34
|
-
|
|
34
|
+
colorScheme: {
|
|
35
35
|
dark: string;
|
|
36
36
|
light: string;
|
|
37
37
|
};
|
|
@@ -14,37 +14,37 @@ import * as React from "react";
|
|
|
14
14
|
* Must be placed inside a `grid-container`. Uses `col-full` to span all columns.
|
|
15
15
|
*/
|
|
16
16
|
declare const bannerVariants: import('tailwind-variants').TVReturnType<{
|
|
17
|
-
|
|
17
|
+
colorScheme: {
|
|
18
18
|
light: string;
|
|
19
19
|
dark: string;
|
|
20
20
|
};
|
|
21
21
|
}, undefined, string[], import('tailwind-variants/dist/config.js').TVConfig<{
|
|
22
|
-
|
|
22
|
+
colorScheme: {
|
|
23
23
|
light: string;
|
|
24
24
|
dark: string;
|
|
25
25
|
};
|
|
26
26
|
}, {
|
|
27
|
-
|
|
27
|
+
colorScheme: {
|
|
28
28
|
light: string;
|
|
29
29
|
dark: string;
|
|
30
30
|
};
|
|
31
31
|
}>, {
|
|
32
|
-
|
|
32
|
+
colorScheme: {
|
|
33
33
|
light: string;
|
|
34
34
|
dark: string;
|
|
35
35
|
};
|
|
36
36
|
}, undefined, import('tailwind-variants').TVReturnType<{
|
|
37
|
-
|
|
37
|
+
colorScheme: {
|
|
38
38
|
light: string;
|
|
39
39
|
dark: string;
|
|
40
40
|
};
|
|
41
41
|
}, undefined, string[], import('tailwind-variants/dist/config.js').TVConfig<{
|
|
42
|
-
|
|
42
|
+
colorScheme: {
|
|
43
43
|
light: string;
|
|
44
44
|
dark: string;
|
|
45
45
|
};
|
|
46
46
|
}, {
|
|
47
|
-
|
|
47
|
+
colorScheme: {
|
|
48
48
|
light: string;
|
|
49
49
|
dark: string;
|
|
50
50
|
};
|
|
@@ -84,9 +84,9 @@ export interface BannerProps extends React.HTMLAttributes<HTMLElement>, VariantP
|
|
|
84
84
|
* />
|
|
85
85
|
* </div>
|
|
86
86
|
*
|
|
87
|
-
* // Dark
|
|
87
|
+
* // Dark colorScheme
|
|
88
88
|
* <Banner
|
|
89
|
-
*
|
|
89
|
+
* colorScheme="dark"
|
|
90
90
|
* heading="Still Have Questions?"
|
|
91
91
|
* description="Contact us at support@example.com"
|
|
92
92
|
* action={<Button variant="secondary">Email Us</Button>}
|
|
@@ -35,7 +35,7 @@ export interface FaqSectionProps extends Omit<React.HTMLAttributes<HTMLElement>,
|
|
|
35
35
|
* </FaqSection>
|
|
36
36
|
*
|
|
37
37
|
* // With custom title
|
|
38
|
-
* <FaqSection title="Common Questions"
|
|
38
|
+
* <FaqSection title="Common Questions" colorScheme="light">
|
|
39
39
|
* ...
|
|
40
40
|
* </FaqSection>
|
|
41
41
|
* ```
|
|
@@ -2,19 +2,7 @@ import { VariantProps } from 'tailwind-variants';
|
|
|
2
2
|
import { ComponentTheme } from '../../../lib/theme';
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
export { Background as HeroBackground, BackgroundGradient as HeroGradient, type BackgroundGradientProps as HeroGradientProps, BackgroundImage as HeroBackgroundImage, type BackgroundImageProps as HeroBackgroundImageProps, BackgroundOverlay as HeroOverlay, type BackgroundOverlayProps as HeroOverlayProps, BackgroundStream as HeroBackgroundStream, type BackgroundStreamProps as HeroBackgroundStreamProps, BackgroundVideo as HeroBackgroundVideo, type BackgroundVideoProps as HeroBackgroundVideoProps, } from '../../atoms/background';
|
|
5
|
-
|
|
6
|
-
* Hero variants based on Figma BaseKit / Heros
|
|
7
|
-
*
|
|
8
|
-
* Slots:
|
|
9
|
-
* - root: The outer container
|
|
10
|
-
* - top: Full-width slot at top for banners/nav (no padding)
|
|
11
|
-
* - content: Padded content area with alignment
|
|
12
|
-
*
|
|
13
|
-
* Variants:
|
|
14
|
-
* - A1: Content aligned at bottom (default)
|
|
15
|
-
* - A2: Content aligned at top
|
|
16
|
-
* - A3: Content centered
|
|
17
|
-
*/
|
|
5
|
+
declare const DEFAULT_TITLE_TYPOGRAPHY = "text-64 leading-64 tracking-64 md:text-128 md:leading-128 md:tracking-128 lg:text-192 lg:leading-192 lg:tracking-192 font-medium";
|
|
18
6
|
declare const heroVariants: import('tailwind-variants').TVReturnType<{
|
|
19
7
|
variant: {
|
|
20
8
|
A1: {
|
|
@@ -30,10 +18,26 @@ declare const heroVariants: import('tailwind-variants').TVReturnType<{
|
|
|
30
18
|
content: string[];
|
|
31
19
|
};
|
|
32
20
|
};
|
|
21
|
+
colorScheme: {
|
|
22
|
+
dark: {
|
|
23
|
+
root: string;
|
|
24
|
+
title: string;
|
|
25
|
+
};
|
|
26
|
+
light: {
|
|
27
|
+
root: string;
|
|
28
|
+
title: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
hasBackground: {
|
|
32
|
+
true: {
|
|
33
|
+
root: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
33
36
|
}, {
|
|
34
37
|
root: string;
|
|
35
38
|
top: string;
|
|
36
39
|
content: string[];
|
|
40
|
+
title: string;
|
|
37
41
|
}, undefined, import('tailwind-variants/dist/config.js').TVConfig<{
|
|
38
42
|
variant: {
|
|
39
43
|
A1: {
|
|
@@ -49,6 +53,21 @@ declare const heroVariants: import('tailwind-variants').TVReturnType<{
|
|
|
49
53
|
content: string[];
|
|
50
54
|
};
|
|
51
55
|
};
|
|
56
|
+
colorScheme: {
|
|
57
|
+
dark: {
|
|
58
|
+
root: string;
|
|
59
|
+
title: string;
|
|
60
|
+
};
|
|
61
|
+
light: {
|
|
62
|
+
root: string;
|
|
63
|
+
title: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
hasBackground: {
|
|
67
|
+
true: {
|
|
68
|
+
root: string;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
52
71
|
}, {
|
|
53
72
|
variant: {
|
|
54
73
|
A1: {
|
|
@@ -64,6 +83,21 @@ declare const heroVariants: import('tailwind-variants').TVReturnType<{
|
|
|
64
83
|
content: string[];
|
|
65
84
|
};
|
|
66
85
|
};
|
|
86
|
+
colorScheme: {
|
|
87
|
+
dark: {
|
|
88
|
+
root: string;
|
|
89
|
+
title: string;
|
|
90
|
+
};
|
|
91
|
+
light: {
|
|
92
|
+
root: string;
|
|
93
|
+
title: string;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
hasBackground: {
|
|
97
|
+
true: {
|
|
98
|
+
root: string;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
67
101
|
}>, {
|
|
68
102
|
variant: {
|
|
69
103
|
A1: {
|
|
@@ -79,10 +113,26 @@ declare const heroVariants: import('tailwind-variants').TVReturnType<{
|
|
|
79
113
|
content: string[];
|
|
80
114
|
};
|
|
81
115
|
};
|
|
116
|
+
colorScheme: {
|
|
117
|
+
dark: {
|
|
118
|
+
root: string;
|
|
119
|
+
title: string;
|
|
120
|
+
};
|
|
121
|
+
light: {
|
|
122
|
+
root: string;
|
|
123
|
+
title: string;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
hasBackground: {
|
|
127
|
+
true: {
|
|
128
|
+
root: string;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
82
131
|
}, {
|
|
83
132
|
root: string;
|
|
84
133
|
top: string;
|
|
85
134
|
content: string[];
|
|
135
|
+
title: string;
|
|
86
136
|
}, import('tailwind-variants').TVReturnType<{
|
|
87
137
|
variant: {
|
|
88
138
|
A1: {
|
|
@@ -98,10 +148,26 @@ declare const heroVariants: import('tailwind-variants').TVReturnType<{
|
|
|
98
148
|
content: string[];
|
|
99
149
|
};
|
|
100
150
|
};
|
|
151
|
+
colorScheme: {
|
|
152
|
+
dark: {
|
|
153
|
+
root: string;
|
|
154
|
+
title: string;
|
|
155
|
+
};
|
|
156
|
+
light: {
|
|
157
|
+
root: string;
|
|
158
|
+
title: string;
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
hasBackground: {
|
|
162
|
+
true: {
|
|
163
|
+
root: string;
|
|
164
|
+
};
|
|
165
|
+
};
|
|
101
166
|
}, {
|
|
102
167
|
root: string;
|
|
103
168
|
top: string;
|
|
104
169
|
content: string[];
|
|
170
|
+
title: string;
|
|
105
171
|
}, undefined, import('tailwind-variants/dist/config.js').TVConfig<{
|
|
106
172
|
variant: {
|
|
107
173
|
A1: {
|
|
@@ -117,6 +183,21 @@ declare const heroVariants: import('tailwind-variants').TVReturnType<{
|
|
|
117
183
|
content: string[];
|
|
118
184
|
};
|
|
119
185
|
};
|
|
186
|
+
colorScheme: {
|
|
187
|
+
dark: {
|
|
188
|
+
root: string;
|
|
189
|
+
title: string;
|
|
190
|
+
};
|
|
191
|
+
light: {
|
|
192
|
+
root: string;
|
|
193
|
+
title: string;
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
hasBackground: {
|
|
197
|
+
true: {
|
|
198
|
+
root: string;
|
|
199
|
+
};
|
|
200
|
+
};
|
|
120
201
|
}, {
|
|
121
202
|
variant: {
|
|
122
203
|
A1: {
|
|
@@ -132,6 +213,21 @@ declare const heroVariants: import('tailwind-variants').TVReturnType<{
|
|
|
132
213
|
content: string[];
|
|
133
214
|
};
|
|
134
215
|
};
|
|
216
|
+
colorScheme: {
|
|
217
|
+
dark: {
|
|
218
|
+
root: string;
|
|
219
|
+
title: string;
|
|
220
|
+
};
|
|
221
|
+
light: {
|
|
222
|
+
root: string;
|
|
223
|
+
title: string;
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
hasBackground: {
|
|
227
|
+
true: {
|
|
228
|
+
root: string;
|
|
229
|
+
};
|
|
230
|
+
};
|
|
135
231
|
}>, unknown, unknown, undefined>>;
|
|
136
232
|
declare const heroHeaderVariants: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, "relative z-10 w-full", import('tailwind-variants/dist/config.js').TVConfig<unknown, {} | {}>, {} | {}, undefined, import('tailwind-variants').TVReturnType<unknown, undefined, "relative z-10 w-full", import('tailwind-variants/dist/config.js').TVConfig<unknown, {} | {}>, unknown, unknown, undefined>>;
|
|
137
233
|
declare const heroContentVariants: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, string[], import('tailwind-variants/dist/config.js').TVConfig<unknown, {} | {}>, {} | {}, undefined, import('tailwind-variants').TVReturnType<unknown, undefined, string[], import('tailwind-variants/dist/config.js').TVConfig<unknown, {} | {}>, unknown, unknown, undefined>>;
|
|
@@ -161,6 +257,12 @@ export interface HeroProps extends Omit<React.HTMLAttributes<HTMLElement>, "titl
|
|
|
161
257
|
* Default: "text-64 leading-64 tracking-64 md:text-128 md:leading-128 md:tracking-128 lg:text-192 lg:leading-192 lg:tracking-192"
|
|
162
258
|
*/
|
|
163
259
|
titleClassName?: string;
|
|
260
|
+
/**
|
|
261
|
+
* Color scheme for text content.
|
|
262
|
+
* - dark: Dark text for use on light backgrounds (default)
|
|
263
|
+
* - light: Light text for use on dark backgrounds
|
|
264
|
+
*/
|
|
265
|
+
colorScheme?: "dark" | "light";
|
|
164
266
|
/**
|
|
165
267
|
* Content for the top slot (full-width, no padding).
|
|
166
268
|
* Use for USGovBanner, Navigation, etc.
|
|
@@ -191,11 +293,6 @@ export interface HeroProps extends Omit<React.HTMLAttributes<HTMLElement>, "titl
|
|
|
191
293
|
*/
|
|
192
294
|
theme?: ComponentTheme;
|
|
193
295
|
}
|
|
194
|
-
/**
|
|
195
|
-
* Default responsive typography for hero title using primitive tokens
|
|
196
|
-
* Mobile: 64px, Tablet: 128px, Desktop: 192px
|
|
197
|
-
*/
|
|
198
|
-
declare const DEFAULT_TITLE_TYPOGRAPHY = "text-64 leading-64 tracking-64 md:text-128 md:leading-128 md:tracking-128 lg:text-192 lg:leading-192 lg:tracking-192 font-medium";
|
|
199
296
|
/**
|
|
200
297
|
* Hero component for page headers with large display typography.
|
|
201
298
|
*
|
|
@@ -5,7 +5,7 @@ import * as React from "react";
|
|
|
5
5
|
* Tout variants for background and content styling
|
|
6
6
|
*/
|
|
7
7
|
declare const toutVariants: import('tailwind-variants').TVReturnType<{
|
|
8
|
-
|
|
8
|
+
colorScheme: {
|
|
9
9
|
light: string;
|
|
10
10
|
dark: string;
|
|
11
11
|
};
|
|
@@ -14,7 +14,7 @@ declare const toutVariants: import('tailwind-variants').TVReturnType<{
|
|
|
14
14
|
center: string;
|
|
15
15
|
};
|
|
16
16
|
}, undefined, string[], import('tailwind-variants/dist/config.js').TVConfig<{
|
|
17
|
-
|
|
17
|
+
colorScheme: {
|
|
18
18
|
light: string;
|
|
19
19
|
dark: string;
|
|
20
20
|
};
|
|
@@ -23,7 +23,7 @@ declare const toutVariants: import('tailwind-variants').TVReturnType<{
|
|
|
23
23
|
center: string;
|
|
24
24
|
};
|
|
25
25
|
}, {
|
|
26
|
-
|
|
26
|
+
colorScheme: {
|
|
27
27
|
light: string;
|
|
28
28
|
dark: string;
|
|
29
29
|
};
|
|
@@ -32,7 +32,7 @@ declare const toutVariants: import('tailwind-variants').TVReturnType<{
|
|
|
32
32
|
center: string;
|
|
33
33
|
};
|
|
34
34
|
}>, {
|
|
35
|
-
|
|
35
|
+
colorScheme: {
|
|
36
36
|
light: string;
|
|
37
37
|
dark: string;
|
|
38
38
|
};
|
|
@@ -41,7 +41,7 @@ declare const toutVariants: import('tailwind-variants').TVReturnType<{
|
|
|
41
41
|
center: string;
|
|
42
42
|
};
|
|
43
43
|
}, undefined, import('tailwind-variants').TVReturnType<{
|
|
44
|
-
|
|
44
|
+
colorScheme: {
|
|
45
45
|
light: string;
|
|
46
46
|
dark: string;
|
|
47
47
|
};
|
|
@@ -50,7 +50,7 @@ declare const toutVariants: import('tailwind-variants').TVReturnType<{
|
|
|
50
50
|
center: string;
|
|
51
51
|
};
|
|
52
52
|
}, undefined, string[], import('tailwind-variants/dist/config.js').TVConfig<{
|
|
53
|
-
|
|
53
|
+
colorScheme: {
|
|
54
54
|
light: string;
|
|
55
55
|
dark: string;
|
|
56
56
|
};
|
|
@@ -59,7 +59,7 @@ declare const toutVariants: import('tailwind-variants').TVReturnType<{
|
|
|
59
59
|
center: string;
|
|
60
60
|
};
|
|
61
61
|
}, {
|
|
62
|
-
|
|
62
|
+
colorScheme: {
|
|
63
63
|
light: string;
|
|
64
64
|
dark: string;
|
|
65
65
|
};
|
|
@@ -74,7 +74,7 @@ declare const toutVariants: import('tailwind-variants').TVReturnType<{
|
|
|
74
74
|
* A full-bleed section with a background image and overlaid content.
|
|
75
75
|
* Content can be positioned on the left side or centered.
|
|
76
76
|
*
|
|
77
|
-
*
|
|
77
|
+
* Color schemes:
|
|
78
78
|
* - light: Light text styling (default)
|
|
79
79
|
* - dark: Dark text styling
|
|
80
80
|
*
|
|
@@ -10,80 +10,66 @@ import * as React from "react";
|
|
|
10
10
|
* Uses the 24-column grid system.
|
|
11
11
|
*/
|
|
12
12
|
declare const twoColumnSectionVariants: import('tailwind-variants').TVReturnType<{
|
|
13
|
-
|
|
13
|
+
colorScheme: {
|
|
14
14
|
dark: string;
|
|
15
15
|
light: string;
|
|
16
16
|
};
|
|
17
17
|
layout: {
|
|
18
|
-
/** Default 24-column grid with asymmetric split (title: 9, content: 15) */
|
|
19
18
|
asymmetric: string;
|
|
20
|
-
/** Equal 2-column layout at md+ breakpoints */
|
|
21
19
|
equal: string;
|
|
22
20
|
};
|
|
23
21
|
}, undefined, string[], import('tailwind-variants/dist/config.js').TVConfig<{
|
|
24
|
-
|
|
22
|
+
colorScheme: {
|
|
25
23
|
dark: string;
|
|
26
24
|
light: string;
|
|
27
25
|
};
|
|
28
26
|
layout: {
|
|
29
|
-
/** Default 24-column grid with asymmetric split (title: 9, content: 15) */
|
|
30
27
|
asymmetric: string;
|
|
31
|
-
/** Equal 2-column layout at md+ breakpoints */
|
|
32
28
|
equal: string;
|
|
33
29
|
};
|
|
34
30
|
}, {
|
|
35
|
-
|
|
31
|
+
colorScheme: {
|
|
36
32
|
dark: string;
|
|
37
33
|
light: string;
|
|
38
34
|
};
|
|
39
35
|
layout: {
|
|
40
|
-
/** Default 24-column grid with asymmetric split (title: 9, content: 15) */
|
|
41
36
|
asymmetric: string;
|
|
42
|
-
/** Equal 2-column layout at md+ breakpoints */
|
|
43
37
|
equal: string;
|
|
44
38
|
};
|
|
45
39
|
}>, {
|
|
46
|
-
|
|
40
|
+
colorScheme: {
|
|
47
41
|
dark: string;
|
|
48
42
|
light: string;
|
|
49
43
|
};
|
|
50
44
|
layout: {
|
|
51
|
-
/** Default 24-column grid with asymmetric split (title: 9, content: 15) */
|
|
52
45
|
asymmetric: string;
|
|
53
|
-
/** Equal 2-column layout at md+ breakpoints */
|
|
54
46
|
equal: string;
|
|
55
47
|
};
|
|
56
48
|
}, undefined, import('tailwind-variants').TVReturnType<{
|
|
57
|
-
|
|
49
|
+
colorScheme: {
|
|
58
50
|
dark: string;
|
|
59
51
|
light: string;
|
|
60
52
|
};
|
|
61
53
|
layout: {
|
|
62
|
-
/** Default 24-column grid with asymmetric split (title: 9, content: 15) */
|
|
63
54
|
asymmetric: string;
|
|
64
|
-
/** Equal 2-column layout at md+ breakpoints */
|
|
65
55
|
equal: string;
|
|
66
56
|
};
|
|
67
57
|
}, undefined, string[], import('tailwind-variants/dist/config.js').TVConfig<{
|
|
68
|
-
|
|
58
|
+
colorScheme: {
|
|
69
59
|
dark: string;
|
|
70
60
|
light: string;
|
|
71
61
|
};
|
|
72
62
|
layout: {
|
|
73
|
-
/** Default 24-column grid with asymmetric split (title: 9, content: 15) */
|
|
74
63
|
asymmetric: string;
|
|
75
|
-
/** Equal 2-column layout at md+ breakpoints */
|
|
76
64
|
equal: string;
|
|
77
65
|
};
|
|
78
66
|
}, {
|
|
79
|
-
|
|
67
|
+
colorScheme: {
|
|
80
68
|
dark: string;
|
|
81
69
|
light: string;
|
|
82
70
|
};
|
|
83
71
|
layout: {
|
|
84
|
-
/** Default 24-column grid with asymmetric split (title: 9, content: 15) */
|
|
85
72
|
asymmetric: string;
|
|
86
|
-
/** Equal 2-column layout at md+ breakpoints */
|
|
87
73
|
equal: string;
|
|
88
74
|
};
|
|
89
75
|
}>, unknown, unknown, undefined>>;
|