@nswds/app 1.9.1 → 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.cts CHANGED
@@ -1,351 +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
- type IconProps = React.HTMLAttributes<SVGElement>;
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'
18
+
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
62
+
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
91
+
92
+ type IconProps = React.HTMLAttributes<SVGElement>
35
93
  interface LayoutProps {
36
- children: React.ReactNode;
37
- sitename?: string;
38
- toc?: boolean;
94
+ children: React.ReactNode
95
+ sitename?: string
96
+ toc?: boolean
39
97
  }
40
98
  type ColorProperty = {
41
- value: string | {
42
- colorSpace: string;
43
- channels: number[];
44
- alpha: number;
45
- };
46
- type: 'color';
47
- };
99
+ value:
100
+ | string
101
+ | {
102
+ colorSpace: string
103
+ channels: number[]
104
+ alpha: number
105
+ }
106
+ type: 'color'
107
+ }
48
108
  type ColorThemes = {
109
+ [key: string]: {
49
110
  [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;
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
66
126
  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
- };
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
+ }
79
139
  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';
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'
88
148
  }
89
149
  interface ViewToggleProps {
90
- viewMode: ViewMode;
91
- setViewMode: (mode: ViewMode) => void;
150
+ viewMode: ViewMode
151
+ setViewMode: (mode: ViewMode) => void
92
152
  }
93
153
  interface Color {
94
- token: string;
95
- oklch: string;
96
- hex: string;
97
- rgb: string;
98
- hsl: string;
99
- name?: string;
154
+ token: string
155
+ oklch: string
156
+ hex: string
157
+ rgb: string
158
+ hsl: string
159
+ name?: string
100
160
  }
101
- type ThemeCategory = 'brand' | 'aboriginal';
161
+ type ThemeCategory = 'brand' | 'aboriginal'
102
162
  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;
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
111
171
  }
112
172
  interface FormatToggleProps {
113
- format: ColorFormat;
114
- setFormat: (format: ColorFormat) => void;
173
+ format: ColorFormat
174
+ setFormat: (format: ColorFormat) => void
115
175
  }
116
176
  type SimpleNode = {
117
- type: string;
118
- attributes: {
119
- content?: string;
120
- [key: string]: string | number | boolean | undefined;
121
- };
122
- children?: SimpleNode[];
123
- };
177
+ type: string
178
+ attributes: {
179
+ content?: string
180
+ [key: string]: string | number | boolean | undefined
181
+ }
182
+ children?: SimpleNode[]
183
+ }
124
184
  type HeadingNode = {
125
- level: number;
126
- id: string;
127
- title: string;
128
- children: HeadingNode[];
129
- };
185
+ level: number
186
+ id: string
187
+ title: string
188
+ children: HeadingNode[]
189
+ }
130
190
  type Link = {
131
- href: string;
132
- title: string;
133
- links?: Link[];
134
- };
191
+ href: string
192
+ title: string
193
+ links?: Link[]
194
+ }
135
195
  interface ColorData {
136
- oklch: string;
137
- hex: string;
138
- rgb: string;
139
- hsl: string;
140
- [key: string]: string;
196
+ oklch: string
197
+ hex: string
198
+ rgb: string
199
+ hsl: string
200
+ [key: string]: string
141
201
  }
142
- type Format = 'hex' | 'oklch' | 'hsl' | 'rgb';
143
- type Variant = 'shades' | 'theme';
144
- 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'
145
205
  interface ColorsDisplayProps {
146
- baseColors: string[];
147
- themeColor: string | undefined;
148
- colorsToUse: ColorData[];
149
- paletteName: string;
150
- variant: Variant;
206
+ baseColors: string[]
207
+ themeColor: string | undefined
208
+ colorsToUse: ColorData[]
209
+ paletteName: string
210
+ variant: Variant
151
211
  }
152
212
  interface ColourOutputProps {
153
- colorsToUse: ColorData[];
154
- paletteName: string;
155
- format: Format;
156
- output: Output;
157
- variant: Variant;
213
+ colorsToUse: ColorData[]
214
+ paletteName: string
215
+ format: Format
216
+ output: Output
217
+ variant: Variant
158
218
  }
159
219
  interface DesignTokensShades {
160
- [paletteName: string]: {
161
- [shade: string]: {
162
- $type: 'color';
163
- $value: string | {
164
- colorSpace: string;
165
- channels: number[];
166
- alpha: number;
167
- };
168
- };
169
- };
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
+ }
170
232
  }
171
233
  interface StructuredColor {
172
- colorSpace: string;
173
- channels: number[];
174
- alpha: number;
234
+ colorSpace: string
235
+ channels: number[]
236
+ alpha: number
175
237
  }
176
238
  interface DesignTokensTheme {
177
- [paletteName: string]: {
178
- value: string | StructuredColor;
179
- type: 'color';
180
- variants: Record<string, {
181
- value: string | StructuredColor;
182
- type: 'color';
183
- }>;
184
- };
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
+ }
185
250
  }
186
251
  type NavigationSection = {
187
- title: string;
188
- links: {
189
- title: string;
190
- href: string;
191
- }[];
192
- };
252
+ title: string
253
+ links: {
254
+ title: string
255
+ href: string
256
+ }[]
257
+ }
193
258
 
194
- declare function ColorCard({ name, token, hex, rgb, hsl, oklch, format, viewMode }: ColorCardProps): react_jsx_runtime.JSX.Element;
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
195
269
 
196
- declare function Collapsible({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.Root>): react_jsx_runtime.JSX.Element;
270
+ declare function Collapsible({
271
+ ...props
272
+ }: React.ComponentProps<typeof CollapsiblePrimitive.Root>): react_jsx_runtime.JSX.Element
197
273
 
198
274
  interface DynamicFaviconProps {
199
- lightModeFavicon: string;
200
- darkModeFavicon: string;
275
+ lightModeFavicon: string
276
+ darkModeFavicon: string
201
277
  }
202
- declare function DynamicFavicon({ lightModeFavicon, darkModeFavicon }: DynamicFaviconProps): null;
278
+ declare function DynamicFavicon({ lightModeFavicon, darkModeFavicon }: DynamicFaviconProps): null
203
279
 
204
- declare function Footer(): react_jsx_runtime.JSX.Element;
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
205
298
 
206
- declare function FormatToggle({ format, setFormat }: FormatToggleProps): react_jsx_runtime.JSX.Element;
299
+ declare function FormatToggle({
300
+ format,
301
+ setFormat,
302
+ }: FormatToggleProps): react_jsx_runtime.JSX.Element
207
303
 
208
304
  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;
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
273
376
 
274
377
  interface PrevNextLinksProps {
275
- navigation: NavigationSection[];
378
+ navigation: NavigationSection[]
276
379
  }
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;
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
298
443
 
299
444
  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
- };
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
+ }
305
452
 
306
453
  type TableOfContentsItem = {
307
- id: string;
308
- children: TableOfContentsItem[];
309
- title: string;
310
- };
454
+ id: string
455
+ children: TableOfContentsItem[]
456
+ title: string
457
+ }
311
458
  type TableOfContentsProps = {
312
- tableOfContents: TableOfContentsItem[];
313
- };
314
- 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
315
464
 
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;
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
320
481
 
321
- declare function ThemeProvider({ children, ...props }: ThemeProviderProps): react_jsx_runtime.JSX.Element;
482
+ declare function ThemeProvider({
483
+ children,
484
+ ...props
485
+ }: ThemeProviderProps): react_jsx_runtime.JSX.Element
322
486
 
323
- declare function ThemeSwitcher(): react_jsx_runtime.JSX.Element;
487
+ declare function ThemeSwitcher(): react_jsx_runtime.JSX.Element
324
488
 
325
- declare const Toaster: ({ ...props }: ToasterProps) => react_jsx_runtime.JSX.Element;
489
+ declare const Toaster: ({ ...props }: ToasterProps) => react_jsx_runtime.JSX.Element
326
490
 
327
- declare function TocProvider({ children }: {
328
- children: ReactNode;
329
- }): 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
330
497
 
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;
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
336
513
 
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;
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
339
530
 
340
- declare function ViewToggle({ viewMode, setViewMode }: ViewToggleProps): react_jsx_runtime.JSX.Element;
531
+ declare function ViewToggle({
532
+ viewMode,
533
+ setViewMode,
534
+ }: ViewToggleProps): react_jsx_runtime.JSX.Element
341
535
 
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;
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
346
540
 
347
- declare function getNodeText(node: HTMLElement | SimpleNode): string;
348
- declare function domToSimple(node: Node): SimpleNode;
349
- declare function getHeadings(slugify?: _sindresorhus_slugify.CountableSlugify): HeadingNode[];
541
+ declare function getNodeText(node: HTMLElement | SimpleNode): string
542
+ declare function domToSimple(node: Node): SimpleNode
543
+ declare function getHeadings(slugify?: _sindresorhus_slugify.CountableSlugify): HeadingNode[]
350
544
 
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 };
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
601
+
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
+ }