@nswds/app 0.1.14 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -1,277 +1,267 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as react from 'react';
3
- import react__default from 'react';
4
- import * as class_variance_authority_types from 'class-variance-authority/types';
5
- import { VariantProps } from 'class-variance-authority';
6
- import { ThemeProviderProps } from 'next-themes';
7
- import { ClassValue } from 'clsx';
8
- import * as _sindresorhus_slugify from '@sindresorhus/slugify';
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 from 'react'
5
+ import { VariantProps } from 'class-variance-authority'
6
+ import { ClassValue } from 'clsx'
7
+ import * as _sindresorhus_slugify from '@sindresorhus/slugify'
9
8
 
10
- declare const buttonVariants: (props?: ({
11
- variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
12
- size?: "default" | "sm" | "lg" | "icon" | null | undefined;
13
- } & class_variance_authority_types.ClassProp) | undefined) => string;
14
- declare function Button({ className, variant, size, asChild, ...props }: react.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
15
- asChild?: boolean;
16
- }): react_jsx_runtime.JSX.Element;
9
+ declare const buttonVariants: (
10
+ props?:
11
+ | ({
12
+ variant?:
13
+ | 'default'
14
+ | 'destructive'
15
+ | 'outline'
16
+ | 'secondary'
17
+ | 'ghost'
18
+ | 'link'
19
+ | null
20
+ | undefined
21
+ size?: 'default' | 'sm' | 'lg' | 'icon' | null | undefined
22
+ } & class_variance_authority_types.ClassProp)
23
+ | undefined,
24
+ ) => string
25
+ declare function Button({
26
+ className,
27
+ variant,
28
+ size,
29
+ asChild,
30
+ ...props
31
+ }: React$1.ComponentProps<'button'> &
32
+ VariantProps<typeof buttonVariants> & {
33
+ asChild?: boolean
34
+ }): react_jsx_runtime.JSX.Element
17
35
 
18
36
  interface DynamicFaviconProps {
19
- lightModeFavicon: string;
20
- darkModeFavicon: string;
37
+ lightModeFavicon: string
38
+ darkModeFavicon: string
21
39
  }
22
- declare function DynamicFavicon({ lightModeFavicon, darkModeFavicon }: DynamicFaviconProps): null;
40
+ declare function DynamicFavicon({ lightModeFavicon, darkModeFavicon }: DynamicFaviconProps): null
23
41
 
24
- declare function Footer(): react_jsx_runtime.JSX.Element;
42
+ declare function Footer(): react_jsx_runtime.JSX.Element
25
43
 
26
- type IconProps = React.HTMLAttributes<SVGElement>;
44
+ type IconProps = React.HTMLAttributes<SVGElement>
27
45
  declare const Icons: {
28
- logo: (props: IconProps) => react_jsx_runtime.JSX.Element;
29
- github: (props: IconProps) => react_jsx_runtime.JSX.Element;
30
- linkedin: (props: IconProps) => react_jsx_runtime.JSX.Element;
31
- twitter: (props: IconProps) => react_jsx_runtime.JSX.Element;
32
- youtube: (props: IconProps) => react_jsx_runtime.JSX.Element;
33
- account_circle: (props: IconProps) => react_jsx_runtime.JSX.Element;
34
- attach_file: (props: IconProps) => react_jsx_runtime.JSX.Element;
35
- cancel: (props: IconProps) => react_jsx_runtime.JSX.Element;
36
- check_circle: (props: IconProps) => react_jsx_runtime.JSX.Element;
37
- check: (props: IconProps) => react_jsx_runtime.JSX.Element;
38
- chevron_down: (props: IconProps) => react_jsx_runtime.JSX.Element;
39
- chevron_left: (props: IconProps) => react_jsx_runtime.JSX.Element;
40
- chevron_right: (props: IconProps) => react_jsx_runtime.JSX.Element;
41
- chevron_up: (props: IconProps) => react_jsx_runtime.JSX.Element;
42
- close: (props: IconProps) => react_jsx_runtime.JSX.Element;
43
- collapse_all: (props: IconProps) => react_jsx_runtime.JSX.Element;
44
- computer: (props: IconProps) => react_jsx_runtime.JSX.Element;
45
- copy: (props: IconProps) => react_jsx_runtime.JSX.Element;
46
- dark_mode: (props: IconProps) => react_jsx_runtime.JSX.Element;
47
- dock_to_left: (props: IconProps) => react_jsx_runtime.JSX.Element;
48
- dock_to_right: (props: IconProps) => react_jsx_runtime.JSX.Element;
49
- delete: (props: IconProps) => react_jsx_runtime.JSX.Element;
50
- desktop: (props: IconProps) => react_jsx_runtime.JSX.Element;
51
- display_settings: (props: IconProps) => react_jsx_runtime.JSX.Element;
52
- double_arrow_left: (props: IconProps) => react_jsx_runtime.JSX.Element;
53
- double_arrow_right: (props: IconProps) => react_jsx_runtime.JSX.Element;
54
- download: (props: IconProps) => react_jsx_runtime.JSX.Element;
55
- east: (props: IconProps) => react_jsx_runtime.JSX.Element;
56
- error: (props: IconProps) => react_jsx_runtime.JSX.Element;
57
- exclamation: (props: IconProps) => react_jsx_runtime.JSX.Element;
58
- help: (props: IconProps) => react_jsx_runtime.JSX.Element;
59
- info: (props: IconProps) => react_jsx_runtime.JSX.Element;
60
- light_mode: (props: IconProps) => react_jsx_runtime.JSX.Element;
61
- link: (props: IconProps) => react_jsx_runtime.JSX.Element;
62
- login: (props: IconProps) => react_jsx_runtime.JSX.Element;
63
- logout: (props: IconProps) => react_jsx_runtime.JSX.Element;
64
- menu: (props: IconProps) => react_jsx_runtime.JSX.Element;
65
- more_horiz: (props: IconProps) => react_jsx_runtime.JSX.Element;
66
- more_vert: (props: IconProps) => react_jsx_runtime.JSX.Element;
67
- north: (props: IconProps) => react_jsx_runtime.JSX.Element;
68
- open_in_new: (props: IconProps) => react_jsx_runtime.JSX.Element;
69
- print: (props: IconProps) => react_jsx_runtime.JSX.Element;
70
- progress_activity: (props: IconProps) => react_jsx_runtime.JSX.Element;
71
- remove: (props: IconProps) => react_jsx_runtime.JSX.Element;
72
- search: (props: IconProps) => react_jsx_runtime.JSX.Element;
73
- settings_brightness: (props: IconProps) => react_jsx_runtime.JSX.Element;
74
- share: (props: IconProps) => react_jsx_runtime.JSX.Element;
75
- side_navigation: (props: IconProps) => react_jsx_runtime.JSX.Element;
76
- south: (props: IconProps) => react_jsx_runtime.JSX.Element;
77
- unfold_less: (props: IconProps) => react_jsx_runtime.JSX.Element;
78
- unfold_more: (props: IconProps) => react_jsx_runtime.JSX.Element;
79
- upload: (props: IconProps) => react_jsx_runtime.JSX.Element;
80
- west: (props: IconProps) => react_jsx_runtime.JSX.Element;
81
- };
46
+ logo: (props: IconProps) => react_jsx_runtime.JSX.Element
47
+ github: (props: IconProps) => react_jsx_runtime.JSX.Element
48
+ linkedin: (props: IconProps) => react_jsx_runtime.JSX.Element
49
+ twitter: (props: IconProps) => react_jsx_runtime.JSX.Element
50
+ youtube: (props: IconProps) => react_jsx_runtime.JSX.Element
51
+ account_circle: (props: IconProps) => react_jsx_runtime.JSX.Element
52
+ attach_file: (props: IconProps) => react_jsx_runtime.JSX.Element
53
+ cancel: (props: IconProps) => react_jsx_runtime.JSX.Element
54
+ check_circle: (props: IconProps) => react_jsx_runtime.JSX.Element
55
+ check: (props: IconProps) => react_jsx_runtime.JSX.Element
56
+ chevron_down: (props: IconProps) => react_jsx_runtime.JSX.Element
57
+ chevron_left: (props: IconProps) => react_jsx_runtime.JSX.Element
58
+ chevron_right: (props: IconProps) => react_jsx_runtime.JSX.Element
59
+ chevron_up: (props: IconProps) => react_jsx_runtime.JSX.Element
60
+ close: (props: IconProps) => react_jsx_runtime.JSX.Element
61
+ collapse_all: (props: IconProps) => react_jsx_runtime.JSX.Element
62
+ computer: (props: IconProps) => react_jsx_runtime.JSX.Element
63
+ copy: (props: IconProps) => react_jsx_runtime.JSX.Element
64
+ dark_mode: (props: IconProps) => react_jsx_runtime.JSX.Element
65
+ dock_to_left: (props: IconProps) => react_jsx_runtime.JSX.Element
66
+ dock_to_right: (props: IconProps) => react_jsx_runtime.JSX.Element
67
+ delete: (props: IconProps) => react_jsx_runtime.JSX.Element
68
+ desktop: (props: IconProps) => react_jsx_runtime.JSX.Element
69
+ display_settings: (props: IconProps) => react_jsx_runtime.JSX.Element
70
+ double_arrow_left: (props: IconProps) => react_jsx_runtime.JSX.Element
71
+ double_arrow_right: (props: IconProps) => react_jsx_runtime.JSX.Element
72
+ download: (props: IconProps) => react_jsx_runtime.JSX.Element
73
+ east: (props: IconProps) => react_jsx_runtime.JSX.Element
74
+ error: (props: IconProps) => react_jsx_runtime.JSX.Element
75
+ exclamation: (props: IconProps) => react_jsx_runtime.JSX.Element
76
+ help: (props: IconProps) => react_jsx_runtime.JSX.Element
77
+ info: (props: IconProps) => react_jsx_runtime.JSX.Element
78
+ light_mode: (props: IconProps) => react_jsx_runtime.JSX.Element
79
+ link: (props: IconProps) => react_jsx_runtime.JSX.Element
80
+ login: (props: IconProps) => react_jsx_runtime.JSX.Element
81
+ logout: (props: IconProps) => react_jsx_runtime.JSX.Element
82
+ menu: (props: IconProps) => react_jsx_runtime.JSX.Element
83
+ more_horiz: (props: IconProps) => react_jsx_runtime.JSX.Element
84
+ more_vert: (props: IconProps) => react_jsx_runtime.JSX.Element
85
+ north: (props: IconProps) => react_jsx_runtime.JSX.Element
86
+ open_in_new: (props: IconProps) => react_jsx_runtime.JSX.Element
87
+ print: (props: IconProps) => react_jsx_runtime.JSX.Element
88
+ progress_activity: (props: IconProps) => react_jsx_runtime.JSX.Element
89
+ remove: (props: IconProps) => react_jsx_runtime.JSX.Element
90
+ search: (props: IconProps) => react_jsx_runtime.JSX.Element
91
+ settings_brightness: (props: IconProps) => react_jsx_runtime.JSX.Element
92
+ share: (props: IconProps) => react_jsx_runtime.JSX.Element
93
+ side_navigation: (props: IconProps) => react_jsx_runtime.JSX.Element
94
+ south: (props: IconProps) => react_jsx_runtime.JSX.Element
95
+ unfold_less: (props: IconProps) => react_jsx_runtime.JSX.Element
96
+ unfold_more: (props: IconProps) => react_jsx_runtime.JSX.Element
97
+ upload: (props: IconProps) => react_jsx_runtime.JSX.Element
98
+ west: (props: IconProps) => react_jsx_runtime.JSX.Element
99
+ }
82
100
 
83
101
  interface ColorData {
84
- oklch: string;
85
- hex: string;
86
- rgb: string;
87
- hsl: string;
88
- [key: string]: string;
102
+ oklch: string
103
+ hex: string
104
+ rgb: string
105
+ hsl: string
106
+ [key: string]: string
89
107
  }
90
- type Format = 'hex' | 'oklch' | 'hsl' | 'rgb';
91
- type Variant = 'shades' | 'theme';
92
- type Output = 'css' | 'ts' | 'scss' | 'less' | 'tailwind' | 'json' | 'json-DTFM' | 'js';
108
+ type Format = 'hex' | 'oklch' | 'hsl' | 'rgb'
109
+ type Variant = 'shades' | 'theme'
110
+ type Output = 'css' | 'ts' | 'scss' | 'less' | 'tailwind' | 'json' | 'json-DTFM' | 'js'
93
111
  interface ColorsDisplayProps {
94
- baseColors: string[];
95
- themeColor: string | undefined;
96
- colorsToUse: ColorData[];
97
- paletteName: string;
98
- variant: Variant;
112
+ baseColors: string[]
113
+ themeColor: string | undefined
114
+ colorsToUse: ColorData[]
115
+ paletteName: string
116
+ variant: Variant
99
117
  }
100
118
  interface ColourOutputProps {
101
- colorsToUse: ColorData[];
102
- paletteName: string;
103
- format: Format;
104
- output: Output;
105
- variant: Variant;
119
+ colorsToUse: ColorData[]
120
+ paletteName: string
121
+ format: Format
122
+ output: Output
123
+ variant: Variant
106
124
  }
107
125
  interface DesignTokensShades {
108
- [paletteName: string]: {
109
- [shade: string]: {
110
- $type: 'color';
111
- $value: string | {
112
- colorSpace: string;
113
- channels: number[];
114
- alpha: number;
115
- };
116
- };
117
- };
126
+ [paletteName: string]: {
127
+ [shade: string]: {
128
+ $type: 'color'
129
+ $value:
130
+ | string
131
+ | {
132
+ colorSpace: string
133
+ channels: number[]
134
+ alpha: number
135
+ }
136
+ }
137
+ }
118
138
  }
119
139
  interface StructuredColor {
120
- colorSpace: string;
121
- channels: number[];
122
- alpha: number;
140
+ colorSpace: string
141
+ channels: number[]
142
+ alpha: number
123
143
  }
124
144
  interface DesignTokensTheme {
125
- [paletteName: string]: {
126
- value: string | StructuredColor;
127
- type: 'color';
128
- variants: Record<string, {
129
- value: string | StructuredColor;
130
- type: 'color';
131
- }>;
132
- };
145
+ [paletteName: string]: {
146
+ value: string | StructuredColor
147
+ type: 'color'
148
+ variants: Record<
149
+ string,
150
+ {
151
+ value: string | StructuredColor
152
+ type: 'color'
153
+ }
154
+ >
155
+ }
133
156
  }
134
157
  type NavigationSection = {
135
- title: string;
136
- links: {
137
- title: string;
138
- href: string;
139
- }[];
140
- };
158
+ title: string
159
+ links: {
160
+ title: string
161
+ href: string
162
+ }[]
163
+ }
141
164
 
142
- declare const defaultNavigation: NavigationSection[];
165
+ declare const defaultNavigation: NavigationSection[]
143
166
  interface LayoutProps {
144
- children: react__default.ReactNode;
145
- sitename?: string;
146
- navigation?: NavigationSection[];
167
+ children: React__default.ReactNode
168
+ sitename?: string
169
+ navigation?: NavigationSection[]
147
170
  }
148
- declare function Layout({ children, sitename, navigation }: LayoutProps): react_jsx_runtime.JSX.Element;
171
+ declare function Layout({
172
+ children,
173
+ sitename,
174
+ navigation,
175
+ }: LayoutProps): react_jsx_runtime.JSX.Element
149
176
 
150
- declare function Logo(props: React.ComponentPropsWithoutRef<'svg'>): react_jsx_runtime.JSX.Element;
177
+ declare function Logo(props: React.ComponentPropsWithoutRef<'svg'>): react_jsx_runtime.JSX.Element
151
178
 
152
- declare function Masthead(): react_jsx_runtime.JSX.Element;
179
+ declare function Masthead(): react_jsx_runtime.JSX.Element
153
180
 
154
- declare function Navigation({ className, onLinkClick, navigation, }: {
155
- className?: string;
156
- onLinkClick?: react__default.MouseEventHandler<HTMLAnchorElement>;
157
- navigation: NavigationSection[];
158
- }): react_jsx_runtime.JSX.Element;
181
+ declare function Navigation({
182
+ className,
183
+ onLinkClick,
184
+ navigation,
185
+ }: {
186
+ className?: string
187
+ onLinkClick?: React__default.MouseEventHandler<HTMLAnchorElement>
188
+ navigation: NavigationSection[]
189
+ }): react_jsx_runtime.JSX.Element
159
190
 
160
191
  interface PrevNextLinksProps {
161
- navigation: NavigationSection[];
192
+ navigation: NavigationSection[]
162
193
  }
163
- declare function PrevNextLinks({ navigation }: PrevNextLinksProps): react_jsx_runtime.JSX.Element | null;
194
+ declare function PrevNextLinks({
195
+ navigation,
196
+ }: PrevNextLinksProps): react_jsx_runtime.JSX.Element | null
164
197
 
165
198
  type TableOfContentsItem = {
166
- id: string;
167
- children: TableOfContentsItem[];
168
- title: string;
169
- };
199
+ id: string
200
+ children: TableOfContentsItem[]
201
+ title: string
202
+ }
170
203
  type TableOfContentsProps = {
171
- tableOfContents: TableOfContentsItem[];
172
- };
173
- declare function TableOfContents({ tableOfContents }: TableOfContentsProps): react_jsx_runtime.JSX.Element;
174
-
175
- declare function Providers({ children }: {
176
- children: React.ReactNode;
177
- }): react_jsx_runtime.JSX.Element;
178
-
179
- declare function ThemeProvider({ children, ...props }: ThemeProviderProps): react_jsx_runtime.JSX.Element;
204
+ tableOfContents: TableOfContentsItem[]
205
+ }
206
+ declare function TableOfContents({
207
+ tableOfContents,
208
+ }: TableOfContentsProps): react_jsx_runtime.JSX.Element
180
209
 
181
- declare function ThemeSwitcher(): react_jsx_runtime.JSX.Element;
210
+ declare function ThemeSwitcher(): react_jsx_runtime.JSX.Element
182
211
 
183
- declare function cn(...inputs: ClassValue[]): string;
184
- declare function truncate(text: string, maxLength: number): string;
185
- declare function kebabCase(str: string): string;
186
- declare function camelCase(str: string): string;
212
+ declare function cn(...inputs: ClassValue[]): string
213
+ declare function truncate(text: string, maxLength: number): string
214
+ declare function kebabCase(str: string): string
215
+ declare function camelCase(str: string): string
187
216
 
188
217
  type SimpleNode = {
189
- type: string;
190
- attributes: {
191
- content?: string;
192
- [key: string]: string | number | boolean | undefined;
193
- };
194
- children?: SimpleNode[];
195
- };
218
+ type: string
219
+ attributes: {
220
+ content?: string
221
+ [key: string]: string | number | boolean | undefined
222
+ }
223
+ children?: SimpleNode[]
224
+ }
196
225
  type HeadingNode = {
197
- level: number;
198
- id: string;
199
- title: string;
200
- children: HeadingNode[];
201
- };
202
- declare function getNodeText(node: HTMLElement | SimpleNode): string;
203
- declare function domToSimple(node: Node): SimpleNode;
204
- declare function getHeadings(slugify?: _sindresorhus_slugify.CountableSlugify): HeadingNode[];
205
-
206
- declare const nswdsExports: {
207
- Button: typeof Button;
208
- DynamicFavicon: typeof DynamicFavicon;
209
- Footer: typeof Footer;
210
- Icons: {
211
- logo: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
212
- github: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
213
- linkedin: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
214
- twitter: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
215
- youtube: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
216
- account_circle: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
217
- attach_file: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
218
- cancel: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
219
- check_circle: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
220
- check: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
221
- chevron_down: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
222
- chevron_left: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
223
- chevron_right: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
224
- chevron_up: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
225
- close: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
226
- collapse_all: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
227
- computer: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
228
- copy: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
229
- dark_mode: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
230
- dock_to_left: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
231
- dock_to_right: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
232
- delete: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
233
- desktop: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
234
- display_settings: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
235
- double_arrow_left: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
236
- double_arrow_right: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
237
- download: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
238
- east: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
239
- error: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
240
- exclamation: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
241
- help: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
242
- info: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
243
- light_mode: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
244
- link: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
245
- login: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
246
- logout: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
247
- menu: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
248
- more_horiz: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
249
- more_vert: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
250
- north: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
251
- open_in_new: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
252
- print: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
253
- progress_activity: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
254
- remove: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
255
- search: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
256
- settings_brightness: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
257
- share: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
258
- side_navigation: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
259
- south: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
260
- unfold_less: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
261
- unfold_more: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
262
- upload: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
263
- west: (props: react.HTMLAttributes<SVGElement>) => react_jsx_runtime.JSX.Element;
264
- };
265
- Layout: typeof Layout;
266
- Logo: typeof Logo;
267
- Masthead: typeof Masthead;
268
- Navigation: typeof Navigation;
269
- PrevNextLinks: typeof PrevNextLinks;
270
- TableOfContents: typeof TableOfContents;
271
- Providers: typeof Providers;
272
- ThemeProvider: typeof ThemeProvider;
273
- ThemeSwitcher: typeof ThemeSwitcher;
274
- defaultNavigation: NavigationSection[];
275
- };
226
+ level: number
227
+ id: string
228
+ title: string
229
+ children: HeadingNode[]
230
+ }
231
+ declare function getNodeText(node: HTMLElement | SimpleNode): string
232
+ declare function domToSimple(node: Node): SimpleNode
233
+ declare function getHeadings(slugify?: _sindresorhus_slugify.CountableSlugify): HeadingNode[]
276
234
 
277
- export { Button, type ColorData, type ColorsDisplayProps, type ColourOutputProps, type DesignTokensShades, type DesignTokensTheme, DynamicFavicon, Footer, type Format, type HeadingNode, Icons, Layout, Logo, Masthead, Navigation, type NavigationSection, type Output, PrevNextLinks, Providers, type SimpleNode, type StructuredColor, TableOfContents, ThemeProvider, ThemeSwitcher, type Variant, camelCase, cn, nswdsExports as default, defaultNavigation, domToSimple, getHeadings, getNodeText, kebabCase, truncate };
235
+ export {
236
+ Button,
237
+ type ColorData,
238
+ type ColorsDisplayProps,
239
+ type ColourOutputProps,
240
+ type DesignTokensShades,
241
+ type DesignTokensTheme,
242
+ DynamicFavicon,
243
+ Footer,
244
+ type Format,
245
+ type HeadingNode,
246
+ Icons,
247
+ Layout,
248
+ Logo,
249
+ Masthead,
250
+ Navigation,
251
+ type NavigationSection,
252
+ type Output,
253
+ PrevNextLinks,
254
+ type SimpleNode,
255
+ type StructuredColor,
256
+ TableOfContents,
257
+ ThemeSwitcher,
258
+ type Variant,
259
+ camelCase,
260
+ cn,
261
+ defaultNavigation,
262
+ domToSimple,
263
+ getHeadings,
264
+ getNodeText,
265
+ kebabCase,
266
+ truncate,
267
+ }