@nswds/app 1.8.1 → 1.9.1

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