@nswds/app 1.8.1 → 1.9.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/globals.css +770 -223
- package/dist/index.cjs +936 -1104
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +291 -271
- package/dist/index.d.ts +291 -271
- package/dist/index.js +865 -1070
- package/dist/index.js.map +1 -1
- package/dist/styles.css +753 -284
- package/dist/styles.css.map +1 -1
- package/dist/styles.d.cts +2 -1
- package/dist/styles.d.ts +2 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,308 +1,328 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime'
|
|
2
|
-
import * as class_variance_authority_types from 'class-variance-authority/types'
|
|
3
|
-
import * as React$1 from 'react'
|
|
4
|
-
import React__default, { ReactNode } from 'react'
|
|
5
|
-
import { VariantProps } from 'class-variance-authority'
|
|
6
|
-
import * as CollapsiblePrimitive from '@radix-ui/react-collapsible'
|
|
7
|
-
import * as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
|
+
import * as React$1 from 'react';
|
|
4
|
+
import React__default, { ReactNode } from 'react';
|
|
5
|
+
import { VariantProps } from 'class-variance-authority';
|
|
6
|
+
import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
|
|
7
|
+
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
8
|
+
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
9
|
+
import * as SheetPrimitive from '@radix-ui/react-dialog';
|
|
10
|
+
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
11
|
+
import { ThemeProviderProps } from 'next-themes';
|
|
12
|
+
import { ToasterProps } from 'sonner';
|
|
13
|
+
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
|
14
|
+
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
15
|
+
import { ClassValue } from 'clsx';
|
|
16
|
+
import * as _sindresorhus_slugify from '@sindresorhus/slugify';
|
|
11
17
|
|
|
12
|
-
declare const buttonVariants: (
|
|
13
|
-
|
|
14
|
-
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
| 'secondary'
|
|
20
|
-
| 'ghost'
|
|
21
|
-
| 'link'
|
|
22
|
-
| null
|
|
23
|
-
| undefined
|
|
24
|
-
size?: 'default' | 'sm' | 'lg' | 'icon' | null | undefined
|
|
25
|
-
} & class_variance_authority_types.ClassProp)
|
|
26
|
-
| undefined,
|
|
27
|
-
) => string
|
|
28
|
-
declare function Button({
|
|
29
|
-
className,
|
|
30
|
-
variant,
|
|
31
|
-
size,
|
|
32
|
-
asChild,
|
|
33
|
-
...props
|
|
34
|
-
}: React$1.ComponentProps<'button'> &
|
|
35
|
-
VariantProps<typeof buttonVariants> & {
|
|
36
|
-
asChild?: boolean
|
|
37
|
-
}): react_jsx_runtime.JSX.Element
|
|
18
|
+
declare const buttonVariants: (props?: ({
|
|
19
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
|
|
20
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
21
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
22
|
+
declare function Button({ className, variant, size, asChild, ...props }: React$1.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
|
|
23
|
+
asChild?: boolean;
|
|
24
|
+
}): react_jsx_runtime.JSX.Element;
|
|
38
25
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
declare function
|
|
26
|
+
declare function Card({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
27
|
+
declare function CardHeader({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
28
|
+
declare function CardTitle({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
29
|
+
declare function CardDescription({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
30
|
+
declare function CardAction({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
31
|
+
declare function CardContent({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
32
|
+
declare function CardFooter({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
44
33
|
|
|
45
|
-
declare function
|
|
34
|
+
declare function Collapsible({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
46
35
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
github: (props: IconProps) => react_jsx_runtime.JSX.Element
|
|
51
|
-
linkedin: (props: IconProps) => react_jsx_runtime.JSX.Element
|
|
52
|
-
twitter: (props: IconProps) => react_jsx_runtime.JSX.Element
|
|
53
|
-
youtube: (props: IconProps) => react_jsx_runtime.JSX.Element
|
|
54
|
-
account_circle: (props: IconProps) => react_jsx_runtime.JSX.Element
|
|
55
|
-
attach_file: (props: IconProps) => react_jsx_runtime.JSX.Element
|
|
56
|
-
cancel: (props: IconProps) => react_jsx_runtime.JSX.Element
|
|
57
|
-
check_circle: (props: IconProps) => react_jsx_runtime.JSX.Element
|
|
58
|
-
check: (props: IconProps) => react_jsx_runtime.JSX.Element
|
|
59
|
-
chevron_down: (props: IconProps) => react_jsx_runtime.JSX.Element
|
|
60
|
-
chevron_left: (props: IconProps) => react_jsx_runtime.JSX.Element
|
|
61
|
-
chevron_right: (props: IconProps) => react_jsx_runtime.JSX.Element
|
|
62
|
-
chevron_up: (props: IconProps) => react_jsx_runtime.JSX.Element
|
|
63
|
-
close: (props: IconProps) => react_jsx_runtime.JSX.Element
|
|
64
|
-
collapse_all: (props: IconProps) => react_jsx_runtime.JSX.Element
|
|
65
|
-
computer: (props: IconProps) => react_jsx_runtime.JSX.Element
|
|
66
|
-
copy: (props: IconProps) => react_jsx_runtime.JSX.Element
|
|
67
|
-
dark_mode: (props: IconProps) => react_jsx_runtime.JSX.Element
|
|
68
|
-
dock_to_left: (props: IconProps) => react_jsx_runtime.JSX.Element
|
|
69
|
-
dock_to_right: (props: IconProps) => react_jsx_runtime.JSX.Element
|
|
70
|
-
delete: (props: IconProps) => react_jsx_runtime.JSX.Element
|
|
71
|
-
desktop: (props: IconProps) => react_jsx_runtime.JSX.Element
|
|
72
|
-
display_settings: (props: IconProps) => react_jsx_runtime.JSX.Element
|
|
73
|
-
double_arrow_left: (props: IconProps) => react_jsx_runtime.JSX.Element
|
|
74
|
-
double_arrow_right: (props: IconProps) => react_jsx_runtime.JSX.Element
|
|
75
|
-
download: (props: IconProps) => react_jsx_runtime.JSX.Element
|
|
76
|
-
east: (props: IconProps) => react_jsx_runtime.JSX.Element
|
|
77
|
-
error: (props: IconProps) => react_jsx_runtime.JSX.Element
|
|
78
|
-
exclamation: (props: IconProps) => react_jsx_runtime.JSX.Element
|
|
79
|
-
help: (props: IconProps) => react_jsx_runtime.JSX.Element
|
|
80
|
-
info: (props: IconProps) => react_jsx_runtime.JSX.Element
|
|
81
|
-
light_mode: (props: IconProps) => react_jsx_runtime.JSX.Element
|
|
82
|
-
link: (props: IconProps) => react_jsx_runtime.JSX.Element
|
|
83
|
-
login: (props: IconProps) => react_jsx_runtime.JSX.Element
|
|
84
|
-
logout: (props: IconProps) => react_jsx_runtime.JSX.Element
|
|
85
|
-
menu: (props: IconProps) => react_jsx_runtime.JSX.Element
|
|
86
|
-
more_horiz: (props: IconProps) => react_jsx_runtime.JSX.Element
|
|
87
|
-
more_vert: (props: IconProps) => react_jsx_runtime.JSX.Element
|
|
88
|
-
north: (props: IconProps) => react_jsx_runtime.JSX.Element
|
|
89
|
-
open_in_new: (props: IconProps) => react_jsx_runtime.JSX.Element
|
|
90
|
-
print: (props: IconProps) => react_jsx_runtime.JSX.Element
|
|
91
|
-
progress_activity: (props: IconProps) => react_jsx_runtime.JSX.Element
|
|
92
|
-
remove: (props: IconProps) => react_jsx_runtime.JSX.Element
|
|
93
|
-
search: (props: IconProps) => react_jsx_runtime.JSX.Element
|
|
94
|
-
settings_brightness: (props: IconProps) => react_jsx_runtime.JSX.Element
|
|
95
|
-
share: (props: IconProps) => react_jsx_runtime.JSX.Element
|
|
96
|
-
side_navigation: (props: IconProps) => react_jsx_runtime.JSX.Element
|
|
97
|
-
south: (props: IconProps) => react_jsx_runtime.JSX.Element
|
|
98
|
-
unfold_less: (props: IconProps) => react_jsx_runtime.JSX.Element
|
|
99
|
-
unfold_more: (props: IconProps) => react_jsx_runtime.JSX.Element
|
|
100
|
-
upload: (props: IconProps) => react_jsx_runtime.JSX.Element
|
|
101
|
-
west: (props: IconProps) => react_jsx_runtime.JSX.Element
|
|
36
|
+
interface DynamicFaviconProps {
|
|
37
|
+
lightModeFavicon: string;
|
|
38
|
+
darkModeFavicon: string;
|
|
102
39
|
}
|
|
40
|
+
declare function DynamicFavicon({ lightModeFavicon, darkModeFavicon }: DynamicFaviconProps): null;
|
|
103
41
|
|
|
104
|
-
declare function
|
|
42
|
+
declare function Footer(): react_jsx_runtime.JSX.Element;
|
|
105
43
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
44
|
+
type IconProps = React.HTMLAttributes<SVGElement>;
|
|
45
|
+
interface LayoutProps {
|
|
46
|
+
children: React.ReactNode;
|
|
47
|
+
sitename?: string;
|
|
48
|
+
toc?: boolean;
|
|
49
|
+
}
|
|
50
|
+
type ColorProperty = {
|
|
51
|
+
value: string | {
|
|
52
|
+
colorSpace: string;
|
|
53
|
+
channels: number[];
|
|
54
|
+
alpha: number;
|
|
55
|
+
};
|
|
56
|
+
type: 'color';
|
|
57
|
+
};
|
|
58
|
+
type ColorThemes = {
|
|
59
|
+
[key: string]: {
|
|
60
|
+
[key: string]: {
|
|
61
|
+
name: string;
|
|
62
|
+
colors: {
|
|
63
|
+
token: string;
|
|
64
|
+
oklch: string;
|
|
65
|
+
hex: string;
|
|
66
|
+
rgb: string;
|
|
67
|
+
hsl: string;
|
|
68
|
+
name?: string;
|
|
69
|
+
}[];
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
type ColorFormat = 'hex' | 'rgb' | 'hsl' | 'oklch';
|
|
74
|
+
type ViewMode = 'grid' | 'list';
|
|
75
|
+
type ThemeOption = string;
|
|
76
|
+
interface ColorCardProps {
|
|
77
|
+
colorName: string;
|
|
78
|
+
hexValue: string;
|
|
79
|
+
format: ColorFormat;
|
|
80
|
+
viewMode: ViewMode;
|
|
81
|
+
}
|
|
82
|
+
interface ViewToggleProps {
|
|
83
|
+
viewMode: ViewMode;
|
|
84
|
+
setViewMode: (mode: ViewMode) => void;
|
|
112
85
|
}
|
|
86
|
+
interface Color {
|
|
87
|
+
token: string;
|
|
88
|
+
oklch: string;
|
|
89
|
+
hex: string;
|
|
90
|
+
rgb: string;
|
|
91
|
+
hsl: string;
|
|
92
|
+
name?: string;
|
|
93
|
+
}
|
|
94
|
+
type ThemeCategory = 'brand' | 'aboriginal';
|
|
95
|
+
interface ThemeSelectorProps {
|
|
96
|
+
themeCategory: ThemeCategory;
|
|
97
|
+
setThemeCategory: (category: ThemeCategory) => void;
|
|
98
|
+
primaryColor: string;
|
|
99
|
+
setPrimaryColor: (color: string) => void;
|
|
100
|
+
accentColor: string;
|
|
101
|
+
setAccentColor: (color: string) => void;
|
|
102
|
+
availableAccentColors: string[];
|
|
103
|
+
colorThemes: ColorThemes;
|
|
104
|
+
}
|
|
105
|
+
interface FormatToggleProps {
|
|
106
|
+
format: ColorFormat;
|
|
107
|
+
setFormat: (format: ColorFormat) => void;
|
|
108
|
+
}
|
|
109
|
+
type SimpleNode = {
|
|
110
|
+
type: string;
|
|
111
|
+
attributes: {
|
|
112
|
+
content?: string;
|
|
113
|
+
[key: string]: string | number | boolean | undefined;
|
|
114
|
+
};
|
|
115
|
+
children?: SimpleNode[];
|
|
116
|
+
};
|
|
117
|
+
type HeadingNode = {
|
|
118
|
+
level: number;
|
|
119
|
+
id: string;
|
|
120
|
+
title: string;
|
|
121
|
+
children: HeadingNode[];
|
|
122
|
+
};
|
|
123
|
+
type Link = {
|
|
124
|
+
href: string;
|
|
125
|
+
title: string;
|
|
126
|
+
links?: Link[];
|
|
127
|
+
};
|
|
113
128
|
interface ColorData {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
129
|
+
oklch: string;
|
|
130
|
+
hex: string;
|
|
131
|
+
rgb: string;
|
|
132
|
+
hsl: string;
|
|
133
|
+
[key: string]: string;
|
|
119
134
|
}
|
|
120
|
-
type Format = 'hex' | 'oklch' | 'hsl' | 'rgb'
|
|
121
|
-
type Variant = 'shades' | 'theme'
|
|
122
|
-
type Output = 'css' | 'ts' | 'scss' | 'less' | 'tailwind' | 'json' | 'json-DTFM' | 'js'
|
|
135
|
+
type Format = 'hex' | 'oklch' | 'hsl' | 'rgb';
|
|
136
|
+
type Variant = 'shades' | 'theme';
|
|
137
|
+
type Output = 'css' | 'ts' | 'scss' | 'less' | 'tailwind' | 'json' | 'json-DTFM' | 'js';
|
|
123
138
|
interface ColorsDisplayProps {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
139
|
+
baseColors: string[];
|
|
140
|
+
themeColor: string | undefined;
|
|
141
|
+
colorsToUse: ColorData[];
|
|
142
|
+
paletteName: string;
|
|
143
|
+
variant: Variant;
|
|
129
144
|
}
|
|
130
145
|
interface ColourOutputProps {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
146
|
+
colorsToUse: ColorData[];
|
|
147
|
+
paletteName: string;
|
|
148
|
+
format: Format;
|
|
149
|
+
output: Output;
|
|
150
|
+
variant: Variant;
|
|
136
151
|
}
|
|
137
152
|
interface DesignTokensShades {
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
}
|
|
149
|
-
}
|
|
153
|
+
[paletteName: string]: {
|
|
154
|
+
[shade: string]: {
|
|
155
|
+
$type: 'color';
|
|
156
|
+
$value: string | {
|
|
157
|
+
colorSpace: string;
|
|
158
|
+
channels: number[];
|
|
159
|
+
alpha: number;
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
};
|
|
150
163
|
}
|
|
151
164
|
interface StructuredColor {
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
165
|
+
colorSpace: string;
|
|
166
|
+
channels: number[];
|
|
167
|
+
alpha: number;
|
|
155
168
|
}
|
|
156
169
|
interface DesignTokensTheme {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
}
|
|
166
|
-
>
|
|
167
|
-
}
|
|
170
|
+
[paletteName: string]: {
|
|
171
|
+
value: string | StructuredColor;
|
|
172
|
+
type: 'color';
|
|
173
|
+
variants: Record<string, {
|
|
174
|
+
value: string | StructuredColor;
|
|
175
|
+
type: 'color';
|
|
176
|
+
}>;
|
|
177
|
+
};
|
|
168
178
|
}
|
|
169
179
|
type NavigationSection = {
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
}
|
|
180
|
+
title: string;
|
|
181
|
+
links: {
|
|
182
|
+
title: string;
|
|
183
|
+
href: string;
|
|
184
|
+
}[];
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
declare const Icons: {
|
|
188
|
+
account_circle: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
189
|
+
attach_file: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
190
|
+
cancel: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
191
|
+
check_circle: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
192
|
+
check: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
193
|
+
chevron_down: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
194
|
+
chevron_left: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
195
|
+
chevron_right: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
196
|
+
chevron_up: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
197
|
+
close: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
198
|
+
collapse_all: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
199
|
+
computer: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
200
|
+
copy: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
201
|
+
dark_mode: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
202
|
+
dock_to_left: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
203
|
+
dock_to_right: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
204
|
+
delete: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
205
|
+
desktop: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
206
|
+
display_settings: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
207
|
+
double_arrow_left: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
208
|
+
double_arrow_right: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
209
|
+
download: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
210
|
+
east: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
211
|
+
error: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
212
|
+
exclamation: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
213
|
+
grid_view: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
214
|
+
help: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
215
|
+
info: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
216
|
+
light_mode: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
217
|
+
link: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
218
|
+
list: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
219
|
+
login: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
220
|
+
logout: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
221
|
+
menu: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
222
|
+
more_horiz: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
223
|
+
more_vert: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
224
|
+
north: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
225
|
+
open_in_new: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
226
|
+
palette: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
227
|
+
print: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
228
|
+
progress_activity: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
229
|
+
remove: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
230
|
+
search: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
231
|
+
settings_brightness: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
232
|
+
share: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
233
|
+
side_navigation: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
234
|
+
south: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
235
|
+
unfold_less: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
236
|
+
unfold_more: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
237
|
+
upload: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
238
|
+
west: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
239
|
+
};
|
|
240
|
+
|
|
241
|
+
declare function Label({ className, ...props }: React$1.ComponentProps<typeof LabelPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
242
|
+
|
|
243
|
+
declare function Logo(props: React.ComponentPropsWithoutRef<'svg'>): react_jsx_runtime.JSX.Element;
|
|
244
|
+
|
|
245
|
+
declare function Masthead(): react_jsx_runtime.JSX.Element;
|
|
176
246
|
|
|
177
|
-
declare function Navigation({
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
}:
|
|
182
|
-
className?: string
|
|
183
|
-
onLinkClick?: React__default.MouseEventHandler<HTMLAnchorElement>
|
|
184
|
-
navigation: NavigationSection[]
|
|
185
|
-
}): react_jsx_runtime.JSX.Element
|
|
247
|
+
declare function Navigation({ className, onLinkClick, navigation, }: {
|
|
248
|
+
className?: string;
|
|
249
|
+
onLinkClick?: React__default.MouseEventHandler<HTMLAnchorElement>;
|
|
250
|
+
navigation: NavigationSection[];
|
|
251
|
+
}): react_jsx_runtime.JSX.Element;
|
|
186
252
|
|
|
187
253
|
interface PrevNextLinksProps {
|
|
188
|
-
|
|
254
|
+
navigation: NavigationSection[];
|
|
189
255
|
}
|
|
190
|
-
declare function PrevNextLinks({
|
|
191
|
-
|
|
192
|
-
}:
|
|
256
|
+
declare function PrevNextLinks({ navigation }: PrevNextLinksProps): react_jsx_runtime.JSX.Element | null;
|
|
257
|
+
|
|
258
|
+
declare function RadioGroup({ className, ...props }: React$1.ComponentProps<typeof RadioGroupPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
259
|
+
declare function RadioGroupItem({ className, ...props }: React$1.ComponentProps<typeof RadioGroupPrimitive.Item>): react_jsx_runtime.JSX.Element;
|
|
260
|
+
|
|
261
|
+
declare function Sheet({ ...props }: React$1.ComponentProps<typeof SheetPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
262
|
+
declare function SheetTrigger({ ...props }: React$1.ComponentProps<typeof SheetPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
263
|
+
declare function SheetClose({ ...props }: React$1.ComponentProps<typeof SheetPrimitive.Close>): react_jsx_runtime.JSX.Element;
|
|
264
|
+
declare function SheetContent({ className, children, side, ...props }: React$1.ComponentProps<typeof SheetPrimitive.Content> & {
|
|
265
|
+
side?: 'top' | 'right' | 'bottom' | 'left';
|
|
266
|
+
}): react_jsx_runtime.JSX.Element;
|
|
267
|
+
declare function SheetHeader({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
268
|
+
declare function SheetFooter({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
269
|
+
declare function SheetTitle({ className, ...props }: React$1.ComponentProps<typeof SheetPrimitive.Title>): react_jsx_runtime.JSX.Element;
|
|
270
|
+
declare function SheetDescription({ className, ...props }: React$1.ComponentProps<typeof SheetPrimitive.Description>): react_jsx_runtime.JSX.Element;
|
|
271
|
+
|
|
272
|
+
declare function SidebarNavigation({ className, onLinkClick, navigation, }: {
|
|
273
|
+
className?: string;
|
|
274
|
+
onLinkClick?: React$1.MouseEventHandler<HTMLAnchorElement>;
|
|
275
|
+
navigation: NavigationSection[];
|
|
276
|
+
}): react_jsx_runtime.JSX.Element;
|
|
277
|
+
|
|
278
|
+
declare const Social: {
|
|
279
|
+
github: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
280
|
+
linkedin: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
281
|
+
twitter: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
282
|
+
youtube: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
283
|
+
};
|
|
193
284
|
|
|
194
285
|
type TableOfContentsItem = {
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
}
|
|
286
|
+
id: string;
|
|
287
|
+
children: TableOfContentsItem[];
|
|
288
|
+
title: string;
|
|
289
|
+
};
|
|
199
290
|
type TableOfContentsProps = {
|
|
200
|
-
|
|
201
|
-
}
|
|
202
|
-
declare function TableOfContents({
|
|
203
|
-
tableOfContents,
|
|
204
|
-
}: TableOfContentsProps): react_jsx_runtime.JSX.Element
|
|
291
|
+
tableOfContents: TableOfContentsItem[];
|
|
292
|
+
};
|
|
293
|
+
declare function TableOfContents({ tableOfContents }: TableOfContentsProps): react_jsx_runtime.JSX.Element;
|
|
205
294
|
|
|
206
|
-
declare function
|
|
295
|
+
declare function Tabs({ className, ...props }: React$1.ComponentProps<typeof TabsPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
296
|
+
declare function TabsList({ className, ...props }: React$1.ComponentProps<typeof TabsPrimitive.List>): react_jsx_runtime.JSX.Element;
|
|
297
|
+
declare function TabsTrigger({ className, ...props }: React$1.ComponentProps<typeof TabsPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
298
|
+
declare function TabsContent({ className, ...props }: React$1.ComponentProps<typeof TabsPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
207
299
|
|
|
208
|
-
declare function
|
|
209
|
-
...props
|
|
210
|
-
}: React.ComponentProps<typeof CollapsiblePrimitive.Root>): react_jsx_runtime.JSX.Element
|
|
300
|
+
declare function ThemeProvider({ children, ...props }: ThemeProviderProps): react_jsx_runtime.JSX.Element;
|
|
211
301
|
|
|
212
|
-
declare function
|
|
213
|
-
className,
|
|
214
|
-
onLinkClick,
|
|
215
|
-
navigation,
|
|
216
|
-
}: {
|
|
217
|
-
className?: string
|
|
218
|
-
onLinkClick?: React$1.MouseEventHandler<HTMLAnchorElement>
|
|
219
|
-
navigation: NavigationSection[]
|
|
220
|
-
}): react_jsx_runtime.JSX.Element
|
|
302
|
+
declare function ThemeSwitcher(): react_jsx_runtime.JSX.Element;
|
|
221
303
|
|
|
222
|
-
declare
|
|
223
|
-
className,
|
|
224
|
-
...props
|
|
225
|
-
}: React$1.ComponentProps<typeof TabsPrimitive.Root>): react_jsx_runtime.JSX.Element
|
|
226
|
-
declare function TabsList({
|
|
227
|
-
className,
|
|
228
|
-
...props
|
|
229
|
-
}: React$1.ComponentProps<typeof TabsPrimitive.List>): react_jsx_runtime.JSX.Element
|
|
230
|
-
declare function TabsTrigger({
|
|
231
|
-
className,
|
|
232
|
-
...props
|
|
233
|
-
}: React$1.ComponentProps<typeof TabsPrimitive.Trigger>): react_jsx_runtime.JSX.Element
|
|
234
|
-
declare function TabsContent({
|
|
235
|
-
className,
|
|
236
|
-
...props
|
|
237
|
-
}: React$1.ComponentProps<typeof TabsPrimitive.Content>): react_jsx_runtime.JSX.Element
|
|
304
|
+
declare const Toaster: ({ ...props }: ToasterProps) => react_jsx_runtime.JSX.Element;
|
|
238
305
|
|
|
239
|
-
declare function
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
}: ThemeProviderProps): react_jsx_runtime.JSX.Element
|
|
306
|
+
declare function TocProvider({ children }: {
|
|
307
|
+
children: ReactNode;
|
|
308
|
+
}): react_jsx_runtime.JSX.Element;
|
|
243
309
|
|
|
244
|
-
declare
|
|
310
|
+
declare const toggleVariants: (props?: ({
|
|
311
|
+
variant?: "default" | "outline" | null | undefined;
|
|
312
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
313
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
314
|
+
declare function Toggle({ className, variant, size, ...props }: React$1.ComponentProps<typeof TogglePrimitive.Root> & VariantProps<typeof toggleVariants>): react_jsx_runtime.JSX.Element;
|
|
245
315
|
|
|
246
|
-
declare function
|
|
247
|
-
declare function
|
|
248
|
-
declare function kebabCase(str: string): string
|
|
249
|
-
declare function camelCase(str: string): string
|
|
316
|
+
declare function ToggleGroup({ className, variant, size, children, ...props }: React$1.ComponentProps<typeof ToggleGroupPrimitive.Root> & VariantProps<typeof toggleVariants>): react_jsx_runtime.JSX.Element;
|
|
317
|
+
declare function ToggleGroupItem({ className, children, variant, size, ...props }: React$1.ComponentProps<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof toggleVariants>): react_jsx_runtime.JSX.Element;
|
|
250
318
|
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
[key: string]: string | number | boolean | undefined
|
|
256
|
-
}
|
|
257
|
-
children?: SimpleNode[]
|
|
258
|
-
}
|
|
259
|
-
type HeadingNode = {
|
|
260
|
-
level: number
|
|
261
|
-
id: string
|
|
262
|
-
title: string
|
|
263
|
-
children: HeadingNode[]
|
|
264
|
-
}
|
|
265
|
-
declare function getNodeText(node: HTMLElement | SimpleNode): string
|
|
266
|
-
declare function domToSimple(node: Node): SimpleNode
|
|
267
|
-
declare function getHeadings(slugify?: _sindresorhus_slugify.CountableSlugify): HeadingNode[]
|
|
319
|
+
declare function cn(...inputs: ClassValue[]): string;
|
|
320
|
+
declare function truncate(text: string, maxLength: number): string;
|
|
321
|
+
declare function kebabCase(str: string): string;
|
|
322
|
+
declare function camelCase(str: string): string;
|
|
268
323
|
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
type ColourOutputProps,
|
|
275
|
-
type DesignTokensShades,
|
|
276
|
-
type DesignTokensTheme,
|
|
277
|
-
DynamicFavicon,
|
|
278
|
-
Footer,
|
|
279
|
-
type Format,
|
|
280
|
-
type HeadingNode,
|
|
281
|
-
Icons,
|
|
282
|
-
type Link,
|
|
283
|
-
Logo,
|
|
284
|
-
Masthead,
|
|
285
|
-
Navigation,
|
|
286
|
-
type NavigationSection,
|
|
287
|
-
type Output,
|
|
288
|
-
PrevNextLinks,
|
|
289
|
-
SidebarNavigation,
|
|
290
|
-
type SimpleNode,
|
|
291
|
-
type StructuredColor,
|
|
292
|
-
TableOfContents,
|
|
293
|
-
Tabs,
|
|
294
|
-
TabsContent,
|
|
295
|
-
TabsList,
|
|
296
|
-
TabsTrigger,
|
|
297
|
-
ThemeProvider,
|
|
298
|
-
ThemeSwitcher,
|
|
299
|
-
TocProvider,
|
|
300
|
-
type Variant,
|
|
301
|
-
camelCase,
|
|
302
|
-
cn,
|
|
303
|
-
domToSimple,
|
|
304
|
-
getHeadings,
|
|
305
|
-
getNodeText,
|
|
306
|
-
kebabCase,
|
|
307
|
-
truncate,
|
|
308
|
-
}
|
|
324
|
+
declare function getNodeText(node: HTMLElement | SimpleNode): string;
|
|
325
|
+
declare function domToSimple(node: Node): SimpleNode;
|
|
326
|
+
declare function getHeadings(slugify?: _sindresorhus_slugify.CountableSlugify): HeadingNode[];
|
|
327
|
+
|
|
328
|
+
export { Button, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Collapsible, type Color, type ColorCardProps, type ColorData, type ColorFormat, type ColorProperty, type ColorThemes, type ColorsDisplayProps, type ColourOutputProps, type DesignTokensShades, type DesignTokensTheme, DynamicFavicon, Footer, type Format, type FormatToggleProps, type HeadingNode, type IconProps, Icons, Label, type LayoutProps, type Link, Logo, Masthead, Navigation, type NavigationSection, type Output, PrevNextLinks, RadioGroup, RadioGroupItem, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, SidebarNavigation, type SimpleNode, Social, type StructuredColor, TableOfContents, Tabs, TabsContent, TabsList, TabsTrigger, type ThemeCategory, type ThemeOption, ThemeProvider, type ThemeSelectorProps, ThemeSwitcher, Toaster, TocProvider, Toggle, ToggleGroup, ToggleGroupItem, type Variant, type ViewMode, type ViewToggleProps, camelCase, cn, domToSimple, getHeadings, getNodeText, kebabCase, toggleVariants, truncate };
|