@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.
- package/dist/index.d.ts +3617 -51
- package/dist/index.js +3368 -14973
- package/dist/index.js.map +1 -1
- package/dist/tailwind.css +0 -10
- package/package.json +3 -2
- package/src/components/atoms/popover/popover.tsx +1 -1
- package/src/components/atoms/tooltip/tooltip.tsx +1 -1
- package/dist/assets/fonts/PPNeueMontreal-Variable.woff2 +0 -0
- package/dist/assets/react.svg +0 -1
- package/dist/components/atoms/accordion/accordion.d.ts +0 -91
- package/dist/components/atoms/background/background.d.ts +0 -144
- package/dist/components/atoms/button/button.d.ts +0 -148
- package/dist/components/atoms/button/button.figma.d.ts +0 -1
- package/dist/components/atoms/button/icon-button.d.ts +0 -172
- package/dist/components/atoms/input/input-group.d.ts +0 -278
- package/dist/components/atoms/input/input.d.ts +0 -121
- package/dist/components/atoms/ndstudio-footer/ndstudio-footer.d.ts +0 -30
- package/dist/components/atoms/pager-control/pager-control.d.ts +0 -169
- package/dist/components/atoms/popover/popover.d.ts +0 -195
- package/dist/components/atoms/select/select.d.ts +0 -131
- package/dist/components/atoms/tooltip/tooltip.d.ts +0 -161
- package/dist/components/dev-tools/dev-toolbar/dev-toolbar.d.ts +0 -4
- package/dist/components/dev-tools/grid-overlay/grid-overlay.d.ts +0 -6
- package/dist/components/organisms/card/card.d.ts +0 -235
- package/dist/components/organisms/navbar/navbar.d.ts +0 -66
- package/dist/components/organisms/us-gov-banner/us-gov-banner.d.ts +0 -137
- package/dist/components/sections/banner/banner.d.ts +0 -97
- package/dist/components/sections/card-grid/card-grid.d.ts +0 -86
- package/dist/components/sections/faq-section/faq-section.d.ts +0 -44
- package/dist/components/sections/hero/hero.d.ts +0 -337
- package/dist/components/sections/prose/prose.d.ts +0 -37
- package/dist/components/sections/quote-block/quote-block.d.ts +0 -152
- package/dist/components/sections/river/river.d.ts +0 -96
- package/dist/components/sections/tout/tout.d.ts +0 -153
- package/dist/components/sections/two-column-section/two-column-section.d.ts +0 -118
- package/dist/components/shared/floating-arrow.d.ts +0 -34
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/use-event-listener.d.ts +0 -24
- package/dist/lib/form-control.d.ts +0 -106
- package/dist/lib/theme.d.ts +0 -330
- package/dist/lib/utils.d.ts +0 -1
|
@@ -1,278 +0,0 @@
|
|
|
1
|
-
import { VariantProps } from 'tailwind-variants';
|
|
2
|
-
import { ButtonProps } from '../button';
|
|
3
|
-
import type * as React from "react";
|
|
4
|
-
declare const inputGroupVariants: import('tailwind-variants').TVReturnType<{
|
|
5
|
-
size: {
|
|
6
|
-
sm: string;
|
|
7
|
-
default: string;
|
|
8
|
-
lg: string;
|
|
9
|
-
};
|
|
10
|
-
}, undefined, string[], import('tailwind-variants/dist/config.js').TVConfig<{
|
|
11
|
-
size: {
|
|
12
|
-
sm: string;
|
|
13
|
-
default: string;
|
|
14
|
-
lg: string;
|
|
15
|
-
};
|
|
16
|
-
}, {
|
|
17
|
-
size: {
|
|
18
|
-
sm: string;
|
|
19
|
-
default: string;
|
|
20
|
-
lg: string;
|
|
21
|
-
};
|
|
22
|
-
}>, {
|
|
23
|
-
size: {
|
|
24
|
-
sm: string;
|
|
25
|
-
default: string;
|
|
26
|
-
lg: string;
|
|
27
|
-
};
|
|
28
|
-
}, undefined, import('tailwind-variants').TVReturnType<{
|
|
29
|
-
size: {
|
|
30
|
-
sm: string;
|
|
31
|
-
default: string;
|
|
32
|
-
lg: string;
|
|
33
|
-
};
|
|
34
|
-
}, undefined, string[], import('tailwind-variants/dist/config.js').TVConfig<{
|
|
35
|
-
size: {
|
|
36
|
-
sm: string;
|
|
37
|
-
default: string;
|
|
38
|
-
lg: string;
|
|
39
|
-
};
|
|
40
|
-
}, {
|
|
41
|
-
size: {
|
|
42
|
-
sm: string;
|
|
43
|
-
default: string;
|
|
44
|
-
lg: string;
|
|
45
|
-
};
|
|
46
|
-
}>, unknown, unknown, undefined>>;
|
|
47
|
-
declare const inputGroupAddonVariants: import('tailwind-variants').TVReturnType<{
|
|
48
|
-
align: {
|
|
49
|
-
"inline-start": string[];
|
|
50
|
-
"inline-end": string[];
|
|
51
|
-
"block-start": string[];
|
|
52
|
-
"block-end": string[];
|
|
53
|
-
};
|
|
54
|
-
}, undefined, string[], import('tailwind-variants/dist/config.js').TVConfig<{
|
|
55
|
-
align: {
|
|
56
|
-
"inline-start": string[];
|
|
57
|
-
"inline-end": string[];
|
|
58
|
-
"block-start": string[];
|
|
59
|
-
"block-end": string[];
|
|
60
|
-
};
|
|
61
|
-
}, {
|
|
62
|
-
align: {
|
|
63
|
-
"inline-start": string[];
|
|
64
|
-
"inline-end": string[];
|
|
65
|
-
"block-start": string[];
|
|
66
|
-
"block-end": string[];
|
|
67
|
-
};
|
|
68
|
-
}>, {
|
|
69
|
-
align: {
|
|
70
|
-
"inline-start": string[];
|
|
71
|
-
"inline-end": string[];
|
|
72
|
-
"block-start": string[];
|
|
73
|
-
"block-end": string[];
|
|
74
|
-
};
|
|
75
|
-
}, undefined, import('tailwind-variants').TVReturnType<{
|
|
76
|
-
align: {
|
|
77
|
-
"inline-start": string[];
|
|
78
|
-
"inline-end": string[];
|
|
79
|
-
"block-start": string[];
|
|
80
|
-
"block-end": string[];
|
|
81
|
-
};
|
|
82
|
-
}, undefined, string[], import('tailwind-variants/dist/config.js').TVConfig<{
|
|
83
|
-
align: {
|
|
84
|
-
"inline-start": string[];
|
|
85
|
-
"inline-end": string[];
|
|
86
|
-
"block-start": string[];
|
|
87
|
-
"block-end": string[];
|
|
88
|
-
};
|
|
89
|
-
}, {
|
|
90
|
-
align: {
|
|
91
|
-
"inline-start": string[];
|
|
92
|
-
"inline-end": string[];
|
|
93
|
-
"block-start": string[];
|
|
94
|
-
"block-end": string[];
|
|
95
|
-
};
|
|
96
|
-
}>, unknown, unknown, undefined>>;
|
|
97
|
-
export interface InputGroupProps extends React.FieldsetHTMLAttributes<HTMLFieldSetElement>, VariantProps<typeof inputGroupVariants> {
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* InputGroup component for combining inputs with addons, buttons, and text.
|
|
101
|
-
*
|
|
102
|
-
* A container that groups an input with prefix/suffix addons, icons, or buttons.
|
|
103
|
-
* Supports inline (left/right) and block (top/bottom) addon positioning.
|
|
104
|
-
*
|
|
105
|
-
* Uses semantic UI tokens for theming support.
|
|
106
|
-
*
|
|
107
|
-
* @example
|
|
108
|
-
* ```tsx
|
|
109
|
-
* // With prefix icon
|
|
110
|
-
* <InputGroup>
|
|
111
|
-
* <InputGroupAddon>
|
|
112
|
-
* <SearchIcon />
|
|
113
|
-
* </InputGroupAddon>
|
|
114
|
-
* <InputGroupInput placeholder="Search..." />
|
|
115
|
-
* </InputGroup>
|
|
116
|
-
*
|
|
117
|
-
* // With suffix button
|
|
118
|
-
* <InputGroup>
|
|
119
|
-
* <InputGroupInput placeholder="Enter email" />
|
|
120
|
-
* <InputGroupAddon align="inline-end">
|
|
121
|
-
* <InputGroupButton>Subscribe</InputGroupButton>
|
|
122
|
-
* </InputGroupAddon>
|
|
123
|
-
* </InputGroup>
|
|
124
|
-
*
|
|
125
|
-
* // With text prefix
|
|
126
|
-
* <InputGroup>
|
|
127
|
-
* <InputGroupAddon>
|
|
128
|
-
* <InputGroupText>https://</InputGroupText>
|
|
129
|
-
* </InputGroupAddon>
|
|
130
|
-
* <InputGroupInput placeholder="example.com" />
|
|
131
|
-
* </InputGroup>
|
|
132
|
-
* ```
|
|
133
|
-
*/
|
|
134
|
-
declare function InputGroup({ className, size, disabled, ...props }: InputGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
135
|
-
export interface InputGroupAddonProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof inputGroupAddonVariants> {
|
|
136
|
-
}
|
|
137
|
-
/**
|
|
138
|
-
* InputGroupAddon component for positioning addons within an InputGroup.
|
|
139
|
-
*
|
|
140
|
-
* Can contain icons, text, or buttons. Clicking the addon focuses the input.
|
|
141
|
-
*
|
|
142
|
-
* @example
|
|
143
|
-
* ```tsx
|
|
144
|
-
* // Inline start (default - left side)
|
|
145
|
-
* <InputGroupAddon>
|
|
146
|
-
* <SearchIcon />
|
|
147
|
-
* </InputGroupAddon>
|
|
148
|
-
*
|
|
149
|
-
* // Inline end (right side)
|
|
150
|
-
* <InputGroupAddon align="inline-end">
|
|
151
|
-
* <InputGroupButton>Submit</InputGroupButton>
|
|
152
|
-
* </InputGroupAddon>
|
|
153
|
-
*
|
|
154
|
-
* // Block positions (top/bottom)
|
|
155
|
-
* <InputGroupAddon align="block-start">
|
|
156
|
-
* <label>Email Address</label>
|
|
157
|
-
* </InputGroupAddon>
|
|
158
|
-
* ```
|
|
159
|
-
*/
|
|
160
|
-
declare function InputGroupAddon({ className, align, onClick, onKeyDown, ...props }: InputGroupAddonProps): import("react/jsx-runtime").JSX.Element;
|
|
161
|
-
declare const inputGroupButtonVariants: import('tailwind-variants').TVReturnType<{
|
|
162
|
-
size: {
|
|
163
|
-
xs: string;
|
|
164
|
-
sm: string;
|
|
165
|
-
"icon-xs": string;
|
|
166
|
-
"icon-sm": string;
|
|
167
|
-
};
|
|
168
|
-
}, undefined, string[], import('tailwind-variants/dist/config.js').TVConfig<{
|
|
169
|
-
size: {
|
|
170
|
-
xs: string;
|
|
171
|
-
sm: string;
|
|
172
|
-
"icon-xs": string;
|
|
173
|
-
"icon-sm": string;
|
|
174
|
-
};
|
|
175
|
-
}, {
|
|
176
|
-
size: {
|
|
177
|
-
xs: string;
|
|
178
|
-
sm: string;
|
|
179
|
-
"icon-xs": string;
|
|
180
|
-
"icon-sm": string;
|
|
181
|
-
};
|
|
182
|
-
}>, {
|
|
183
|
-
size: {
|
|
184
|
-
xs: string;
|
|
185
|
-
sm: string;
|
|
186
|
-
"icon-xs": string;
|
|
187
|
-
"icon-sm": string;
|
|
188
|
-
};
|
|
189
|
-
}, undefined, import('tailwind-variants').TVReturnType<{
|
|
190
|
-
size: {
|
|
191
|
-
xs: string;
|
|
192
|
-
sm: string;
|
|
193
|
-
"icon-xs": string;
|
|
194
|
-
"icon-sm": string;
|
|
195
|
-
};
|
|
196
|
-
}, undefined, string[], import('tailwind-variants/dist/config.js').TVConfig<{
|
|
197
|
-
size: {
|
|
198
|
-
xs: string;
|
|
199
|
-
sm: string;
|
|
200
|
-
"icon-xs": string;
|
|
201
|
-
"icon-sm": string;
|
|
202
|
-
};
|
|
203
|
-
}, {
|
|
204
|
-
size: {
|
|
205
|
-
xs: string;
|
|
206
|
-
sm: string;
|
|
207
|
-
"icon-xs": string;
|
|
208
|
-
"icon-sm": string;
|
|
209
|
-
};
|
|
210
|
-
}>, unknown, unknown, undefined>>;
|
|
211
|
-
export interface InputGroupButtonProps extends Omit<ButtonProps, "size">, VariantProps<typeof inputGroupButtonVariants> {
|
|
212
|
-
}
|
|
213
|
-
/**
|
|
214
|
-
* InputGroupButton component for inline buttons within an InputGroup.
|
|
215
|
-
*
|
|
216
|
-
* A small button variant designed to fit inside input groups.
|
|
217
|
-
*
|
|
218
|
-
* @example
|
|
219
|
-
* ```tsx
|
|
220
|
-
* <InputGroupAddon align="inline-end">
|
|
221
|
-
* <InputGroupButton>Submit</InputGroupButton>
|
|
222
|
-
* </InputGroupAddon>
|
|
223
|
-
*
|
|
224
|
-
* // Icon button
|
|
225
|
-
* <InputGroupAddon align="inline-end">
|
|
226
|
-
* <InputGroupButton size="icon-xs">
|
|
227
|
-
* <ClearIcon />
|
|
228
|
-
* </InputGroupButton>
|
|
229
|
-
* </InputGroupAddon>
|
|
230
|
-
* ```
|
|
231
|
-
*/
|
|
232
|
-
declare function InputGroupButton({ className, type, variant, size, ...props }: InputGroupButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
233
|
-
export interface InputGroupTextProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
234
|
-
}
|
|
235
|
-
/**
|
|
236
|
-
* InputGroupText component for static text within an InputGroup.
|
|
237
|
-
*
|
|
238
|
-
* Use for prefixes like "https://" or suffixes like ".com"
|
|
239
|
-
*
|
|
240
|
-
* @example
|
|
241
|
-
* ```tsx
|
|
242
|
-
* <InputGroupAddon>
|
|
243
|
-
* <InputGroupText>https://</InputGroupText>
|
|
244
|
-
* </InputGroupAddon>
|
|
245
|
-
* ```
|
|
246
|
-
*/
|
|
247
|
-
declare function InputGroupText({ className, ...props }: InputGroupTextProps): import("react/jsx-runtime").JSX.Element;
|
|
248
|
-
export interface InputGroupInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
249
|
-
}
|
|
250
|
-
/**
|
|
251
|
-
* InputGroupInput component - the input element within an InputGroup.
|
|
252
|
-
*
|
|
253
|
-
* Styled to integrate seamlessly with the InputGroup container.
|
|
254
|
-
*
|
|
255
|
-
* @example
|
|
256
|
-
* ```tsx
|
|
257
|
-
* <InputGroup>
|
|
258
|
-
* <InputGroupInput placeholder="Enter text..." />
|
|
259
|
-
* </InputGroup>
|
|
260
|
-
* ```
|
|
261
|
-
*/
|
|
262
|
-
declare function InputGroupInput({ className, ...props }: InputGroupInputProps): import("react/jsx-runtime").JSX.Element;
|
|
263
|
-
export interface InputGroupTextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
264
|
-
}
|
|
265
|
-
/**
|
|
266
|
-
* InputGroupTextarea component - a textarea element within an InputGroup.
|
|
267
|
-
*
|
|
268
|
-
* Styled to integrate seamlessly with the InputGroup container.
|
|
269
|
-
*
|
|
270
|
-
* @example
|
|
271
|
-
* ```tsx
|
|
272
|
-
* <InputGroup>
|
|
273
|
-
* <InputGroupTextarea placeholder="Enter long text..." rows={4} />
|
|
274
|
-
* </InputGroup>
|
|
275
|
-
* ```
|
|
276
|
-
*/
|
|
277
|
-
declare function InputGroupTextarea({ className, ...props }: InputGroupTextareaProps): import("react/jsx-runtime").JSX.Element;
|
|
278
|
-
export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupText, InputGroupInput, InputGroupTextarea, inputGroupVariants, inputGroupAddonVariants, };
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { VariantProps } from 'tailwind-variants';
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
/**
|
|
4
|
-
* Input variants for styling based on Figma BaseKit / Interface / Input
|
|
5
|
-
*
|
|
6
|
-
* States (handled via CSS pseudo-classes and props):
|
|
7
|
-
* - Default: White background, subtle border
|
|
8
|
-
* - Hover: Light gray background (via :hover)
|
|
9
|
-
* - Focus: Accent border with focus ring (via :focus-visible)
|
|
10
|
-
* - Error: Error border color (via error prop)
|
|
11
|
-
* - Disabled: Disabled background (via :disabled)
|
|
12
|
-
*
|
|
13
|
-
* Sizes:
|
|
14
|
-
* - sm: Smaller height and padding (36px)
|
|
15
|
-
* - default: Standard height (48px)
|
|
16
|
-
* - lg: Larger height and padding (56px)
|
|
17
|
-
*/
|
|
18
|
-
declare const inputVariants: import('tailwind-variants').TVReturnType<{
|
|
19
|
-
size: {
|
|
20
|
-
readonly sm: "h-spatial-ui-input-height-small px-spatial-ui-input-padding-x-small py-spatial-ui-input-padding-y-small typography-body-sm-md";
|
|
21
|
-
readonly default: "h-spatial-ui-input-height-medium px-spatial-ui-input-padding-x-medium py-spatial-ui-input-padding-y-medium typography-body-md-md";
|
|
22
|
-
readonly lg: "h-spatial-ui-input-height-large px-spatial-ui-input-padding-x-large py-spatial-ui-input-padding-y-large typography-body-md-lg";
|
|
23
|
-
};
|
|
24
|
-
error: {
|
|
25
|
-
true: string;
|
|
26
|
-
false: "";
|
|
27
|
-
};
|
|
28
|
-
}, undefined, string[], import('tailwind-variants/dist/config.js').TVConfig<{
|
|
29
|
-
size: {
|
|
30
|
-
readonly sm: "h-spatial-ui-input-height-small px-spatial-ui-input-padding-x-small py-spatial-ui-input-padding-y-small typography-body-sm-md";
|
|
31
|
-
readonly default: "h-spatial-ui-input-height-medium px-spatial-ui-input-padding-x-medium py-spatial-ui-input-padding-y-medium typography-body-md-md";
|
|
32
|
-
readonly lg: "h-spatial-ui-input-height-large px-spatial-ui-input-padding-x-large py-spatial-ui-input-padding-y-large typography-body-md-lg";
|
|
33
|
-
};
|
|
34
|
-
error: {
|
|
35
|
-
true: string;
|
|
36
|
-
false: "";
|
|
37
|
-
};
|
|
38
|
-
}, {
|
|
39
|
-
size: {
|
|
40
|
-
readonly sm: "h-spatial-ui-input-height-small px-spatial-ui-input-padding-x-small py-spatial-ui-input-padding-y-small typography-body-sm-md";
|
|
41
|
-
readonly default: "h-spatial-ui-input-height-medium px-spatial-ui-input-padding-x-medium py-spatial-ui-input-padding-y-medium typography-body-md-md";
|
|
42
|
-
readonly lg: "h-spatial-ui-input-height-large px-spatial-ui-input-padding-x-large py-spatial-ui-input-padding-y-large typography-body-md-lg";
|
|
43
|
-
};
|
|
44
|
-
error: {
|
|
45
|
-
true: string;
|
|
46
|
-
false: "";
|
|
47
|
-
};
|
|
48
|
-
}>, {
|
|
49
|
-
size: {
|
|
50
|
-
readonly sm: "h-spatial-ui-input-height-small px-spatial-ui-input-padding-x-small py-spatial-ui-input-padding-y-small typography-body-sm-md";
|
|
51
|
-
readonly default: "h-spatial-ui-input-height-medium px-spatial-ui-input-padding-x-medium py-spatial-ui-input-padding-y-medium typography-body-md-md";
|
|
52
|
-
readonly lg: "h-spatial-ui-input-height-large px-spatial-ui-input-padding-x-large py-spatial-ui-input-padding-y-large typography-body-md-lg";
|
|
53
|
-
};
|
|
54
|
-
error: {
|
|
55
|
-
true: string;
|
|
56
|
-
false: "";
|
|
57
|
-
};
|
|
58
|
-
}, undefined, import('tailwind-variants').TVReturnType<{
|
|
59
|
-
size: {
|
|
60
|
-
readonly sm: "h-spatial-ui-input-height-small px-spatial-ui-input-padding-x-small py-spatial-ui-input-padding-y-small typography-body-sm-md";
|
|
61
|
-
readonly default: "h-spatial-ui-input-height-medium px-spatial-ui-input-padding-x-medium py-spatial-ui-input-padding-y-medium typography-body-md-md";
|
|
62
|
-
readonly lg: "h-spatial-ui-input-height-large px-spatial-ui-input-padding-x-large py-spatial-ui-input-padding-y-large typography-body-md-lg";
|
|
63
|
-
};
|
|
64
|
-
error: {
|
|
65
|
-
true: string;
|
|
66
|
-
false: "";
|
|
67
|
-
};
|
|
68
|
-
}, undefined, string[], import('tailwind-variants/dist/config.js').TVConfig<{
|
|
69
|
-
size: {
|
|
70
|
-
readonly sm: "h-spatial-ui-input-height-small px-spatial-ui-input-padding-x-small py-spatial-ui-input-padding-y-small typography-body-sm-md";
|
|
71
|
-
readonly default: "h-spatial-ui-input-height-medium px-spatial-ui-input-padding-x-medium py-spatial-ui-input-padding-y-medium typography-body-md-md";
|
|
72
|
-
readonly lg: "h-spatial-ui-input-height-large px-spatial-ui-input-padding-x-large py-spatial-ui-input-padding-y-large typography-body-md-lg";
|
|
73
|
-
};
|
|
74
|
-
error: {
|
|
75
|
-
true: string;
|
|
76
|
-
false: "";
|
|
77
|
-
};
|
|
78
|
-
}, {
|
|
79
|
-
size: {
|
|
80
|
-
readonly sm: "h-spatial-ui-input-height-small px-spatial-ui-input-padding-x-small py-spatial-ui-input-padding-y-small typography-body-sm-md";
|
|
81
|
-
readonly default: "h-spatial-ui-input-height-medium px-spatial-ui-input-padding-x-medium py-spatial-ui-input-padding-y-medium typography-body-md-md";
|
|
82
|
-
readonly lg: "h-spatial-ui-input-height-large px-spatial-ui-input-padding-x-large py-spatial-ui-input-padding-y-large typography-body-md-lg";
|
|
83
|
-
};
|
|
84
|
-
error: {
|
|
85
|
-
true: string;
|
|
86
|
-
false: "";
|
|
87
|
-
};
|
|
88
|
-
}>, unknown, unknown, undefined>>;
|
|
89
|
-
export interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size">, VariantProps<typeof inputVariants> {
|
|
90
|
-
/**
|
|
91
|
-
* Whether the input is in an error state
|
|
92
|
-
*/
|
|
93
|
-
error?: boolean;
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* Input component based on Figma BaseKit / Interface / Input
|
|
97
|
-
*
|
|
98
|
-
* A styled text input with support for various states:
|
|
99
|
-
* - Default, hover, focus, error, and disabled states
|
|
100
|
-
* - Three size variants: sm, default, lg
|
|
101
|
-
*
|
|
102
|
-
* Uses semantic UI tokens for theming support.
|
|
103
|
-
*
|
|
104
|
-
* @example
|
|
105
|
-
* ```tsx
|
|
106
|
-
* // Basic usage
|
|
107
|
-
* <Input placeholder="Enter your email" />
|
|
108
|
-
*
|
|
109
|
-
* // With error state
|
|
110
|
-
* <Input error placeholder="Invalid input" />
|
|
111
|
-
*
|
|
112
|
-
* // Different sizes
|
|
113
|
-
* <Input size="sm" placeholder="Small" />
|
|
114
|
-
* <Input size="lg" placeholder="Large" />
|
|
115
|
-
*
|
|
116
|
-
* // Disabled
|
|
117
|
-
* <Input disabled placeholder="Disabled input" />
|
|
118
|
-
* ```
|
|
119
|
-
*/
|
|
120
|
-
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
121
|
-
export { Input, inputVariants };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
export interface NdstudioFooterProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
-
/**
|
|
4
|
-
* The URL to link to
|
|
5
|
-
* @default "https://ndstudio.gov"
|
|
6
|
-
*/
|
|
7
|
-
href?: string;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* NdstudioFooter component displays a "Designed and Engineered in DC by National Design Studio" footer link.
|
|
11
|
-
*
|
|
12
|
-
* This component is designed to be used as a footer within other components like Tout,
|
|
13
|
-
* but can also be used standalone.
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```tsx
|
|
17
|
-
* // Used within a Tout component via footer slot
|
|
18
|
-
* <Tout
|
|
19
|
-
* headline="Feature Headline"
|
|
20
|
-
* primaryAction={<Button>Primary</Button>}
|
|
21
|
-
* backgroundMedia={<img src="/bg.jpg" alt="" />}
|
|
22
|
-
* footer={<NdstudioFooter />}
|
|
23
|
-
* />
|
|
24
|
-
*
|
|
25
|
-
* // Standalone usage
|
|
26
|
-
* <NdstudioFooter className="my-custom-class" />
|
|
27
|
-
* ```
|
|
28
|
-
*/
|
|
29
|
-
declare const NdstudioFooter: React.ForwardRefExoticComponent<NdstudioFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
30
|
-
export { NdstudioFooter };
|
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
import { VariantProps } from 'tailwind-variants';
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
declare const pagerControlVariants: import('tailwind-variants').TVReturnType<{
|
|
4
|
-
size: {
|
|
5
|
-
sm: string;
|
|
6
|
-
default: string;
|
|
7
|
-
lg: string;
|
|
8
|
-
};
|
|
9
|
-
}, undefined, "flex items-center", import('tailwind-variants/dist/config.js').TVConfig<{
|
|
10
|
-
size: {
|
|
11
|
-
sm: string;
|
|
12
|
-
default: string;
|
|
13
|
-
lg: string;
|
|
14
|
-
};
|
|
15
|
-
}, {
|
|
16
|
-
size: {
|
|
17
|
-
sm: string;
|
|
18
|
-
default: string;
|
|
19
|
-
lg: string;
|
|
20
|
-
};
|
|
21
|
-
}>, {
|
|
22
|
-
size: {
|
|
23
|
-
sm: string;
|
|
24
|
-
default: string;
|
|
25
|
-
lg: string;
|
|
26
|
-
};
|
|
27
|
-
}, undefined, import('tailwind-variants').TVReturnType<{
|
|
28
|
-
size: {
|
|
29
|
-
sm: string;
|
|
30
|
-
default: string;
|
|
31
|
-
lg: string;
|
|
32
|
-
};
|
|
33
|
-
}, undefined, "flex items-center", import('tailwind-variants/dist/config.js').TVConfig<{
|
|
34
|
-
size: {
|
|
35
|
-
sm: string;
|
|
36
|
-
default: string;
|
|
37
|
-
lg: string;
|
|
38
|
-
};
|
|
39
|
-
}, {
|
|
40
|
-
size: {
|
|
41
|
-
sm: string;
|
|
42
|
-
default: string;
|
|
43
|
-
lg: string;
|
|
44
|
-
};
|
|
45
|
-
}>, unknown, unknown, undefined>>;
|
|
46
|
-
declare const dotBaseVariants: import('tailwind-variants').TVReturnType<{
|
|
47
|
-
size: {
|
|
48
|
-
sm: string;
|
|
49
|
-
default: string;
|
|
50
|
-
lg: string;
|
|
51
|
-
};
|
|
52
|
-
variant: {
|
|
53
|
-
charcoal: string;
|
|
54
|
-
ivory: string;
|
|
55
|
-
};
|
|
56
|
-
}, undefined, "cursor-pointer rounded-full transition-all duration-500 ease-[cubic-bezier(0.23,1,0.32,1)]", import('tailwind-variants/dist/config.js').TVConfig<{
|
|
57
|
-
size: {
|
|
58
|
-
sm: string;
|
|
59
|
-
default: string;
|
|
60
|
-
lg: string;
|
|
61
|
-
};
|
|
62
|
-
variant: {
|
|
63
|
-
charcoal: string;
|
|
64
|
-
ivory: string;
|
|
65
|
-
};
|
|
66
|
-
}, {
|
|
67
|
-
size: {
|
|
68
|
-
sm: string;
|
|
69
|
-
default: string;
|
|
70
|
-
lg: string;
|
|
71
|
-
};
|
|
72
|
-
variant: {
|
|
73
|
-
charcoal: string;
|
|
74
|
-
ivory: string;
|
|
75
|
-
};
|
|
76
|
-
}>, {
|
|
77
|
-
size: {
|
|
78
|
-
sm: string;
|
|
79
|
-
default: string;
|
|
80
|
-
lg: string;
|
|
81
|
-
};
|
|
82
|
-
variant: {
|
|
83
|
-
charcoal: string;
|
|
84
|
-
ivory: string;
|
|
85
|
-
};
|
|
86
|
-
}, undefined, import('tailwind-variants').TVReturnType<{
|
|
87
|
-
size: {
|
|
88
|
-
sm: string;
|
|
89
|
-
default: string;
|
|
90
|
-
lg: string;
|
|
91
|
-
};
|
|
92
|
-
variant: {
|
|
93
|
-
charcoal: string;
|
|
94
|
-
ivory: string;
|
|
95
|
-
};
|
|
96
|
-
}, undefined, "cursor-pointer rounded-full transition-all duration-500 ease-[cubic-bezier(0.23,1,0.32,1)]", import('tailwind-variants/dist/config.js').TVConfig<{
|
|
97
|
-
size: {
|
|
98
|
-
sm: string;
|
|
99
|
-
default: string;
|
|
100
|
-
lg: string;
|
|
101
|
-
};
|
|
102
|
-
variant: {
|
|
103
|
-
charcoal: string;
|
|
104
|
-
ivory: string;
|
|
105
|
-
};
|
|
106
|
-
}, {
|
|
107
|
-
size: {
|
|
108
|
-
sm: string;
|
|
109
|
-
default: string;
|
|
110
|
-
lg: string;
|
|
111
|
-
};
|
|
112
|
-
variant: {
|
|
113
|
-
charcoal: string;
|
|
114
|
-
ivory: string;
|
|
115
|
-
};
|
|
116
|
-
}>, unknown, unknown, undefined>>;
|
|
117
|
-
export interface PagerControlProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onChange">, VariantProps<typeof pagerControlVariants>, VariantProps<typeof dotBaseVariants> {
|
|
118
|
-
/**
|
|
119
|
-
* Total number of pages/items
|
|
120
|
-
*/
|
|
121
|
-
count: number;
|
|
122
|
-
/**
|
|
123
|
-
* Current active page index (0-based)
|
|
124
|
-
*/
|
|
125
|
-
activeIndex?: number;
|
|
126
|
-
/**
|
|
127
|
-
* Duration in milliseconds for each page before auto-advancing
|
|
128
|
-
* Set to 0 to disable auto-advance
|
|
129
|
-
* @default 5000
|
|
130
|
-
*/
|
|
131
|
-
duration?: number;
|
|
132
|
-
/**
|
|
133
|
-
* Whether the pager should auto-advance
|
|
134
|
-
* @default true
|
|
135
|
-
*/
|
|
136
|
-
autoPlay?: boolean;
|
|
137
|
-
/**
|
|
138
|
-
* Callback when the active page changes
|
|
139
|
-
*/
|
|
140
|
-
onChange?: (index: number) => void;
|
|
141
|
-
/**
|
|
142
|
-
* Whether to pause auto-advance on hover
|
|
143
|
-
* @default true
|
|
144
|
-
*/
|
|
145
|
-
pauseOnHover?: boolean;
|
|
146
|
-
/**
|
|
147
|
-
* Whether to loop back to the first page after the last
|
|
148
|
-
* @default true
|
|
149
|
-
*/
|
|
150
|
-
loop?: boolean;
|
|
151
|
-
}
|
|
152
|
-
/**
|
|
153
|
-
* PagerControl component for indicating progress through a series of pages/slides.
|
|
154
|
-
*
|
|
155
|
-
* Features smooth width transitions when switching between dots and an animated
|
|
156
|
-
* progress fill on the active dot that shows time remaining before auto-advancing
|
|
157
|
-
* (similar to Apple's carousel indicators).
|
|
158
|
-
*
|
|
159
|
-
* Variants:
|
|
160
|
-
* - charcoal: Dark dots (for light backgrounds)
|
|
161
|
-
* - ivory: Light dots (for dark backgrounds)
|
|
162
|
-
*
|
|
163
|
-
* Sizes:
|
|
164
|
-
* - sm: Small dots (6px height)
|
|
165
|
-
* - default: Medium dots (10px height)
|
|
166
|
-
* - lg: Large dots (16px height)
|
|
167
|
-
*/
|
|
168
|
-
declare const PagerControl: React.ForwardRefExoticComponent<PagerControlProps & React.RefAttributes<HTMLDivElement>>;
|
|
169
|
-
export { PagerControl, pagerControlVariants };
|