@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/globals.css +460 -224
- package/dist/index.cjs +4466 -885
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +653 -274
- package/dist/index.d.ts +653 -274
- package/dist/index.js +4403 -816
- package/dist/index.js.map +1 -1
- package/dist/styles.css +540 -250
- package/dist/styles.css.map +1 -1
- package/dist/styles.d.cts +1 -2
- package/dist/styles.d.ts +1 -2
- package/package.json +2 -2
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
|
|
10
|
-
import * as
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import
|
|
14
|
-
import * as
|
|
15
|
-
import
|
|
16
|
-
import
|
|
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
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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
|
|
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
|
-
|
|
47
|
-
|
|
48
|
-
|
|
94
|
+
children: React.ReactNode
|
|
95
|
+
sitename?: string
|
|
96
|
+
toc?: boolean
|
|
49
97
|
}
|
|
50
98
|
type ColorProperty = {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
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
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
type
|
|
74
|
-
type
|
|
75
|
-
type
|
|
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
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
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
|
-
|
|
84
|
-
|
|
150
|
+
viewMode: ViewMode
|
|
151
|
+
setViewMode: (mode: ViewMode) => void
|
|
85
152
|
}
|
|
86
153
|
interface Color {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
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
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
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
|
-
|
|
107
|
-
|
|
173
|
+
format: ColorFormat
|
|
174
|
+
setFormat: (format: ColorFormat) => void
|
|
108
175
|
}
|
|
109
176
|
type SimpleNode = {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
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
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
}
|
|
185
|
+
level: number
|
|
186
|
+
id: string
|
|
187
|
+
title: string
|
|
188
|
+
children: HeadingNode[]
|
|
189
|
+
}
|
|
123
190
|
type Link = {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
}
|
|
191
|
+
href: string
|
|
192
|
+
title: string
|
|
193
|
+
links?: Link[]
|
|
194
|
+
}
|
|
128
195
|
interface ColorData {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
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
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
206
|
+
baseColors: string[]
|
|
207
|
+
themeColor: string | undefined
|
|
208
|
+
colorsToUse: ColorData[]
|
|
209
|
+
paletteName: string
|
|
210
|
+
variant: Variant
|
|
144
211
|
}
|
|
145
212
|
interface ColourOutputProps {
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
213
|
+
colorsToUse: ColorData[]
|
|
214
|
+
paletteName: string
|
|
215
|
+
format: Format
|
|
216
|
+
output: Output
|
|
217
|
+
variant: Variant
|
|
151
218
|
}
|
|
152
219
|
interface DesignTokensShades {
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
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
|
-
|
|
166
|
-
|
|
167
|
-
|
|
234
|
+
colorSpace: string
|
|
235
|
+
channels: number[]
|
|
236
|
+
alpha: number
|
|
168
237
|
}
|
|
169
238
|
interface DesignTokensTheme {
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
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
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
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
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
declare function Label({
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
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
|
-
|
|
378
|
+
navigation: NavigationSection[]
|
|
255
379
|
}
|
|
256
|
-
declare function PrevNextLinks({
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
declare function
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
declare function
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
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
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
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
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
}
|
|
454
|
+
id: string
|
|
455
|
+
children: TableOfContentsItem[]
|
|
456
|
+
title: string
|
|
457
|
+
}
|
|
290
458
|
type TableOfContentsProps = {
|
|
291
|
-
|
|
292
|
-
}
|
|
293
|
-
declare function TableOfContents({
|
|
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
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
482
|
+
declare function ThemeProvider({
|
|
483
|
+
children,
|
|
484
|
+
...props
|
|
485
|
+
}: ThemeProviderProps): react_jsx_runtime.JSX.Element
|
|
299
486
|
|
|
300
|
-
declare function
|
|
487
|
+
declare function ThemeSwitcher(): react_jsx_runtime.JSX.Element
|
|
301
488
|
|
|
302
|
-
declare
|
|
489
|
+
declare const Toaster: ({ ...props }: ToasterProps) => react_jsx_runtime.JSX.Element
|
|
303
490
|
|
|
304
|
-
|
|
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
|
|
307
|
-
|
|
308
|
-
|
|
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
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
}
|
|
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
|
|
317
|
-
declare function
|
|
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
|
|
320
|
-
declare function
|
|
321
|
-
declare function
|
|
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
|
|
325
|
-
declare
|
|
326
|
-
declare
|
|
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
|
-
|
|
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
|
+
}
|