@nswds/app 1.9.0 → 1.10.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.ts CHANGED
@@ -1,328 +1,707 @@
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';
17
-
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;
25
-
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;
33
-
34
- declare function Collapsible({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.Root>): react_jsx_runtime.JSX.Element;
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, Dispatch, SetStateAction } 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 SeparatorPrimitive from '@radix-ui/react-separator'
10
+ import * as SheetPrimitive from '@radix-ui/react-dialog'
11
+ import * as TabsPrimitive from '@radix-ui/react-tabs'
12
+ import { ThemeProviderProps } from 'next-themes'
13
+ import { ToasterProps } from 'sonner'
14
+ import * as TogglePrimitive from '@radix-ui/react-toggle'
15
+ import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group'
16
+ import { ClassValue } from 'clsx'
17
+ import * as _sindresorhus_slugify from '@sindresorhus/slugify'
35
18
 
36
- interface DynamicFaviconProps {
37
- lightModeFavicon: string;
38
- darkModeFavicon: string;
39
- }
40
- declare function DynamicFavicon({ lightModeFavicon, darkModeFavicon }: DynamicFaviconProps): null;
19
+ declare const badgeVariants: (
20
+ props?:
21
+ | ({
22
+ variant?: 'default' | 'secondary' | 'destructive' | 'outline' | null | undefined
23
+ } & class_variance_authority_types.ClassProp)
24
+ | undefined,
25
+ ) => string
26
+ declare function Badge({
27
+ className,
28
+ variant,
29
+ asChild,
30
+ ...props
31
+ }: React$1.ComponentProps<'span'> &
32
+ VariantProps<typeof badgeVariants> & {
33
+ asChild?: boolean
34
+ }): react_jsx_runtime.JSX.Element
35
+
36
+ declare const buttonVariants: (
37
+ props?:
38
+ | ({
39
+ variant?:
40
+ | 'default'
41
+ | 'secondary'
42
+ | 'destructive'
43
+ | 'outline'
44
+ | 'link'
45
+ | 'ghost'
46
+ | null
47
+ | undefined
48
+ size?: 'default' | 'sm' | 'lg' | 'icon' | null | undefined
49
+ } & class_variance_authority_types.ClassProp)
50
+ | undefined,
51
+ ) => string
52
+ declare function Button({
53
+ className,
54
+ variant,
55
+ size,
56
+ asChild,
57
+ ...props
58
+ }: React$1.ComponentProps<'button'> &
59
+ VariantProps<typeof buttonVariants> & {
60
+ asChild?: boolean
61
+ }): react_jsx_runtime.JSX.Element
41
62
 
42
- declare function Footer(): react_jsx_runtime.JSX.Element;
63
+ declare function Card({
64
+ className,
65
+ ...props
66
+ }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element
67
+ declare function CardHeader({
68
+ className,
69
+ ...props
70
+ }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element
71
+ declare function CardTitle({
72
+ className,
73
+ ...props
74
+ }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element
75
+ declare function CardDescription({
76
+ className,
77
+ ...props
78
+ }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element
79
+ declare function CardAction({
80
+ className,
81
+ ...props
82
+ }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element
83
+ declare function CardContent({
84
+ className,
85
+ ...props
86
+ }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element
87
+ declare function CardFooter({
88
+ className,
89
+ ...props
90
+ }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element
43
91
 
44
- type IconProps = React.HTMLAttributes<SVGElement>;
92
+ type IconProps = React.HTMLAttributes<SVGElement>
45
93
  interface LayoutProps {
46
- children: React.ReactNode;
47
- sitename?: string;
48
- toc?: boolean;
94
+ children: React.ReactNode
95
+ sitename?: string
96
+ toc?: boolean
49
97
  }
50
98
  type ColorProperty = {
51
- value: string | {
52
- colorSpace: string;
53
- channels: number[];
54
- alpha: number;
55
- };
56
- type: 'color';
57
- };
99
+ value:
100
+ | string
101
+ | {
102
+ colorSpace: string
103
+ channels: number[]
104
+ alpha: number
105
+ }
106
+ type: 'color'
107
+ }
58
108
  type ColorThemes = {
109
+ [key: string]: {
59
110
  [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;
111
+ name: string
112
+ colors: {
113
+ token: string
114
+ oklch: string
115
+ hex: string
116
+ rgb: string
117
+ hsl: string
118
+ name?: string
119
+ }[]
120
+ }
121
+ }
122
+ }
123
+ type ColorFormat = 'hex' | 'rgb' | 'hsl' | 'oklch'
124
+ type ViewMode = 'grid' | 'list'
125
+ type ThemeOption = string
126
+ type ColorTheme = {
127
+ [key: string]: {
128
+ name: string
129
+ colors: {
130
+ token: string
131
+ oklch: string
132
+ hex: string
133
+ rgb: string
134
+ hsl: string
135
+ name?: string
136
+ }[]
137
+ }
138
+ }
76
139
  interface ColorCardProps {
77
- colorName: string;
78
- hexValue: string;
79
- format: ColorFormat;
80
- viewMode: ViewMode;
140
+ name: string
141
+ token: string
142
+ hex: string
143
+ rgb: string
144
+ hsl: string
145
+ oklch: string
146
+ format: 'hex' | 'rgb' | 'hsl' | 'oklch'
147
+ viewMode: 'grid' | 'list'
81
148
  }
82
149
  interface ViewToggleProps {
83
- viewMode: ViewMode;
84
- setViewMode: (mode: ViewMode) => void;
150
+ viewMode: ViewMode
151
+ setViewMode: (mode: ViewMode) => void
85
152
  }
86
153
  interface Color {
87
- token: string;
88
- oklch: string;
89
- hex: string;
90
- rgb: string;
91
- hsl: string;
92
- name?: string;
154
+ token: string
155
+ oklch: string
156
+ hex: string
157
+ rgb: string
158
+ hsl: string
159
+ name?: string
93
160
  }
94
- type ThemeCategory = 'brand' | 'aboriginal';
161
+ type ThemeCategory = 'brand' | 'aboriginal'
95
162
  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;
163
+ themeCategory: ThemeCategory
164
+ setThemeCategory: (category: ThemeCategory) => void
165
+ primaryColor: string
166
+ setPrimaryColor: (color: string) => void
167
+ accentColor: string
168
+ setAccentColor: (color: string) => void
169
+ availableAccentColors: string[]
170
+ colorThemes: ColorThemes
104
171
  }
105
172
  interface FormatToggleProps {
106
- format: ColorFormat;
107
- setFormat: (format: ColorFormat) => void;
173
+ format: ColorFormat
174
+ setFormat: (format: ColorFormat) => void
108
175
  }
109
176
  type SimpleNode = {
110
- type: string;
111
- attributes: {
112
- content?: string;
113
- [key: string]: string | number | boolean | undefined;
114
- };
115
- children?: SimpleNode[];
116
- };
177
+ type: string
178
+ attributes: {
179
+ content?: string
180
+ [key: string]: string | number | boolean | undefined
181
+ }
182
+ children?: SimpleNode[]
183
+ }
117
184
  type HeadingNode = {
118
- level: number;
119
- id: string;
120
- title: string;
121
- children: HeadingNode[];
122
- };
185
+ level: number
186
+ id: string
187
+ title: string
188
+ children: HeadingNode[]
189
+ }
123
190
  type Link = {
124
- href: string;
125
- title: string;
126
- links?: Link[];
127
- };
191
+ href: string
192
+ title: string
193
+ links?: Link[]
194
+ }
128
195
  interface ColorData {
129
- oklch: string;
130
- hex: string;
131
- rgb: string;
132
- hsl: string;
133
- [key: string]: string;
196
+ oklch: string
197
+ hex: string
198
+ rgb: string
199
+ hsl: string
200
+ [key: string]: string
134
201
  }
135
- type Format = 'hex' | 'oklch' | 'hsl' | 'rgb';
136
- type Variant = 'shades' | 'theme';
137
- type Output = 'css' | 'ts' | 'scss' | 'less' | 'tailwind' | 'json' | 'json-DTFM' | 'js';
202
+ type Format = 'hex' | 'oklch' | 'hsl' | 'rgb'
203
+ type Variant = 'shades' | 'theme'
204
+ type Output = 'css' | 'ts' | 'scss' | 'less' | 'tailwind' | 'json' | 'json-DTFM' | 'js'
138
205
  interface ColorsDisplayProps {
139
- baseColors: string[];
140
- themeColor: string | undefined;
141
- colorsToUse: ColorData[];
142
- paletteName: string;
143
- variant: Variant;
206
+ baseColors: string[]
207
+ themeColor: string | undefined
208
+ colorsToUse: ColorData[]
209
+ paletteName: string
210
+ variant: Variant
144
211
  }
145
212
  interface ColourOutputProps {
146
- colorsToUse: ColorData[];
147
- paletteName: string;
148
- format: Format;
149
- output: Output;
150
- variant: Variant;
213
+ colorsToUse: ColorData[]
214
+ paletteName: string
215
+ format: Format
216
+ output: Output
217
+ variant: Variant
151
218
  }
152
219
  interface DesignTokensShades {
153
- [paletteName: string]: {
154
- [shade: string]: {
155
- $type: 'color';
156
- $value: string | {
157
- colorSpace: string;
158
- channels: number[];
159
- alpha: number;
160
- };
161
- };
162
- };
220
+ [paletteName: string]: {
221
+ [shade: string]: {
222
+ $type: 'color'
223
+ $value:
224
+ | string
225
+ | {
226
+ colorSpace: string
227
+ channels: number[]
228
+ alpha: number
229
+ }
230
+ }
231
+ }
163
232
  }
164
233
  interface StructuredColor {
165
- colorSpace: string;
166
- channels: number[];
167
- alpha: number;
234
+ colorSpace: string
235
+ channels: number[]
236
+ alpha: number
168
237
  }
169
238
  interface DesignTokensTheme {
170
- [paletteName: string]: {
171
- value: string | StructuredColor;
172
- type: 'color';
173
- variants: Record<string, {
174
- value: string | StructuredColor;
175
- type: 'color';
176
- }>;
177
- };
239
+ [paletteName: string]: {
240
+ value: string | StructuredColor
241
+ type: 'color'
242
+ variants: Record<
243
+ string,
244
+ {
245
+ value: string | StructuredColor
246
+ type: 'color'
247
+ }
248
+ >
249
+ }
178
250
  }
179
251
  type NavigationSection = {
180
- title: string;
181
- links: {
182
- title: string;
183
- href: string;
184
- }[];
185
- };
252
+ title: string
253
+ links: {
254
+ title: string
255
+ href: string
256
+ }[]
257
+ }
258
+
259
+ declare function ColorCard({
260
+ name,
261
+ token,
262
+ hex,
263
+ rgb,
264
+ hsl,
265
+ oklch,
266
+ format,
267
+ viewMode,
268
+ }: ColorCardProps): react_jsx_runtime.JSX.Element
269
+
270
+ declare function Collapsible({
271
+ ...props
272
+ }: React.ComponentProps<typeof CollapsiblePrimitive.Root>): react_jsx_runtime.JSX.Element
273
+
274
+ interface DynamicFaviconProps {
275
+ lightModeFavicon: string
276
+ darkModeFavicon: string
277
+ }
278
+ declare function DynamicFavicon({ lightModeFavicon, darkModeFavicon }: DynamicFaviconProps): null
279
+
280
+ declare function Footer({
281
+ legalLinks,
282
+ department,
283
+ socialLinks,
284
+ }: {
285
+ legalLinks: Array<{
286
+ name: string
287
+ href: string
288
+ }>
289
+ department?: string
290
+ socialLinks?: Array<{
291
+ name: string
292
+ href: string
293
+ icon: React.ComponentType<{
294
+ className?: string
295
+ }>
296
+ }>
297
+ }): react_jsx_runtime.JSX.Element
298
+
299
+ declare function FormatToggle({
300
+ format,
301
+ setFormat,
302
+ }: FormatToggleProps): react_jsx_runtime.JSX.Element
186
303
 
187
304
  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;
246
-
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;
305
+ account_circle: (props: IconProps) => react_jsx_runtime.JSX.Element
306
+ attach_file: (props: IconProps) => react_jsx_runtime.JSX.Element
307
+ cancel: (props: IconProps) => react_jsx_runtime.JSX.Element
308
+ check_circle: (props: IconProps) => react_jsx_runtime.JSX.Element
309
+ check: (props: IconProps) => react_jsx_runtime.JSX.Element
310
+ chevron_down: (props: IconProps) => react_jsx_runtime.JSX.Element
311
+ chevron_left: (props: IconProps) => react_jsx_runtime.JSX.Element
312
+ chevron_right: (props: IconProps) => react_jsx_runtime.JSX.Element
313
+ chevron_up: (props: IconProps) => react_jsx_runtime.JSX.Element
314
+ close: (props: IconProps) => react_jsx_runtime.JSX.Element
315
+ collapse_all: (props: IconProps) => react_jsx_runtime.JSX.Element
316
+ computer: (props: IconProps) => react_jsx_runtime.JSX.Element
317
+ copy: (props: IconProps) => react_jsx_runtime.JSX.Element
318
+ dark_mode: (props: IconProps) => react_jsx_runtime.JSX.Element
319
+ dock_to_left: (props: IconProps) => react_jsx_runtime.JSX.Element
320
+ dock_to_right: (props: IconProps) => react_jsx_runtime.JSX.Element
321
+ delete: (props: IconProps) => react_jsx_runtime.JSX.Element
322
+ desktop: (props: IconProps) => react_jsx_runtime.JSX.Element
323
+ display_settings: (props: IconProps) => react_jsx_runtime.JSX.Element
324
+ double_arrow_left: (props: IconProps) => react_jsx_runtime.JSX.Element
325
+ double_arrow_right: (props: IconProps) => react_jsx_runtime.JSX.Element
326
+ download: (props: IconProps) => react_jsx_runtime.JSX.Element
327
+ east: (props: IconProps) => react_jsx_runtime.JSX.Element
328
+ error: (props: IconProps) => react_jsx_runtime.JSX.Element
329
+ exclamation: (props: IconProps) => react_jsx_runtime.JSX.Element
330
+ grid_view: (props: IconProps) => react_jsx_runtime.JSX.Element
331
+ help: (props: IconProps) => react_jsx_runtime.JSX.Element
332
+ info: (props: IconProps) => react_jsx_runtime.JSX.Element
333
+ light_mode: (props: IconProps) => react_jsx_runtime.JSX.Element
334
+ link: (props: IconProps) => react_jsx_runtime.JSX.Element
335
+ list: (props: IconProps) => react_jsx_runtime.JSX.Element
336
+ login: (props: IconProps) => react_jsx_runtime.JSX.Element
337
+ logout: (props: IconProps) => react_jsx_runtime.JSX.Element
338
+ menu: (props: IconProps) => react_jsx_runtime.JSX.Element
339
+ more_horiz: (props: IconProps) => react_jsx_runtime.JSX.Element
340
+ more_vert: (props: IconProps) => react_jsx_runtime.JSX.Element
341
+ north: (props: IconProps) => react_jsx_runtime.JSX.Element
342
+ open_in_new: (props: IconProps) => react_jsx_runtime.JSX.Element
343
+ palette: (props: IconProps) => react_jsx_runtime.JSX.Element
344
+ print: (props: IconProps) => react_jsx_runtime.JSX.Element
345
+ progress_activity: (props: IconProps) => react_jsx_runtime.JSX.Element
346
+ remove: (props: IconProps) => react_jsx_runtime.JSX.Element
347
+ search: (props: IconProps) => react_jsx_runtime.JSX.Element
348
+ settings_brightness: (props: IconProps) => react_jsx_runtime.JSX.Element
349
+ share: (props: IconProps) => react_jsx_runtime.JSX.Element
350
+ side_navigation: (props: IconProps) => react_jsx_runtime.JSX.Element
351
+ south: (props: IconProps) => react_jsx_runtime.JSX.Element
352
+ unfold_less: (props: IconProps) => react_jsx_runtime.JSX.Element
353
+ unfold_more: (props: IconProps) => react_jsx_runtime.JSX.Element
354
+ upload: (props: IconProps) => react_jsx_runtime.JSX.Element
355
+ west: (props: IconProps) => react_jsx_runtime.JSX.Element
356
+ }
357
+
358
+ declare function Label({
359
+ className,
360
+ ...props
361
+ }: React$1.ComponentProps<typeof LabelPrimitive.Root>): react_jsx_runtime.JSX.Element
362
+
363
+ declare function Logo(props: React.ComponentPropsWithoutRef<'svg'>): react_jsx_runtime.JSX.Element
364
+
365
+ declare function Masthead(): react_jsx_runtime.JSX.Element
366
+
367
+ declare function Navigation({
368
+ className,
369
+ onLinkClick,
370
+ navigation,
371
+ }: {
372
+ className?: string
373
+ onLinkClick?: React__default.MouseEventHandler<HTMLAnchorElement>
374
+ navigation: NavigationSection[]
375
+ }): react_jsx_runtime.JSX.Element
252
376
 
253
377
  interface PrevNextLinksProps {
254
- navigation: NavigationSection[];
378
+ navigation: NavigationSection[]
255
379
  }
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;
380
+ declare function PrevNextLinks({
381
+ navigation,
382
+ }: PrevNextLinksProps): react_jsx_runtime.JSX.Element | null
383
+
384
+ declare function RadioGroup({
385
+ className,
386
+ ...props
387
+ }: React$1.ComponentProps<typeof RadioGroupPrimitive.Root>): react_jsx_runtime.JSX.Element
388
+ declare function RadioGroupItem({
389
+ className,
390
+ ...props
391
+ }: React$1.ComponentProps<typeof RadioGroupPrimitive.Item>): react_jsx_runtime.JSX.Element
392
+
393
+ declare function Separator({
394
+ className,
395
+ orientation,
396
+ decorative,
397
+ ...props
398
+ }: React$1.ComponentProps<typeof SeparatorPrimitive.Root>): react_jsx_runtime.JSX.Element
399
+
400
+ declare function Sheet({
401
+ ...props
402
+ }: React$1.ComponentProps<typeof SheetPrimitive.Root>): react_jsx_runtime.JSX.Element
403
+ declare function SheetTrigger({
404
+ ...props
405
+ }: React$1.ComponentProps<typeof SheetPrimitive.Trigger>): react_jsx_runtime.JSX.Element
406
+ declare function SheetClose({
407
+ ...props
408
+ }: React$1.ComponentProps<typeof SheetPrimitive.Close>): react_jsx_runtime.JSX.Element
409
+ declare function SheetContent({
410
+ className,
411
+ children,
412
+ side,
413
+ ...props
414
+ }: React$1.ComponentProps<typeof SheetPrimitive.Content> & {
415
+ side?: 'top' | 'right' | 'bottom' | 'left'
416
+ }): react_jsx_runtime.JSX.Element
417
+ declare function SheetHeader({
418
+ className,
419
+ ...props
420
+ }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element
421
+ declare function SheetFooter({
422
+ className,
423
+ ...props
424
+ }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element
425
+ declare function SheetTitle({
426
+ className,
427
+ ...props
428
+ }: React$1.ComponentProps<typeof SheetPrimitive.Title>): react_jsx_runtime.JSX.Element
429
+ declare function SheetDescription({
430
+ className,
431
+ ...props
432
+ }: React$1.ComponentProps<typeof SheetPrimitive.Description>): react_jsx_runtime.JSX.Element
433
+
434
+ declare function SidebarNavigation({
435
+ className,
436
+ onLinkClick,
437
+ navigation,
438
+ }: {
439
+ className?: string
440
+ onLinkClick?: React$1.MouseEventHandler<HTMLAnchorElement>
441
+ navigation: NavigationSection[]
442
+ }): react_jsx_runtime.JSX.Element
277
443
 
278
444
  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
- };
445
+ Facebook: (props: IconProps) => react_jsx_runtime.JSX.Element
446
+ Github: (props: IconProps) => react_jsx_runtime.JSX.Element
447
+ Instagram: (props: IconProps) => react_jsx_runtime.JSX.Element
448
+ LinkedIn: (props: IconProps) => react_jsx_runtime.JSX.Element
449
+ X: (props: IconProps) => react_jsx_runtime.JSX.Element
450
+ YouTube: (props: IconProps) => react_jsx_runtime.JSX.Element
451
+ }
284
452
 
285
453
  type TableOfContentsItem = {
286
- id: string;
287
- children: TableOfContentsItem[];
288
- title: string;
289
- };
454
+ id: string
455
+ children: TableOfContentsItem[]
456
+ title: string
457
+ }
290
458
  type TableOfContentsProps = {
291
- tableOfContents: TableOfContentsItem[];
292
- };
293
- declare function TableOfContents({ tableOfContents }: TableOfContentsProps): react_jsx_runtime.JSX.Element;
459
+ tableOfContents: TableOfContentsItem[]
460
+ }
461
+ declare function TableOfContents({
462
+ tableOfContents,
463
+ }: TableOfContentsProps): react_jsx_runtime.JSX.Element
464
+
465
+ declare function Tabs({
466
+ className,
467
+ ...props
468
+ }: React$1.ComponentProps<typeof TabsPrimitive.Root>): react_jsx_runtime.JSX.Element
469
+ declare function TabsList({
470
+ className,
471
+ ...props
472
+ }: React$1.ComponentProps<typeof TabsPrimitive.List>): react_jsx_runtime.JSX.Element
473
+ declare function TabsTrigger({
474
+ className,
475
+ ...props
476
+ }: React$1.ComponentProps<typeof TabsPrimitive.Trigger>): react_jsx_runtime.JSX.Element
477
+ declare function TabsContent({
478
+ className,
479
+ ...props
480
+ }: React$1.ComponentProps<typeof TabsPrimitive.Content>): react_jsx_runtime.JSX.Element
294
481
 
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;
482
+ declare function ThemeProvider({
483
+ children,
484
+ ...props
485
+ }: ThemeProviderProps): react_jsx_runtime.JSX.Element
299
486
 
300
- declare function ThemeProvider({ children, ...props }: ThemeProviderProps): react_jsx_runtime.JSX.Element;
487
+ declare function ThemeSwitcher(): react_jsx_runtime.JSX.Element
301
488
 
302
- declare function ThemeSwitcher(): react_jsx_runtime.JSX.Element;
489
+ declare const Toaster: ({ ...props }: ToasterProps) => react_jsx_runtime.JSX.Element
303
490
 
304
- declare const Toaster: ({ ...props }: ToasterProps) => react_jsx_runtime.JSX.Element;
491
+ interface TocContextType {
492
+ toc: boolean
493
+ setToc: Dispatch<SetStateAction<boolean>>
494
+ }
495
+ declare function TocProvider({ children }: { children: ReactNode }): react_jsx_runtime.JSX.Element
496
+ declare function useToc(): TocContextType
497
+
498
+ declare const toggleVariants: (
499
+ props?:
500
+ | ({
501
+ variant?: 'default' | 'outline' | null | undefined
502
+ size?: 'default' | 'sm' | 'lg' | null | undefined
503
+ } & class_variance_authority_types.ClassProp)
504
+ | undefined,
505
+ ) => string
506
+ declare function Toggle({
507
+ className,
508
+ variant,
509
+ size,
510
+ ...props
511
+ }: React$1.ComponentProps<typeof TogglePrimitive.Root> &
512
+ VariantProps<typeof toggleVariants>): react_jsx_runtime.JSX.Element
305
513
 
306
- declare function TocProvider({ children }: {
307
- children: ReactNode;
308
- }): react_jsx_runtime.JSX.Element;
514
+ declare function ToggleGroup({
515
+ className,
516
+ variant,
517
+ size,
518
+ children,
519
+ ...props
520
+ }: React$1.ComponentProps<typeof ToggleGroupPrimitive.Root> &
521
+ VariantProps<typeof toggleVariants>): react_jsx_runtime.JSX.Element
522
+ declare function ToggleGroupItem({
523
+ className,
524
+ children,
525
+ variant,
526
+ size,
527
+ ...props
528
+ }: React$1.ComponentProps<typeof ToggleGroupPrimitive.Item> &
529
+ VariantProps<typeof toggleVariants>): react_jsx_runtime.JSX.Element
309
530
 
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;
531
+ declare function ViewToggle({
532
+ viewMode,
533
+ setViewMode,
534
+ }: ViewToggleProps): react_jsx_runtime.JSX.Element
315
535
 
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;
536
+ declare function cn(...inputs: ClassValue[]): string
537
+ declare function truncate(text: string, maxLength: number): string
538
+ declare function kebabCase(str: string): string
539
+ declare function camelCase(str: string): string
318
540
 
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;
541
+ declare function getNodeText(node: HTMLElement | SimpleNode): string
542
+ declare function domToSimple(node: Node): SimpleNode
543
+ declare function getHeadings(slugify?: _sindresorhus_slugify.CountableSlugify): HeadingNode[]
323
544
 
324
- declare function getNodeText(node: HTMLElement | SimpleNode): string;
325
- declare function domToSimple(node: Node): SimpleNode;
326
- declare function getHeadings(slugify?: _sindresorhus_slugify.CountableSlugify): HeadingNode[];
545
+ declare const shades: string[]
546
+ declare const darkenColor: (color: string, factor?: number) => string
547
+ declare const lightenColor: (color: string, factor?: number) => string
548
+ declare const addStartStopToColorArray: (colorArray: string[]) => string[]
549
+ declare const interpolateColors: (color1: string, color2: string, steps: number) => ColorData[]
550
+ declare const GenerateInterpolatedColors: (colorArray: string[]) => ColorData[]
551
+ declare const getSurroundingColors: (colors: ColorData[], themeColor: string) => ColorData[]
552
+ declare const colorDataArray: (
553
+ colorsToUse: ColorData[],
554
+ paletteName: string,
555
+ format: Format,
556
+ output: Output,
557
+ variant: Variant,
558
+ ) => string[]
559
+ declare function createColorArray(
560
+ colorArray: ColorData[],
561
+ name: string,
562
+ type: string,
563
+ ): {
564
+ name: string
565
+ colors: {
566
+ name?: string | undefined
567
+ oklch: string
568
+ hex: string
569
+ rgb: string
570
+ hsl: string
571
+ token: string
572
+ }[]
573
+ }[]
574
+ declare const isLightColor: (hexColor: string) => boolean
575
+ declare const renderColorOutput: (
576
+ colorsToUse: ColorData[],
577
+ paletteName: string,
578
+ format: Format,
579
+ output: Output,
580
+ variant: Variant,
581
+ ) => string
582
+ declare const renderColorOutputToDTFM: (
583
+ colorsToUse: ColorData[],
584
+ paletteName: string,
585
+ format: Format,
586
+ variant: Variant,
587
+ ) => string
588
+ declare const themeIndices: number[]
589
+ declare const themeTokens: number[]
590
+ declare const generateColorThemes: (colors: ColorThemes) => ColorThemes
591
+ declare function oklchConverter(hex: string): string
592
+ declare const getColorValue: (
593
+ color: {
594
+ oklch: string
595
+ hex: string
596
+ rgb: string
597
+ hsl: string
598
+ },
599
+ colorFormat: 'oklch' | 'rgb' | 'hsl' | 'hex',
600
+ ) => string
327
601
 
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 };
602
+ declare const colors: ColorThemes
603
+ declare const colorThemes: ColorThemes
604
+
605
+ export {
606
+ Badge,
607
+ Button,
608
+ Card,
609
+ CardAction,
610
+ CardContent,
611
+ CardDescription,
612
+ CardFooter,
613
+ CardHeader,
614
+ CardTitle,
615
+ Collapsible,
616
+ type Color,
617
+ ColorCard,
618
+ type ColorCardProps,
619
+ type ColorData,
620
+ type ColorFormat,
621
+ type ColorProperty,
622
+ type ColorTheme,
623
+ type ColorThemes,
624
+ type ColorsDisplayProps,
625
+ type ColourOutputProps,
626
+ type DesignTokensShades,
627
+ type DesignTokensTheme,
628
+ DynamicFavicon,
629
+ Footer,
630
+ type Format,
631
+ FormatToggle,
632
+ type FormatToggleProps,
633
+ GenerateInterpolatedColors,
634
+ type HeadingNode,
635
+ type IconProps,
636
+ Icons,
637
+ Label,
638
+ type LayoutProps,
639
+ type Link,
640
+ Logo,
641
+ Masthead,
642
+ Navigation,
643
+ type NavigationSection,
644
+ type Output,
645
+ PrevNextLinks,
646
+ RadioGroup,
647
+ RadioGroupItem,
648
+ Separator,
649
+ Sheet,
650
+ SheetClose,
651
+ SheetContent,
652
+ SheetDescription,
653
+ SheetFooter,
654
+ SheetHeader,
655
+ SheetTitle,
656
+ SheetTrigger,
657
+ SidebarNavigation,
658
+ type SimpleNode,
659
+ Social,
660
+ type StructuredColor,
661
+ TableOfContents,
662
+ Tabs,
663
+ TabsContent,
664
+ TabsList,
665
+ TabsTrigger,
666
+ type ThemeCategory,
667
+ type ThemeOption,
668
+ ThemeProvider,
669
+ type ThemeSelectorProps,
670
+ ThemeSwitcher,
671
+ Toaster,
672
+ TocProvider,
673
+ Toggle,
674
+ ToggleGroup,
675
+ ToggleGroupItem,
676
+ type Variant,
677
+ type ViewMode,
678
+ ViewToggle,
679
+ type ViewToggleProps,
680
+ addStartStopToColorArray,
681
+ camelCase,
682
+ cn,
683
+ colorDataArray,
684
+ colorThemes,
685
+ colors,
686
+ createColorArray,
687
+ darkenColor,
688
+ domToSimple,
689
+ generateColorThemes,
690
+ getColorValue,
691
+ getHeadings,
692
+ getNodeText,
693
+ getSurroundingColors,
694
+ interpolateColors,
695
+ isLightColor,
696
+ kebabCase,
697
+ lightenColor,
698
+ oklchConverter,
699
+ renderColorOutput,
700
+ renderColorOutputToDTFM,
701
+ shades,
702
+ themeIndices,
703
+ themeTokens,
704
+ toggleVariants,
705
+ truncate,
706
+ useToc,
707
+ }