@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/globals.css +439 -193
- package/dist/index.cjs +4439 -958
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +647 -291
- package/dist/index.d.ts +647 -291
- package/dist/index.js +4376 -885
- package/dist/index.js.map +1 -1
- package/dist/styles.css +519 -219
- package/dist/styles.css.map +1 -1
- package/dist/styles.d.cts +1 -2
- package/dist/styles.d.ts +1 -2
- package/package.json +3 -3
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
|
|
10
|
-
import * as
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import
|
|
14
|
-
import * as
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
declare function
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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
|
-
|
|
37
|
-
|
|
38
|
-
|
|
94
|
+
children: React.ReactNode
|
|
95
|
+
sitename?: string
|
|
96
|
+
toc?: boolean
|
|
39
97
|
}
|
|
40
98
|
type ColorProperty = {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
type
|
|
64
|
-
type
|
|
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
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
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
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
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
|
-
|
|
91
|
-
|
|
150
|
+
viewMode: ViewMode
|
|
151
|
+
setViewMode: (mode: ViewMode) => void
|
|
92
152
|
}
|
|
93
153
|
interface Color {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
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
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
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
|
-
|
|
114
|
-
|
|
173
|
+
format: ColorFormat
|
|
174
|
+
setFormat: (format: ColorFormat) => void
|
|
115
175
|
}
|
|
116
176
|
type SimpleNode = {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
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
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
}
|
|
185
|
+
level: number
|
|
186
|
+
id: string
|
|
187
|
+
title: string
|
|
188
|
+
children: HeadingNode[]
|
|
189
|
+
}
|
|
130
190
|
type Link = {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
}
|
|
191
|
+
href: string
|
|
192
|
+
title: string
|
|
193
|
+
links?: Link[]
|
|
194
|
+
}
|
|
135
195
|
interface ColorData {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
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
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
206
|
+
baseColors: string[]
|
|
207
|
+
themeColor: string | undefined
|
|
208
|
+
colorsToUse: ColorData[]
|
|
209
|
+
paletteName: string
|
|
210
|
+
variant: Variant
|
|
151
211
|
}
|
|
152
212
|
interface ColourOutputProps {
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
213
|
+
colorsToUse: ColorData[]
|
|
214
|
+
paletteName: string
|
|
215
|
+
format: Format
|
|
216
|
+
output: Output
|
|
217
|
+
variant: Variant
|
|
158
218
|
}
|
|
159
219
|
interface DesignTokensShades {
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
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
|
-
|
|
173
|
-
|
|
174
|
-
|
|
234
|
+
colorSpace: string
|
|
235
|
+
channels: number[]
|
|
236
|
+
alpha: number
|
|
175
237
|
}
|
|
176
238
|
interface DesignTokensTheme {
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
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
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
}
|
|
252
|
+
title: string
|
|
253
|
+
links: {
|
|
254
|
+
title: string
|
|
255
|
+
href: string
|
|
256
|
+
}[]
|
|
257
|
+
}
|
|
193
258
|
|
|
194
|
-
declare function ColorCard({
|
|
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({
|
|
270
|
+
declare function Collapsible({
|
|
271
|
+
...props
|
|
272
|
+
}: React.ComponentProps<typeof CollapsiblePrimitive.Root>): react_jsx_runtime.JSX.Element
|
|
197
273
|
|
|
198
274
|
interface DynamicFaviconProps {
|
|
199
|
-
|
|
200
|
-
|
|
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(
|
|
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({
|
|
299
|
+
declare function FormatToggle({
|
|
300
|
+
format,
|
|
301
|
+
setFormat,
|
|
302
|
+
}: FormatToggleProps): react_jsx_runtime.JSX.Element
|
|
207
303
|
|
|
208
304
|
declare const Icons: {
|
|
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
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
declare function Label({
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
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
|
-
|
|
378
|
+
navigation: NavigationSection[]
|
|
276
379
|
}
|
|
277
|
-
declare function PrevNextLinks({
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
declare function
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
declare function
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
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
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
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
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
}
|
|
454
|
+
id: string
|
|
455
|
+
children: TableOfContentsItem[]
|
|
456
|
+
title: string
|
|
457
|
+
}
|
|
311
458
|
type TableOfContentsProps = {
|
|
312
|
-
|
|
313
|
-
}
|
|
314
|
-
declare function TableOfContents({
|
|
459
|
+
tableOfContents: TableOfContentsItem[]
|
|
460
|
+
}
|
|
461
|
+
declare function TableOfContents({
|
|
462
|
+
tableOfContents,
|
|
463
|
+
}: TableOfContentsProps): react_jsx_runtime.JSX.Element
|
|
315
464
|
|
|
316
|
-
declare function Tabs({
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
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({
|
|
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
|
-
|
|
328
|
-
|
|
329
|
-
|
|
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: (
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
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({
|
|
338
|
-
|
|
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({
|
|
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
|
-
|
|
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
|
+
}
|