@nationaldesignstudio/react 0.5.0 → 0.5.2

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.
Files changed (41) hide show
  1. package/dist/index.d.ts +3617 -51
  2. package/dist/index.js +3368 -14973
  3. package/dist/index.js.map +1 -1
  4. package/dist/tailwind.css +0 -10
  5. package/package.json +3 -2
  6. package/src/components/atoms/popover/popover.tsx +1 -1
  7. package/src/components/atoms/tooltip/tooltip.tsx +1 -1
  8. package/dist/assets/fonts/PPNeueMontreal-Variable.woff2 +0 -0
  9. package/dist/assets/react.svg +0 -1
  10. package/dist/components/atoms/accordion/accordion.d.ts +0 -91
  11. package/dist/components/atoms/background/background.d.ts +0 -144
  12. package/dist/components/atoms/button/button.d.ts +0 -148
  13. package/dist/components/atoms/button/button.figma.d.ts +0 -1
  14. package/dist/components/atoms/button/icon-button.d.ts +0 -172
  15. package/dist/components/atoms/input/input-group.d.ts +0 -278
  16. package/dist/components/atoms/input/input.d.ts +0 -121
  17. package/dist/components/atoms/ndstudio-footer/ndstudio-footer.d.ts +0 -30
  18. package/dist/components/atoms/pager-control/pager-control.d.ts +0 -169
  19. package/dist/components/atoms/popover/popover.d.ts +0 -195
  20. package/dist/components/atoms/select/select.d.ts +0 -131
  21. package/dist/components/atoms/tooltip/tooltip.d.ts +0 -161
  22. package/dist/components/dev-tools/dev-toolbar/dev-toolbar.d.ts +0 -4
  23. package/dist/components/dev-tools/grid-overlay/grid-overlay.d.ts +0 -6
  24. package/dist/components/organisms/card/card.d.ts +0 -235
  25. package/dist/components/organisms/navbar/navbar.d.ts +0 -66
  26. package/dist/components/organisms/us-gov-banner/us-gov-banner.d.ts +0 -137
  27. package/dist/components/sections/banner/banner.d.ts +0 -97
  28. package/dist/components/sections/card-grid/card-grid.d.ts +0 -86
  29. package/dist/components/sections/faq-section/faq-section.d.ts +0 -44
  30. package/dist/components/sections/hero/hero.d.ts +0 -337
  31. package/dist/components/sections/prose/prose.d.ts +0 -37
  32. package/dist/components/sections/quote-block/quote-block.d.ts +0 -152
  33. package/dist/components/sections/river/river.d.ts +0 -96
  34. package/dist/components/sections/tout/tout.d.ts +0 -153
  35. package/dist/components/sections/two-column-section/two-column-section.d.ts +0 -118
  36. package/dist/components/shared/floating-arrow.d.ts +0 -34
  37. package/dist/hooks/index.d.ts +0 -1
  38. package/dist/hooks/use-event-listener.d.ts +0 -24
  39. package/dist/lib/form-control.d.ts +0 -106
  40. package/dist/lib/theme.d.ts +0 -330
  41. package/dist/lib/utils.d.ts +0 -1
@@ -1,235 +0,0 @@
1
- import { VariantProps } from 'tailwind-variants';
2
- import * as React from "react";
3
- declare const cardVariants: import('tailwind-variants').TVReturnType<{
4
- layout: {
5
- vertical: string;
6
- horizontal: string;
7
- /**
8
- * Overlay layout - content sits on top of full-bleed background.
9
- * Use with Background components for images/gradients.
10
- */
11
- overlay: string;
12
- };
13
- }, undefined, "relative flex overflow-hidden rounded-surface-card bg-card-background stroke-surface-card border-border-subtle border-solid", import('tailwind-variants/dist/config.js').TVConfig<{
14
- layout: {
15
- vertical: string;
16
- horizontal: string;
17
- /**
18
- * Overlay layout - content sits on top of full-bleed background.
19
- * Use with Background components for images/gradients.
20
- */
21
- overlay: string;
22
- };
23
- }, {
24
- layout: {
25
- vertical: string;
26
- horizontal: string;
27
- /**
28
- * Overlay layout - content sits on top of full-bleed background.
29
- * Use with Background components for images/gradients.
30
- */
31
- overlay: string;
32
- };
33
- }>, {
34
- layout: {
35
- vertical: string;
36
- horizontal: string;
37
- /**
38
- * Overlay layout - content sits on top of full-bleed background.
39
- * Use with Background components for images/gradients.
40
- */
41
- overlay: string;
42
- };
43
- }, undefined, import('tailwind-variants').TVReturnType<{
44
- layout: {
45
- vertical: string;
46
- horizontal: string;
47
- /**
48
- * Overlay layout - content sits on top of full-bleed background.
49
- * Use with Background components for images/gradients.
50
- */
51
- overlay: string;
52
- };
53
- }, undefined, "relative flex overflow-hidden rounded-surface-card bg-card-background stroke-surface-card border-border-subtle border-solid", import('tailwind-variants/dist/config.js').TVConfig<{
54
- layout: {
55
- vertical: string;
56
- horizontal: string;
57
- /**
58
- * Overlay layout - content sits on top of full-bleed background.
59
- * Use with Background components for images/gradients.
60
- */
61
- overlay: string;
62
- };
63
- }, {
64
- layout: {
65
- vertical: string;
66
- horizontal: string;
67
- /**
68
- * Overlay layout - content sits on top of full-bleed background.
69
- * Use with Background components for images/gradients.
70
- */
71
- overlay: string;
72
- };
73
- }>, unknown, unknown, undefined>>;
74
- export interface CardProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof cardVariants> {
75
- }
76
- /**
77
- * Card component for displaying content in a contained, scannable format.
78
- *
79
- * Layouts:
80
- * - vertical: Image on top, content below (default)
81
- * - horizontal: Image on left, content on right
82
- * - overlay: Full-bleed background with content on top
83
- *
84
- * Use with CardImage, CardContent, CardEyebrow, CardTitle, CardDescription, and CardActions.
85
- * For overlay layout, use Background components for full-bleed backgrounds.
86
- */
87
- declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
88
- declare const cardImageVariants: 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>>;
89
- export interface CardImageProps extends React.HTMLAttributes<HTMLDivElement> {
90
- /**
91
- * The image source URL
92
- */
93
- src?: string;
94
- /**
95
- * Alt text for the image
96
- */
97
- alt?: string;
98
- }
99
- /**
100
- * Card image area. For vertical layout, displays with 16:9 aspect ratio.
101
- * For horizontal layout, takes up ~40% width and stretches to content height.
102
- */
103
- declare const CardImage: React.ForwardRefExoticComponent<CardImageProps & React.RefAttributes<HTMLDivElement>>;
104
- declare const cardContentVariants: import('tailwind-variants').TVReturnType<{
105
- /**
106
- * Vertical alignment of content within the card.
107
- * Useful for overlay layouts to position content at top/center/bottom.
108
- */
109
- justify: {
110
- start: string;
111
- center: string;
112
- end: string;
113
- };
114
- }, undefined, "flex w-full flex-1 flex-col gap-spatial-card-large-gap p-spatial-card-large-padding", import('tailwind-variants/dist/config.js').TVConfig<{
115
- /**
116
- * Vertical alignment of content within the card.
117
- * Useful for overlay layouts to position content at top/center/bottom.
118
- */
119
- justify: {
120
- start: string;
121
- center: string;
122
- end: string;
123
- };
124
- }, {
125
- /**
126
- * Vertical alignment of content within the card.
127
- * Useful for overlay layouts to position content at top/center/bottom.
128
- */
129
- justify: {
130
- start: string;
131
- center: string;
132
- end: string;
133
- };
134
- }>, {
135
- /**
136
- * Vertical alignment of content within the card.
137
- * Useful for overlay layouts to position content at top/center/bottom.
138
- */
139
- justify: {
140
- start: string;
141
- center: string;
142
- end: string;
143
- };
144
- }, undefined, import('tailwind-variants').TVReturnType<{
145
- /**
146
- * Vertical alignment of content within the card.
147
- * Useful for overlay layouts to position content at top/center/bottom.
148
- */
149
- justify: {
150
- start: string;
151
- center: string;
152
- end: string;
153
- };
154
- }, undefined, "flex w-full flex-1 flex-col gap-spatial-card-large-gap p-spatial-card-large-padding", import('tailwind-variants/dist/config.js').TVConfig<{
155
- /**
156
- * Vertical alignment of content within the card.
157
- * Useful for overlay layouts to position content at top/center/bottom.
158
- */
159
- justify: {
160
- start: string;
161
- center: string;
162
- end: string;
163
- };
164
- }, {
165
- /**
166
- * Vertical alignment of content within the card.
167
- * Useful for overlay layouts to position content at top/center/bottom.
168
- */
169
- justify: {
170
- start: string;
171
- center: string;
172
- end: string;
173
- };
174
- }>, unknown, unknown, undefined>>;
175
- export interface CardContentProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof cardContentVariants> {
176
- }
177
- /**
178
- * Card content container with proper padding and spacing.
179
- * Uses spatial card tokens for consistent sizing.
180
- * For overlay layout, add `relative z-10` to ensure content sits above background.
181
- *
182
- * @example
183
- * ```tsx
184
- * // Content at bottom of overlay card
185
- * <Card layout="overlay">
186
- * <Background.Image src="/hero.jpg" />
187
- * <CardContent justify="end" className="relative z-10">
188
- * <CardTitle>Title</CardTitle>
189
- * </CardContent>
190
- * </Card>
191
- * ```
192
- */
193
- declare const CardContent: React.ForwardRefExoticComponent<CardContentProps & React.RefAttributes<HTMLDivElement>>;
194
- declare const cardEyebrowVariants: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, "typography-overline text-text-muted uppercase tracking-wider", import('tailwind-variants/dist/config.js').TVConfig<unknown, {} | {}>, {} | {}, undefined, import('tailwind-variants').TVReturnType<unknown, undefined, "typography-overline text-text-muted uppercase tracking-wider", import('tailwind-variants/dist/config.js').TVConfig<unknown, {} | {}>, unknown, unknown, undefined>>;
195
- export interface CardEyebrowProps extends React.HTMLAttributes<HTMLParagraphElement> {
196
- }
197
- /**
198
- * Optional eyebrow text above the card title.
199
- */
200
- declare const CardEyebrow: React.ForwardRefExoticComponent<CardEyebrowProps & React.RefAttributes<HTMLParagraphElement>>;
201
- declare const cardTitleVariants: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, "typography-h5 text-text-primary", import('tailwind-variants/dist/config.js').TVConfig<unknown, {} | {}>, {} | {}, undefined, import('tailwind-variants').TVReturnType<unknown, undefined, "typography-h5 text-text-primary", import('tailwind-variants/dist/config.js').TVConfig<unknown, {} | {}>, unknown, unknown, undefined>>;
202
- export interface CardTitleProps extends React.HTMLAttributes<HTMLHeadingElement> {
203
- /**
204
- * The heading level to render (h1-h6). Defaults to h3.
205
- */
206
- as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
207
- }
208
- /**
209
- * Card title/heading. Use the `as` prop to change the heading level.
210
- */
211
- declare const CardTitle: React.ForwardRefExoticComponent<CardTitleProps & React.RefAttributes<HTMLHeadingElement>>;
212
- declare const cardDescriptionVariants: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, "typography-body-small text-text-secondary", import('tailwind-variants/dist/config.js').TVConfig<unknown, {} | {}>, {} | {}, undefined, import('tailwind-variants').TVReturnType<unknown, undefined, "typography-body-small text-text-secondary", import('tailwind-variants/dist/config.js').TVConfig<unknown, {} | {}>, unknown, unknown, undefined>>;
213
- export interface CardDescriptionProps extends React.HTMLAttributes<HTMLParagraphElement> {
214
- }
215
- /**
216
- * Card body/description text.
217
- */
218
- declare const CardDescription: React.ForwardRefExoticComponent<CardDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
219
- declare const cardBodyVariants: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, "flex w-full flex-col gap-spatial-card-small-gap", import('tailwind-variants/dist/config.js').TVConfig<unknown, {} | {}>, {} | {}, undefined, import('tailwind-variants').TVReturnType<unknown, undefined, "flex w-full flex-col gap-spatial-card-small-gap", import('tailwind-variants/dist/config.js').TVConfig<unknown, {} | {}>, unknown, unknown, undefined>>;
220
- export interface CardBodyProps extends React.HTMLAttributes<HTMLDivElement> {
221
- }
222
- /**
223
- * Container for card text content (eyebrow, title, description).
224
- * Uses spatial card tokens for consistent sizing.
225
- */
226
- declare const CardBody: React.ForwardRefExoticComponent<CardBodyProps & React.RefAttributes<HTMLDivElement>>;
227
- declare const cardActionsVariants: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, "flex gap-12", import('tailwind-variants/dist/config.js').TVConfig<unknown, {} | {}>, {} | {}, undefined, import('tailwind-variants').TVReturnType<unknown, undefined, "flex gap-12", import('tailwind-variants/dist/config.js').TVConfig<unknown, {} | {}>, unknown, unknown, undefined>>;
228
- export interface CardActionsProps extends React.HTMLAttributes<HTMLDivElement> {
229
- }
230
- /**
231
- * Container for card action buttons.
232
- * Uses primitive spacing tokens.
233
- */
234
- declare const CardActions: React.ForwardRefExoticComponent<CardActionsProps & React.RefAttributes<HTMLDivElement>>;
235
- export { Card, cardVariants, CardImage, cardImageVariants, CardContent, cardContentVariants, CardEyebrow, cardEyebrowVariants, CardTitle, cardTitleVariants, CardDescription, cardDescriptionVariants, CardBody, cardBodyVariants, CardActions, cardActionsVariants, };
@@ -1,66 +0,0 @@
1
- import * as React from "react";
2
- export interface NavbarProps extends React.HTMLAttributes<HTMLElement> {
3
- }
4
- /**
5
- * Main navigation bar container.
6
- * Provides responsive layout for brand, links, and actions.
7
- */
8
- declare const Navbar: React.ForwardRefExoticComponent<NavbarProps & React.RefAttributes<HTMLElement>>;
9
- export interface NavbarBrandProps extends React.HTMLAttributes<HTMLDivElement> {
10
- asChild?: boolean;
11
- }
12
- /**
13
- * Brand/logo area of the navbar.
14
- * Use asChild to render as a link.
15
- */
16
- declare const NavbarBrand: React.ForwardRefExoticComponent<NavbarBrandProps & React.RefAttributes<HTMLDivElement>>;
17
- export interface NavbarLinksProps extends React.HTMLAttributes<HTMLDivElement> {
18
- }
19
- /**
20
- * Container for navigation links.
21
- * Centers links on desktop, hidden on mobile (use NavbarMobileMenu instead).
22
- */
23
- declare const NavbarLinks: React.ForwardRefExoticComponent<NavbarLinksProps & React.RefAttributes<HTMLDivElement>>;
24
- export interface NavbarLinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
25
- asChild?: boolean;
26
- active?: boolean;
27
- }
28
- /**
29
- * Individual navigation link.
30
- * Use asChild to render with a router Link component.
31
- */
32
- declare const NavbarLink: React.ForwardRefExoticComponent<NavbarLinkProps & React.RefAttributes<HTMLAnchorElement>>;
33
- export interface NavbarActionsProps extends React.HTMLAttributes<HTMLDivElement> {
34
- }
35
- /**
36
- * Container for navbar action items (search, menu button, etc).
37
- */
38
- declare const NavbarActions: React.ForwardRefExoticComponent<NavbarActionsProps & React.RefAttributes<HTMLDivElement>>;
39
- export interface NavbarMobileMenuProps extends React.HTMLAttributes<HTMLDivElement> {
40
- }
41
- /**
42
- * Mobile menu container that displays navigation links on mobile devices.
43
- * Hidden on desktop (md and above). Should be used with NavbarMobileMenuButton.
44
- * Built on Base UI Dialog for accessibility (focus trap, escape key, click-outside).
45
- */
46
- declare const NavbarMobileMenu: React.ForwardRefExoticComponent<NavbarMobileMenuProps & React.RefAttributes<HTMLDivElement>>;
47
- export interface NavbarMobileMenuButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
48
- asChild?: boolean;
49
- }
50
- /**
51
- * Button to toggle the mobile menu.
52
- * Should be placed in NavbarActions on mobile.
53
- * Use asChild to render as a custom button component (e.g., IconButton).
54
- */
55
- declare const NavbarMobileMenuButton: React.ForwardRefExoticComponent<NavbarMobileMenuButtonProps & React.RefAttributes<HTMLButtonElement>>;
56
- export interface NavbarMobileMenuLinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
57
- asChild?: boolean;
58
- active?: boolean;
59
- }
60
- /**
61
- * Navigation link for the mobile menu.
62
- * Automatically closes the mobile menu when clicked.
63
- * Use asChild to render with a router Link component.
64
- */
65
- declare const NavbarMobileMenuLink: React.ForwardRefExoticComponent<NavbarMobileMenuLinkProps & React.RefAttributes<HTMLAnchorElement>>;
66
- export { Navbar, NavbarBrand, NavbarLinks, NavbarLink, NavbarActions, NavbarMobileMenu, NavbarMobileMenuButton, NavbarMobileMenuLink, };
@@ -1,137 +0,0 @@
1
- import { VariantProps } from 'tailwind-variants';
2
- import * as React from "react";
3
- declare const usGovBannerVariants: import('tailwind-variants').TVReturnType<{
4
- variant: {
5
- default: {
6
- root: string;
7
- content: string;
8
- text: string;
9
- };
10
- inverted: {
11
- root: string;
12
- content: string;
13
- text: string;
14
- };
15
- };
16
- }, {
17
- root: string;
18
- content: string;
19
- text: string;
20
- }, undefined, import('tailwind-variants/dist/config.js').TVConfig<{
21
- variant: {
22
- default: {
23
- root: string;
24
- content: string;
25
- text: string;
26
- };
27
- inverted: {
28
- root: string;
29
- content: string;
30
- text: string;
31
- };
32
- };
33
- }, {
34
- variant: {
35
- default: {
36
- root: string;
37
- content: string;
38
- text: string;
39
- };
40
- inverted: {
41
- root: string;
42
- content: string;
43
- text: string;
44
- };
45
- };
46
- }>, {
47
- variant: {
48
- default: {
49
- root: string;
50
- content: string;
51
- text: string;
52
- };
53
- inverted: {
54
- root: string;
55
- content: string;
56
- text: string;
57
- };
58
- };
59
- }, {
60
- root: string;
61
- content: string;
62
- text: string;
63
- }, import('tailwind-variants').TVReturnType<{
64
- variant: {
65
- default: {
66
- root: string;
67
- content: string;
68
- text: string;
69
- };
70
- inverted: {
71
- root: string;
72
- content: string;
73
- text: string;
74
- };
75
- };
76
- }, {
77
- root: string;
78
- content: string;
79
- text: string;
80
- }, undefined, import('tailwind-variants/dist/config.js').TVConfig<{
81
- variant: {
82
- default: {
83
- root: string;
84
- content: string;
85
- text: string;
86
- };
87
- inverted: {
88
- root: string;
89
- content: string;
90
- text: string;
91
- };
92
- };
93
- }, {
94
- variant: {
95
- default: {
96
- root: string;
97
- content: string;
98
- text: string;
99
- };
100
- inverted: {
101
- root: string;
102
- content: string;
103
- text: string;
104
- };
105
- };
106
- }>, unknown, unknown, undefined>>;
107
- export interface USGovBannerProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof usGovBannerVariants> {
108
- /**
109
- * Custom flag icon element. Defaults to a US flag SVG.
110
- */
111
- flagIcon?: React.ReactNode;
112
- /**
113
- * Banner text content
114
- * @default "An official website of the United States government"
115
- */
116
- text?: string;
117
- }
118
- /**
119
- * US Government official website banner.
120
- * Displays the official government website notice with flag icon.
121
- * Commonly placed at the very top of government websites.
122
- *
123
- * Variants:
124
- * - default: Light background with dark text (for light pages)
125
- * - inverted: Transparent background with white text/flag (for dark backgrounds/heroes)
126
- *
127
- * @example
128
- * ```tsx
129
- * // Default (light)
130
- * <USGovBanner />
131
- *
132
- * // Inverted (for dark backgrounds)
133
- * <USGovBanner variant="inverted" />
134
- * ```
135
- */
136
- declare const USGovBanner: React.ForwardRefExoticComponent<USGovBannerProps & React.RefAttributes<HTMLDivElement>>;
137
- export { USGovBanner, usGovBannerVariants };
@@ -1,97 +0,0 @@
1
- import { VariantProps } from 'tailwind-variants';
2
- import * as React from "react";
3
- /**
4
- * Banner component based on Figma BaseKit / Banners
5
- *
6
- * Used to surface short, important updates or a single key action
7
- * without disrupting the main page content.
8
- *
9
- * Responsive behavior using 24-column grid:
10
- * - Mobile (sm): Stacked layout, 20px horizontal / 32px vertical padding
11
- * - Tablet (md): Horizontal layout, 56px padding
12
- * - Desktop (lg): Horizontal layout, 72px padding
13
- *
14
- * Must be placed inside a `grid-container`. Uses `col-full` to span all columns.
15
- */
16
- declare const bannerVariants: import('tailwind-variants').TVReturnType<{
17
- colorScheme: {
18
- light: string;
19
- dark: string;
20
- };
21
- }, undefined, string[], import('tailwind-variants/dist/config.js').TVConfig<{
22
- colorScheme: {
23
- light: string;
24
- dark: string;
25
- };
26
- }, {
27
- colorScheme: {
28
- light: string;
29
- dark: string;
30
- };
31
- }>, {
32
- colorScheme: {
33
- light: string;
34
- dark: string;
35
- };
36
- }, undefined, import('tailwind-variants').TVReturnType<{
37
- colorScheme: {
38
- light: string;
39
- dark: string;
40
- };
41
- }, undefined, string[], import('tailwind-variants/dist/config.js').TVConfig<{
42
- colorScheme: {
43
- light: string;
44
- dark: string;
45
- };
46
- }, {
47
- colorScheme: {
48
- light: string;
49
- dark: string;
50
- };
51
- }>, unknown, unknown, undefined>>;
52
- export interface BannerProps extends React.HTMLAttributes<HTMLElement>, VariantProps<typeof bannerVariants> {
53
- /**
54
- * The heading text displayed in the banner
55
- */
56
- heading: string;
57
- /**
58
- * The description text displayed below the heading
59
- */
60
- description: string;
61
- /**
62
- * Optional action element (typically a Button component)
63
- */
64
- action?: React.ReactNode;
65
- }
66
- /**
67
- * Banner component for surfacing important updates or CTAs.
68
- *
69
- * Uses the 24-column grid system - must be placed inside a `grid-container`.
70
- * Spans full width with `col-full`.
71
- *
72
- * Responsive across breakpoints:
73
- * - Mobile: Stacked layout with smaller padding
74
- * - Tablet: Horizontal layout with medium padding
75
- * - Desktop: Horizontal layout with larger padding
76
- *
77
- * @example
78
- * ```tsx
79
- * <div className="grid-container">
80
- * <Banner
81
- * heading="Important Update"
82
- * description="Check out our new features."
83
- * action={<Button>Learn More</Button>}
84
- * />
85
- * </div>
86
- *
87
- * // Dark colorScheme
88
- * <Banner
89
- * colorScheme="dark"
90
- * heading="Still Have Questions?"
91
- * description="Contact us at support@example.com"
92
- * action={<Button variant="secondary">Email Us</Button>}
93
- * />
94
- * ```
95
- */
96
- declare const Banner: React.ForwardRefExoticComponent<BannerProps & React.RefAttributes<HTMLElement>>;
97
- export { Banner, bannerVariants };
@@ -1,86 +0,0 @@
1
- import { VariantProps } from 'tailwind-variants';
2
- import * as React from "react";
3
- /**
4
- * CardGrid component for displaying cards in a responsive grid layout
5
- *
6
- * Variants:
7
- * - A: 3 columns on desktop, 2 on tablet, 1 on mobile
8
- * - B: 2 columns on desktop/tablet, 1 on mobile
9
- *
10
- * Uses the 24-column grid system with grid-container as root.
11
- */
12
- declare const cardGridVariants: import('tailwind-variants').TVReturnType<{
13
- variant: {
14
- A: string;
15
- B: string;
16
- };
17
- }, undefined, string[], import('tailwind-variants/dist/config.js').TVConfig<{
18
- variant: {
19
- A: string;
20
- B: string;
21
- };
22
- }, {
23
- variant: {
24
- A: string;
25
- B: string;
26
- };
27
- }>, {
28
- variant: {
29
- A: string;
30
- B: string;
31
- };
32
- }, undefined, import('tailwind-variants').TVReturnType<{
33
- variant: {
34
- A: string;
35
- B: string;
36
- };
37
- }, undefined, string[], import('tailwind-variants/dist/config.js').TVConfig<{
38
- variant: {
39
- A: string;
40
- B: string;
41
- };
42
- }, {
43
- variant: {
44
- A: string;
45
- B: string;
46
- };
47
- }>, unknown, unknown, undefined>>;
48
- export interface CardGridProps extends React.HTMLAttributes<HTMLElement>, VariantProps<typeof cardGridVariants> {
49
- /**
50
- * The title text displayed above the cards
51
- */
52
- title: string;
53
- /**
54
- * The card elements to display in the grid
55
- */
56
- cards: React.ReactNode[];
57
- }
58
- /**
59
- * CardGrid component for displaying cards in a responsive grid layout.
60
- *
61
- * Uses the 24-column grid system with grid-container as root.
62
- *
63
- * Layout (Variant A):
64
- * - Mobile (sm): Single column, py-72
65
- * - Tablet (md): 2 columns, gap-56 between title and cards, gap-y-20 between cards
66
- * - Desktop (lg+): 3 columns, py-128, gap-64 between title and cards, gap-y-20 between cards
67
- *
68
- * Layout (Variant B):
69
- * - Mobile (sm): Single column, py-72
70
- * - Tablet (md): 2 columns, gap-56 between title and cards, gap-y-20 between cards
71
- * - Desktop (lg+): 2 columns, py-128, gap-64 between title and cards, gap-y-20 between cards
72
- *
73
- * @example
74
- * ```tsx
75
- * <CardGrid
76
- * variant="A"
77
- * title="Featured Cards"
78
- * cards={[
79
- * <Card key="1">...</Card>,
80
- * <Card key="2">...</Card>,
81
- * ]}
82
- * />
83
- * ```
84
- */
85
- declare const CardGrid: React.ForwardRefExoticComponent<CardGridProps & React.RefAttributes<HTMLElement>>;
86
- export { CardGrid, cardGridVariants };
@@ -1,44 +0,0 @@
1
- import { VariantProps } from 'tailwind-variants';
2
- import { twoColumnSectionVariants } from '../two-column-section/two-column-section';
3
- import * as React from "react";
4
- export interface FaqSectionProps extends Omit<React.HTMLAttributes<HTMLElement>, "title">, VariantProps<typeof twoColumnSectionVariants> {
5
- /**
6
- * The title text displayed in the left column
7
- * @default "Frequently Asked Questions"
8
- */
9
- title?: string;
10
- /**
11
- * The FAQ content - typically an Accordion with AccordionItems
12
- */
13
- children: React.ReactNode;
14
- }
15
- /**
16
- * FaqSection component for displaying FAQ content in a two-column layout.
17
- *
18
- * Wraps TwoColumnSection with FAQ-specific defaults and typography.
19
- *
20
- * Layout:
21
- * - Mobile/Tablet: Stacked (title above content)
22
- * - Desktop (lg+): Title left (~40%), FAQ content right (~60%)
23
- *
24
- * @example
25
- * ```tsx
26
- * <FaqSection>
27
- * <Accordion defaultExpanded="faq-1">
28
- * <AccordionItem id="faq-1" title="What is the US Tech Force?">
29
- * Tech Force will be an elite group of technology specialists...
30
- * </AccordionItem>
31
- * <AccordionItem id="faq-2" title="What skills are required?">
32
- * We're looking for expertise in software engineering...
33
- * </AccordionItem>
34
- * </Accordion>
35
- * </FaqSection>
36
- *
37
- * // With custom title
38
- * <FaqSection title="Common Questions" colorScheme="light">
39
- * ...
40
- * </FaqSection>
41
- * ```
42
- */
43
- declare const FaqSection: React.ForwardRefExoticComponent<FaqSectionProps & React.RefAttributes<HTMLElement>>;
44
- export { FaqSection };