@nswds/app 1.18.3 → 1.19.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 +1713 -1093
- package/dist/index.cjs +3980 -2624
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +239 -132
- package/dist/index.d.ts +239 -132
- package/dist/index.js +3946 -2590
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1694 -1098
- package/dist/styles.css.map +1 -1
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -96,29 +96,31 @@ declare function AvatarFallback({
|
|
|
96
96
|
declare const badgeVariants: (
|
|
97
97
|
props?:
|
|
98
98
|
| ({
|
|
99
|
-
variant?:
|
|
100
|
-
|
|
99
|
+
variant?: 'solid' | 'soft' | 'surface' | 'outline' | null | undefined
|
|
100
|
+
color?:
|
|
101
|
+
| 'primary/grey'
|
|
101
102
|
| 'light'
|
|
102
103
|
| 'primary/white'
|
|
103
104
|
| 'white'
|
|
104
|
-
| '
|
|
105
|
+
| 'grey'
|
|
105
106
|
| 'primary'
|
|
106
107
|
| 'secondary'
|
|
107
108
|
| 'tertiary'
|
|
108
109
|
| 'accent'
|
|
109
|
-
| '
|
|
110
|
-
| 'ghost'
|
|
111
|
-
| 'error'
|
|
110
|
+
| 'danger'
|
|
112
111
|
| 'success'
|
|
113
112
|
| 'warning'
|
|
114
113
|
| 'info'
|
|
115
114
|
| null
|
|
116
115
|
| undefined
|
|
116
|
+
size?: 'default' | 'sm' | 'lg' | null | undefined
|
|
117
117
|
} & class_variance_authority_types.ClassProp)
|
|
118
118
|
| undefined,
|
|
119
119
|
) => string
|
|
120
120
|
declare function Badge({
|
|
121
121
|
variant,
|
|
122
|
+
color,
|
|
123
|
+
size,
|
|
122
124
|
className,
|
|
123
125
|
...props
|
|
124
126
|
}: VariantProps<typeof badgeVariants> &
|
|
@@ -128,24 +130,24 @@ declare const BadgeButton: React__default.ForwardRefExoticComponent<
|
|
|
128
130
|
(
|
|
129
131
|
props?:
|
|
130
132
|
| ({
|
|
131
|
-
variant?:
|
|
132
|
-
|
|
133
|
+
variant?: 'solid' | 'soft' | 'surface' | 'outline' | null | undefined
|
|
134
|
+
color?:
|
|
135
|
+
| 'primary/grey'
|
|
133
136
|
| 'light'
|
|
134
137
|
| 'primary/white'
|
|
135
138
|
| 'white'
|
|
136
|
-
| '
|
|
139
|
+
| 'grey'
|
|
137
140
|
| 'primary'
|
|
138
141
|
| 'secondary'
|
|
139
142
|
| 'tertiary'
|
|
140
143
|
| 'accent'
|
|
141
|
-
| '
|
|
142
|
-
| 'ghost'
|
|
143
|
-
| 'error'
|
|
144
|
+
| 'danger'
|
|
144
145
|
| 'success'
|
|
145
146
|
| 'warning'
|
|
146
147
|
| 'info'
|
|
147
148
|
| null
|
|
148
149
|
| undefined
|
|
150
|
+
size?: 'default' | 'sm' | 'lg' | null | undefined
|
|
149
151
|
} & class_variance_authority_types.ClassProp)
|
|
150
152
|
| undefined,
|
|
151
153
|
) => string
|
|
@@ -170,6 +172,7 @@ declare const BadgeButton: React__default.ForwardRefExoticComponent<
|
|
|
170
172
|
onMouseEnter?: React__default.MouseEventHandler<HTMLAnchorElement>
|
|
171
173
|
onTouchStart?: React__default.TouchEventHandler<HTMLAnchorElement>
|
|
172
174
|
onClick?: React__default.MouseEventHandler<HTMLAnchorElement>
|
|
175
|
+
onNavigate?: (event: { preventDefault: () => void }) => void
|
|
173
176
|
} & Omit<
|
|
174
177
|
React__default.DetailedHTMLProps<
|
|
175
178
|
React__default.AnchorHTMLAttributes<HTMLAnchorElement>,
|
|
@@ -186,44 +189,19 @@ declare const BadgeButton: React__default.ForwardRefExoticComponent<
|
|
|
186
189
|
React__default.RefAttributes<HTMLElement>
|
|
187
190
|
>
|
|
188
191
|
|
|
189
|
-
declare function Breadcrumb({
|
|
190
|
-
...props
|
|
191
|
-
}: React$1.ComponentProps<'nav'>): react_jsx_runtime.JSX.Element
|
|
192
|
-
declare function BreadcrumbList({
|
|
193
|
-
className,
|
|
194
|
-
...props
|
|
195
|
-
}: React$1.ComponentProps<'ol'>): react_jsx_runtime.JSX.Element
|
|
196
|
-
declare function BreadcrumbItem({
|
|
197
|
-
className,
|
|
198
|
-
...props
|
|
199
|
-
}: React$1.ComponentProps<'li'>): react_jsx_runtime.JSX.Element
|
|
200
|
-
declare function BreadcrumbLink({
|
|
201
|
-
asChild,
|
|
202
|
-
className,
|
|
203
|
-
...props
|
|
204
|
-
}: React$1.ComponentProps<'a'> & {
|
|
205
|
-
asChild?: boolean
|
|
206
|
-
}): react_jsx_runtime.JSX.Element
|
|
207
|
-
declare function BreadcrumbPage({
|
|
208
|
-
className,
|
|
209
|
-
...props
|
|
210
|
-
}: React$1.ComponentProps<'span'>): react_jsx_runtime.JSX.Element
|
|
211
|
-
declare function BreadcrumbSeparator({
|
|
212
|
-
children,
|
|
213
|
-
className,
|
|
214
|
-
...props
|
|
215
|
-
}: React$1.ComponentProps<'li'>): react_jsx_runtime.JSX.Element
|
|
216
|
-
declare function BreadcrumbEllipsis({
|
|
217
|
-
className,
|
|
218
|
-
...props
|
|
219
|
-
}: React$1.ComponentProps<'span'>): react_jsx_runtime.JSX.Element
|
|
220
|
-
|
|
221
192
|
type IconProps = React.HTMLAttributes<SVGElement>
|
|
222
193
|
interface LayoutProps {
|
|
223
194
|
children: React.ReactNode
|
|
224
195
|
sitename?: string
|
|
225
196
|
toc?: boolean
|
|
226
197
|
}
|
|
198
|
+
type Format = 'hex' | 'oklch' | 'hsl' | 'rgb'
|
|
199
|
+
type Variant = 'shades' | 'theme'
|
|
200
|
+
type Output = 'css' | 'ts' | 'scss' | 'less' | 'tailwind' | 'json' | 'json-DTFM' | 'js'
|
|
201
|
+
type ViewMode = 'grid' | 'list'
|
|
202
|
+
type DataType = 'css' | 'scss' | 'less' | 'tailwind' | 'json' | 'json-DTFM' | 'js'
|
|
203
|
+
type ThemeCategory = 'brand' | 'aboriginal'
|
|
204
|
+
type ThemeOption = string
|
|
227
205
|
type ColorProperty = {
|
|
228
206
|
value:
|
|
229
207
|
| string
|
|
@@ -234,6 +212,14 @@ type ColorProperty = {
|
|
|
234
212
|
}
|
|
235
213
|
type: 'color'
|
|
236
214
|
}
|
|
215
|
+
type Palette = {
|
|
216
|
+
baseColors: string[]
|
|
217
|
+
name: string
|
|
218
|
+
themeColor?: string
|
|
219
|
+
}
|
|
220
|
+
interface ColourScaleProps {
|
|
221
|
+
colorsToUse: ColorData[]
|
|
222
|
+
}
|
|
237
223
|
type colorCategories = {
|
|
238
224
|
name: string
|
|
239
225
|
colors: {
|
|
@@ -250,9 +236,6 @@ type ColorThemes = {
|
|
|
250
236
|
[key: string]: colorCategories
|
|
251
237
|
}
|
|
252
238
|
}
|
|
253
|
-
type ColorFormat = 'hex' | 'rgb' | 'hsl' | 'oklch'
|
|
254
|
-
type ViewMode = 'grid' | 'list'
|
|
255
|
-
type ThemeOption = string
|
|
256
239
|
type ColorTheme = {
|
|
257
240
|
[key: string]: {
|
|
258
241
|
name: string
|
|
@@ -288,40 +271,6 @@ interface Color {
|
|
|
288
271
|
hsl: string
|
|
289
272
|
name?: string
|
|
290
273
|
}
|
|
291
|
-
type ThemeCategory = 'brand' | 'aboriginal'
|
|
292
|
-
interface ThemeSelectorProps {
|
|
293
|
-
themeCategory: ThemeCategory
|
|
294
|
-
setThemeCategory: (category: ThemeCategory) => void
|
|
295
|
-
primaryColor: string
|
|
296
|
-
setPrimaryColor: (color: string) => void
|
|
297
|
-
accentColor: string
|
|
298
|
-
setAccentColor: (color: string) => void
|
|
299
|
-
availableAccentColors: string[]
|
|
300
|
-
colorThemes: ColorThemes
|
|
301
|
-
}
|
|
302
|
-
interface FormatToggleProps {
|
|
303
|
-
format: ColorFormat
|
|
304
|
-
setFormat: (format: ColorFormat) => void
|
|
305
|
-
}
|
|
306
|
-
type SimpleNode = {
|
|
307
|
-
type: string
|
|
308
|
-
attributes: {
|
|
309
|
-
content?: string
|
|
310
|
-
[key: string]: string | number | boolean | undefined
|
|
311
|
-
}
|
|
312
|
-
children?: SimpleNode[]
|
|
313
|
-
}
|
|
314
|
-
type HeadingNode = {
|
|
315
|
-
level: number
|
|
316
|
-
id: string
|
|
317
|
-
title: string
|
|
318
|
-
children: HeadingNode[]
|
|
319
|
-
}
|
|
320
|
-
type Link$1 = {
|
|
321
|
-
href: string
|
|
322
|
-
title: string
|
|
323
|
-
links?: Link$1[]
|
|
324
|
-
}
|
|
325
274
|
interface ColorData {
|
|
326
275
|
oklch: string
|
|
327
276
|
hex: string
|
|
@@ -329,23 +278,39 @@ interface ColorData {
|
|
|
329
278
|
hsl: string
|
|
330
279
|
[key: string]: string
|
|
331
280
|
}
|
|
332
|
-
type Format = 'hex' | 'oklch' | 'hsl' | 'rgb'
|
|
333
|
-
type Variant = 'shades' | 'theme'
|
|
334
|
-
type Output = 'css' | 'ts' | 'scss' | 'less' | 'tailwind' | 'json' | 'json-DTFM' | 'js'
|
|
335
281
|
interface ColorsDisplayProps {
|
|
336
|
-
|
|
337
|
-
|
|
282
|
+
colorCategories?: colorCategories[]
|
|
283
|
+
baseColors?: string[]
|
|
284
|
+
themeColor?: string | undefined
|
|
338
285
|
colorsToUse: ColorData[]
|
|
339
286
|
paletteName: string
|
|
340
287
|
variant: Variant
|
|
288
|
+
format: Format
|
|
289
|
+
viewMode: ViewMode
|
|
290
|
+
}
|
|
291
|
+
interface ColorSwatchesProps {
|
|
292
|
+
theme: Color[]
|
|
293
|
+
format: Format
|
|
294
|
+
viewMode: ViewMode
|
|
341
295
|
}
|
|
342
296
|
interface ColourOutputProps {
|
|
297
|
+
colorCategories: colorCategories[]
|
|
343
298
|
colorsToUse: ColorData[]
|
|
344
299
|
paletteName: string
|
|
345
300
|
format: Format
|
|
346
301
|
output: Output
|
|
347
302
|
variant: Variant
|
|
348
303
|
}
|
|
304
|
+
interface ThemeSelectorProps {
|
|
305
|
+
themeCategory: ThemeCategory
|
|
306
|
+
setThemeCategory: (category: ThemeCategory) => void
|
|
307
|
+
primaryColor: string
|
|
308
|
+
setPrimaryColor: (color: string) => void
|
|
309
|
+
accentColor: string
|
|
310
|
+
setAccentColor: (color: string) => void
|
|
311
|
+
availableAccentColors: string[]
|
|
312
|
+
colorThemes: ColorThemes
|
|
313
|
+
}
|
|
349
314
|
interface DesignTokensShades {
|
|
350
315
|
[paletteName: string]: {
|
|
351
316
|
[shade: string]: {
|
|
@@ -378,6 +343,45 @@ interface DesignTokensTheme {
|
|
|
378
343
|
>
|
|
379
344
|
}
|
|
380
345
|
}
|
|
346
|
+
interface FormatToggleProps {
|
|
347
|
+
format: Format
|
|
348
|
+
setFormat: (format: Format) => void
|
|
349
|
+
}
|
|
350
|
+
interface DataTypeSelectProps {
|
|
351
|
+
dataType: DataType
|
|
352
|
+
setDataType: (format: DataType) => void
|
|
353
|
+
}
|
|
354
|
+
type TableOfContentsItem = {
|
|
355
|
+
id: string
|
|
356
|
+
children: TableOfContentsItem[]
|
|
357
|
+
title: string
|
|
358
|
+
}
|
|
359
|
+
type TableOfContentsProps = {
|
|
360
|
+
tableOfContents: TableOfContentsItem[]
|
|
361
|
+
}
|
|
362
|
+
interface TocContextType {
|
|
363
|
+
toc: boolean
|
|
364
|
+
setToc: Dispatch<SetStateAction<boolean>>
|
|
365
|
+
}
|
|
366
|
+
type SimpleNode = {
|
|
367
|
+
type: string
|
|
368
|
+
attributes: {
|
|
369
|
+
content?: string
|
|
370
|
+
[key: string]: string | number | boolean | undefined
|
|
371
|
+
}
|
|
372
|
+
children?: SimpleNode[]
|
|
373
|
+
}
|
|
374
|
+
type HeadingNode = {
|
|
375
|
+
level: number
|
|
376
|
+
id: string
|
|
377
|
+
title: string
|
|
378
|
+
children: HeadingNode[]
|
|
379
|
+
}
|
|
380
|
+
type Link$1 = {
|
|
381
|
+
href: string
|
|
382
|
+
title: string
|
|
383
|
+
links?: Link$1[]
|
|
384
|
+
}
|
|
381
385
|
type NavigationLink = {
|
|
382
386
|
title: string
|
|
383
387
|
href: string
|
|
@@ -396,18 +400,6 @@ type SidebarLinkProps = {
|
|
|
396
400
|
onLinkClick?: React.MouseEventHandler<HTMLAnchorElement>
|
|
397
401
|
depth: number
|
|
398
402
|
}
|
|
399
|
-
type TableOfContentsItem = {
|
|
400
|
-
id: string
|
|
401
|
-
children: TableOfContentsItem[]
|
|
402
|
-
title: string
|
|
403
|
-
}
|
|
404
|
-
type TableOfContentsProps = {
|
|
405
|
-
tableOfContents: TableOfContentsItem[]
|
|
406
|
-
}
|
|
407
|
-
interface TocContextType {
|
|
408
|
-
toc: boolean
|
|
409
|
-
setToc: Dispatch<SetStateAction<boolean>>
|
|
410
|
-
}
|
|
411
403
|
interface BreadcrumbsProps {
|
|
412
404
|
homeLabel?: string
|
|
413
405
|
/**
|
|
@@ -436,6 +428,19 @@ interface BreadcrumbsProps {
|
|
|
436
428
|
*/
|
|
437
429
|
demoPath?: string
|
|
438
430
|
}
|
|
431
|
+
type View = 'desktop' | 'tablet' | 'mobile'
|
|
432
|
+
declare const languages: readonly [
|
|
433
|
+
'bash',
|
|
434
|
+
'css',
|
|
435
|
+
'javascript',
|
|
436
|
+
'js',
|
|
437
|
+
'json',
|
|
438
|
+
'jsx',
|
|
439
|
+
'ts',
|
|
440
|
+
'tsx',
|
|
441
|
+
'typescript',
|
|
442
|
+
]
|
|
443
|
+
type Language = (typeof languages)[number]
|
|
439
444
|
type IFrameData = number | IFrameOptions
|
|
440
445
|
interface IFrameOptions {
|
|
441
446
|
height: number
|
|
@@ -452,30 +457,17 @@ interface VariantCodeData<V extends Variants> extends BaseCodeData<'variant'> {
|
|
|
452
457
|
code: CodeVariant<V>
|
|
453
458
|
}
|
|
454
459
|
interface SingleCodeData extends BaseCodeData<'single'> {
|
|
455
|
-
code: Code
|
|
460
|
+
code: Code$1
|
|
456
461
|
}
|
|
457
|
-
declare const languages: readonly [
|
|
458
|
-
'bash',
|
|
459
|
-
'css',
|
|
460
|
-
'javascript',
|
|
461
|
-
'js',
|
|
462
|
-
'json',
|
|
463
|
-
'jsx',
|
|
464
|
-
'ts',
|
|
465
|
-
'tsx',
|
|
466
|
-
'typescript',
|
|
467
|
-
]
|
|
468
|
-
type Language = (typeof languages)[number]
|
|
469
462
|
interface CodeItem {
|
|
470
463
|
fileName: string
|
|
471
464
|
language: Language
|
|
472
465
|
code: string
|
|
473
466
|
}
|
|
474
467
|
type Variants = string
|
|
475
|
-
type CodeVariant<V extends Variants> = Record<V, Code>
|
|
476
|
-
type Code = CodeItem | [CodeItem, ...CodeItem[]]
|
|
468
|
+
type CodeVariant<V extends Variants> = Record<V, Code$1>
|
|
469
|
+
type Code$1 = CodeItem | [CodeItem, ...CodeItem[]]
|
|
477
470
|
type CodeData<V extends Variants = Variants> = SingleCodeData | VariantCodeData<V>
|
|
478
|
-
type View = 'desktop' | 'tablet' | 'mobile'
|
|
479
471
|
interface CodeDemoProps {
|
|
480
472
|
data: CodeData
|
|
481
473
|
}
|
|
@@ -485,6 +477,46 @@ interface CodeHighlightProps extends React.ComponentProps<'pre'> {
|
|
|
485
477
|
withCopy?: boolean
|
|
486
478
|
}
|
|
487
479
|
|
|
480
|
+
declare function BaseColorSwatches({
|
|
481
|
+
baseColors,
|
|
482
|
+
format,
|
|
483
|
+
}: {
|
|
484
|
+
baseColors: string[] | undefined
|
|
485
|
+
format: Format
|
|
486
|
+
}): react_jsx_runtime.JSX.Element
|
|
487
|
+
|
|
488
|
+
declare function Breadcrumb({
|
|
489
|
+
...props
|
|
490
|
+
}: React$1.ComponentProps<'nav'>): react_jsx_runtime.JSX.Element
|
|
491
|
+
declare function BreadcrumbList({
|
|
492
|
+
className,
|
|
493
|
+
...props
|
|
494
|
+
}: React$1.ComponentProps<'ol'>): react_jsx_runtime.JSX.Element
|
|
495
|
+
declare function BreadcrumbItem({
|
|
496
|
+
className,
|
|
497
|
+
...props
|
|
498
|
+
}: React$1.ComponentProps<'li'>): react_jsx_runtime.JSX.Element
|
|
499
|
+
declare function BreadcrumbLink({
|
|
500
|
+
asChild,
|
|
501
|
+
className,
|
|
502
|
+
...props
|
|
503
|
+
}: React$1.ComponentProps<'a'> & {
|
|
504
|
+
asChild?: boolean
|
|
505
|
+
}): react_jsx_runtime.JSX.Element
|
|
506
|
+
declare function BreadcrumbPage({
|
|
507
|
+
className,
|
|
508
|
+
...props
|
|
509
|
+
}: React$1.ComponentProps<'span'>): react_jsx_runtime.JSX.Element
|
|
510
|
+
declare function BreadcrumbSeparator({
|
|
511
|
+
children,
|
|
512
|
+
className,
|
|
513
|
+
...props
|
|
514
|
+
}: React$1.ComponentProps<'li'>): react_jsx_runtime.JSX.Element
|
|
515
|
+
declare function BreadcrumbEllipsis({
|
|
516
|
+
className,
|
|
517
|
+
...props
|
|
518
|
+
}: React$1.ComponentProps<'span'>): react_jsx_runtime.JSX.Element
|
|
519
|
+
|
|
488
520
|
declare function Breadcrumbs({
|
|
489
521
|
homeLabel,
|
|
490
522
|
pathLabels,
|
|
@@ -509,6 +541,7 @@ declare const Link: React__default.ForwardRefExoticComponent<
|
|
|
509
541
|
onMouseEnter?: React__default.MouseEventHandler<HTMLAnchorElement>
|
|
510
542
|
onTouchStart?: React__default.TouchEventHandler<HTMLAnchorElement>
|
|
511
543
|
onClick?: React__default.MouseEventHandler<HTMLAnchorElement>
|
|
544
|
+
onNavigate?: (event: { preventDefault: () => void }) => void
|
|
512
545
|
} & Omit<
|
|
513
546
|
React__default.DetailedHTMLProps<
|
|
514
547
|
React__default.AnchorHTMLAttributes<HTMLAnchorElement>,
|
|
@@ -522,20 +555,18 @@ declare const Link: React__default.ForwardRefExoticComponent<
|
|
|
522
555
|
declare const buttonVariants: (
|
|
523
556
|
props?:
|
|
524
557
|
| ({
|
|
525
|
-
variant?:
|
|
526
|
-
|
|
527
|
-
| 'primary/
|
|
558
|
+
variant?: 'solid' | 'soft' | 'surface' | 'outline' | 'ghost' | null | undefined
|
|
559
|
+
color?:
|
|
560
|
+
| 'primary/grey'
|
|
528
561
|
| 'light'
|
|
529
562
|
| 'primary/white'
|
|
530
563
|
| 'white'
|
|
531
|
-
| '
|
|
564
|
+
| 'grey'
|
|
532
565
|
| 'primary'
|
|
533
566
|
| 'secondary'
|
|
534
567
|
| 'tertiary'
|
|
535
568
|
| 'accent'
|
|
536
|
-
| '
|
|
537
|
-
| 'ghost'
|
|
538
|
-
| 'error'
|
|
569
|
+
| 'danger'
|
|
539
570
|
| null
|
|
540
571
|
| undefined
|
|
541
572
|
size?: 'default' | 'icon' | 'sm' | 'lg' | null | undefined
|
|
@@ -630,6 +661,14 @@ declare function ColorCard({
|
|
|
630
661
|
viewMode,
|
|
631
662
|
}: ColorCardProps): react_jsx_runtime.JSX.Element
|
|
632
663
|
|
|
664
|
+
declare function ColourScale({ colorsToUse }: ColourScaleProps): react_jsx_runtime.JSX.Element
|
|
665
|
+
|
|
666
|
+
declare function ColorSwatches({
|
|
667
|
+
theme,
|
|
668
|
+
format,
|
|
669
|
+
viewMode,
|
|
670
|
+
}: ColorSwatchesProps): react_jsx_runtime.JSX.Element
|
|
671
|
+
|
|
633
672
|
declare function Dialog({
|
|
634
673
|
...props
|
|
635
674
|
}: React$1.ComponentProps<typeof DialogPrimitive.Root>): react_jsx_runtime.JSX.Element
|
|
@@ -894,6 +933,16 @@ interface DynamicFaviconProps {
|
|
|
894
933
|
}
|
|
895
934
|
declare function DynamicFavicon({ lightModeFavicon, darkModeFavicon }: DynamicFaviconProps): null
|
|
896
935
|
|
|
936
|
+
declare const ExpandableSearch: React$1.ForwardRefExoticComponent<
|
|
937
|
+
React$1.HTMLAttributes<HTMLFormElement> & {
|
|
938
|
+
onAction?: (value: string) => void
|
|
939
|
+
defaultValue?: string
|
|
940
|
+
} & React$1.RefAttributes<HTMLFormElement>
|
|
941
|
+
>
|
|
942
|
+
declare const ExpandableSearchField: React$1.ForwardRefExoticComponent<
|
|
943
|
+
React$1.InputHTMLAttributes<HTMLInputElement> & React$1.RefAttributes<HTMLInputElement>
|
|
944
|
+
>
|
|
945
|
+
|
|
897
946
|
declare function FooterSocialLink({
|
|
898
947
|
href,
|
|
899
948
|
icon: Icon,
|
|
@@ -951,15 +1000,18 @@ declare function FormatToggle({
|
|
|
951
1000
|
setFormat,
|
|
952
1001
|
}: FormatToggleProps): react_jsx_runtime.JSX.Element
|
|
953
1002
|
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
declare function
|
|
1003
|
+
type HeadingProps = {
|
|
1004
|
+
level?: 1 | 2 | 3 | 4 | 5 | 6
|
|
1005
|
+
size?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
|
|
1006
|
+
trim?: 'normal' | 'start' | 'end' | 'both'
|
|
1007
|
+
} & React.ComponentPropsWithoutRef<'h1'>
|
|
1008
|
+
declare function Heading({
|
|
960
1009
|
className,
|
|
1010
|
+
trim,
|
|
1011
|
+
size,
|
|
1012
|
+
level,
|
|
961
1013
|
...props
|
|
962
|
-
}:
|
|
1014
|
+
}: HeadingProps): react_jsx_runtime.JSX.Element
|
|
963
1015
|
|
|
964
1016
|
declare function Header({
|
|
965
1017
|
sitename,
|
|
@@ -1455,6 +1507,21 @@ declare const Social: {
|
|
|
1455
1507
|
|
|
1456
1508
|
declare const Toaster: ({ ...props }: ToasterProps) => react_jsx_runtime.JSX.Element
|
|
1457
1509
|
|
|
1510
|
+
declare const theme: {
|
|
1511
|
+
size: {
|
|
1512
|
+
xs: string
|
|
1513
|
+
sm: string
|
|
1514
|
+
md: string
|
|
1515
|
+
lg: string
|
|
1516
|
+
xl: string
|
|
1517
|
+
}
|
|
1518
|
+
}
|
|
1519
|
+
type SpinnerProps = {
|
|
1520
|
+
className?: string
|
|
1521
|
+
size?: keyof typeof theme.size
|
|
1522
|
+
} & React$1.HTMLAttributes<HTMLSpanElement>
|
|
1523
|
+
declare function Spinner({ className, size, ...props }: SpinnerProps): react_jsx_runtime.JSX.Element
|
|
1524
|
+
|
|
1458
1525
|
declare function Switch({
|
|
1459
1526
|
className,
|
|
1460
1527
|
...props
|
|
@@ -1514,6 +1581,24 @@ declare function TabsContent({
|
|
|
1514
1581
|
...props
|
|
1515
1582
|
}: React$1.ComponentProps<typeof TabsPrimitive.Content>): react_jsx_runtime.JSX.Element
|
|
1516
1583
|
|
|
1584
|
+
type TextProps = {
|
|
1585
|
+
size?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
|
|
1586
|
+
trim?: 'normal' | 'start' | 'end' | 'both'
|
|
1587
|
+
} & React.ComponentPropsWithoutRef<'p'>
|
|
1588
|
+
declare function Text({ className, trim, size, ...props }: TextProps): react_jsx_runtime.JSX.Element
|
|
1589
|
+
declare function TextLink({
|
|
1590
|
+
className,
|
|
1591
|
+
...props
|
|
1592
|
+
}: React.ComponentPropsWithoutRef<typeof Link>): react_jsx_runtime.JSX.Element
|
|
1593
|
+
declare function Strong({
|
|
1594
|
+
className,
|
|
1595
|
+
...props
|
|
1596
|
+
}: React.ComponentPropsWithoutRef<'strong'>): react_jsx_runtime.JSX.Element
|
|
1597
|
+
declare function Code({
|
|
1598
|
+
className,
|
|
1599
|
+
...props
|
|
1600
|
+
}: React.ComponentPropsWithoutRef<'code'>): react_jsx_runtime.JSX.Element
|
|
1601
|
+
|
|
1517
1602
|
declare function Textarea({
|
|
1518
1603
|
className,
|
|
1519
1604
|
...props
|
|
@@ -1661,7 +1746,12 @@ declare const getColorValue: (
|
|
|
1661
1746
|
},
|
|
1662
1747
|
colorFormat: 'oklch' | 'rgb' | 'hsl' | 'hex',
|
|
1663
1748
|
) => string
|
|
1749
|
+
declare const createColorData: (baseColors: string[], format: Format) => (string | null)[]
|
|
1664
1750
|
|
|
1751
|
+
declare const brand: Record<string, string[]>
|
|
1752
|
+
declare const aboriginal: Record<string, string[]>
|
|
1753
|
+
declare const semantic: Record<string, string[]>
|
|
1754
|
+
declare const allPalettes: Palette[]
|
|
1665
1755
|
declare const colors: ColorThemes
|
|
1666
1756
|
declare const colorThemes: ColorThemes
|
|
1667
1757
|
|
|
@@ -1680,6 +1770,7 @@ export {
|
|
|
1680
1770
|
Badge,
|
|
1681
1771
|
BadgeButton,
|
|
1682
1772
|
type BaseCodeData,
|
|
1773
|
+
BaseColorSwatches,
|
|
1683
1774
|
Breadcrumb,
|
|
1684
1775
|
BreadcrumbEllipsis,
|
|
1685
1776
|
BreadcrumbItem,
|
|
@@ -1698,7 +1789,7 @@ export {
|
|
|
1698
1789
|
CardHeader,
|
|
1699
1790
|
CardTitle,
|
|
1700
1791
|
Checkbox,
|
|
1701
|
-
|
|
1792
|
+
Code,
|
|
1702
1793
|
type CodeData,
|
|
1703
1794
|
CodeDemo,
|
|
1704
1795
|
type CodeDemoProps,
|
|
@@ -1713,12 +1804,15 @@ export {
|
|
|
1713
1804
|
ColorCard,
|
|
1714
1805
|
type ColorCardProps,
|
|
1715
1806
|
type ColorData,
|
|
1716
|
-
type ColorFormat,
|
|
1717
1807
|
type ColorProperty,
|
|
1808
|
+
ColorSwatches,
|
|
1809
|
+
type ColorSwatchesProps,
|
|
1718
1810
|
type ColorTheme,
|
|
1719
1811
|
type ColorThemes,
|
|
1720
1812
|
type ColorsDisplayProps,
|
|
1721
1813
|
type ColourOutputProps,
|
|
1814
|
+
ColourScale,
|
|
1815
|
+
type ColourScaleProps,
|
|
1722
1816
|
Command,
|
|
1723
1817
|
CommandDialog,
|
|
1724
1818
|
CommandEmpty,
|
|
@@ -1743,6 +1837,8 @@ export {
|
|
|
1743
1837
|
ContextMenuSubContent,
|
|
1744
1838
|
ContextMenuSubTrigger,
|
|
1745
1839
|
ContextMenuTrigger,
|
|
1840
|
+
type DataType,
|
|
1841
|
+
type DataTypeSelectProps,
|
|
1746
1842
|
type DesignTokensShades,
|
|
1747
1843
|
type DesignTokensTheme,
|
|
1748
1844
|
Dialog,
|
|
@@ -1781,6 +1877,8 @@ export {
|
|
|
1781
1877
|
DropdownMenuSubTrigger,
|
|
1782
1878
|
DropdownMenuTrigger,
|
|
1783
1879
|
DynamicFavicon,
|
|
1880
|
+
ExpandableSearch,
|
|
1881
|
+
ExpandableSearchField,
|
|
1784
1882
|
Footer,
|
|
1785
1883
|
FooterAcknowledgement,
|
|
1786
1884
|
FooterLegalLinks,
|
|
@@ -1790,9 +1888,8 @@ export {
|
|
|
1790
1888
|
FormatToggle,
|
|
1791
1889
|
type FormatToggleProps,
|
|
1792
1890
|
GenerateInterpolatedColors,
|
|
1793
|
-
H1,
|
|
1794
|
-
H2,
|
|
1795
1891
|
Header,
|
|
1892
|
+
Heading,
|
|
1796
1893
|
type HeadingNode,
|
|
1797
1894
|
type IFrameData,
|
|
1798
1895
|
type IFrameOptions,
|
|
@@ -1840,6 +1937,7 @@ export {
|
|
|
1840
1937
|
PaginationLink,
|
|
1841
1938
|
PaginationNext,
|
|
1842
1939
|
PaginationPrevious,
|
|
1940
|
+
type Palette,
|
|
1843
1941
|
Popover,
|
|
1844
1942
|
PopoverAnchor,
|
|
1845
1943
|
PopoverContent,
|
|
@@ -1884,6 +1982,8 @@ export {
|
|
|
1884
1982
|
Skeleton,
|
|
1885
1983
|
Slider,
|
|
1886
1984
|
Social,
|
|
1985
|
+
Spinner,
|
|
1986
|
+
Strong,
|
|
1887
1987
|
type StructuredColor,
|
|
1888
1988
|
Switch,
|
|
1889
1989
|
Table,
|
|
@@ -1901,6 +2001,8 @@ export {
|
|
|
1901
2001
|
TabsContent,
|
|
1902
2002
|
TabsList,
|
|
1903
2003
|
TabsTrigger,
|
|
2004
|
+
Text,
|
|
2005
|
+
TextLink,
|
|
1904
2006
|
Textarea,
|
|
1905
2007
|
type ThemeCategory,
|
|
1906
2008
|
type ThemeOption,
|
|
@@ -1927,8 +2029,11 @@ export {
|
|
|
1927
2029
|
type ViewMode,
|
|
1928
2030
|
ViewToggle,
|
|
1929
2031
|
type ViewToggleProps,
|
|
2032
|
+
aboriginal,
|
|
1930
2033
|
addStartStopToColorArray,
|
|
2034
|
+
allPalettes,
|
|
1931
2035
|
badgeVariants,
|
|
2036
|
+
brand,
|
|
1932
2037
|
buttonVariants,
|
|
1933
2038
|
camelCase,
|
|
1934
2039
|
cn,
|
|
@@ -1937,6 +2042,7 @@ export {
|
|
|
1937
2042
|
colorThemes,
|
|
1938
2043
|
colors,
|
|
1939
2044
|
createColorArray,
|
|
2045
|
+
createColorData,
|
|
1940
2046
|
darkenColor,
|
|
1941
2047
|
domToSimple,
|
|
1942
2048
|
generateColorThemes,
|
|
@@ -1953,6 +2059,7 @@ export {
|
|
|
1953
2059
|
oklchConverter,
|
|
1954
2060
|
renderColorOutput,
|
|
1955
2061
|
renderColorOutputToDTFM,
|
|
2062
|
+
semantic,
|
|
1956
2063
|
shades,
|
|
1957
2064
|
themeIndices,
|
|
1958
2065
|
themeTokens,
|