@sourceful-energy/ui 0.1.27 → 0.1.29
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.mts +164 -11
- package/dist/index.d.ts +164 -11
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +11 -11
package/dist/index.d.mts
CHANGED
|
@@ -357,6 +357,119 @@ interface LenisProviderProps {
|
|
|
357
357
|
}
|
|
358
358
|
declare function LenisProvider({ children }: LenisProviderProps): react_jsx_runtime.JSX.Element;
|
|
359
359
|
|
|
360
|
+
type Theme = "base" | "elevated" | (string & {});
|
|
361
|
+
type FontMode = "default" | "dyslexic";
|
|
362
|
+
type ColorMode = "default" | "deuteranopia" | "protanopia" | "tritanopia" | "achromatopsia";
|
|
363
|
+
type SpacingMode = "default" | "comfortable";
|
|
364
|
+
type FocusMode = "default" | "enhanced";
|
|
365
|
+
interface DesignSystemContextValue {
|
|
366
|
+
theme: Theme;
|
|
367
|
+
setTheme: (theme: Theme) => void;
|
|
368
|
+
fontMode: FontMode;
|
|
369
|
+
setFontMode: (mode: FontMode) => void;
|
|
370
|
+
colorMode: ColorMode;
|
|
371
|
+
setColorMode: (mode: ColorMode) => void;
|
|
372
|
+
spacingMode: SpacingMode;
|
|
373
|
+
setSpacingMode: (mode: SpacingMode) => void;
|
|
374
|
+
focusMode: FocusMode;
|
|
375
|
+
setFocusMode: (mode: FocusMode) => void;
|
|
376
|
+
}
|
|
377
|
+
/**
|
|
378
|
+
* Hook to access and control the visual theme (base, elevated, etc.)
|
|
379
|
+
* Theme is typically set by the developer at app initialization.
|
|
380
|
+
*/
|
|
381
|
+
declare function useDesignSystemTheme(): {
|
|
382
|
+
theme: Theme;
|
|
383
|
+
setTheme: (theme: Theme) => void;
|
|
384
|
+
};
|
|
385
|
+
/**
|
|
386
|
+
* Hook to access and control dyslexic font mode.
|
|
387
|
+
*/
|
|
388
|
+
declare function useFontMode(): {
|
|
389
|
+
fontMode: FontMode;
|
|
390
|
+
setFontMode: (mode: FontMode) => void;
|
|
391
|
+
};
|
|
392
|
+
/**
|
|
393
|
+
* Hook to access and control color blind mode.
|
|
394
|
+
*/
|
|
395
|
+
declare function useColorMode(): {
|
|
396
|
+
colorMode: ColorMode;
|
|
397
|
+
setColorMode: (mode: ColorMode) => void;
|
|
398
|
+
};
|
|
399
|
+
/**
|
|
400
|
+
* Hook to access and control text spacing mode (WCAG 1.4.12).
|
|
401
|
+
*/
|
|
402
|
+
declare function useSpacingMode(): {
|
|
403
|
+
spacingMode: SpacingMode;
|
|
404
|
+
setSpacingMode: (mode: SpacingMode) => void;
|
|
405
|
+
};
|
|
406
|
+
/**
|
|
407
|
+
* Hook to access and control enhanced focus mode (WCAG 2.4.7).
|
|
408
|
+
*/
|
|
409
|
+
declare function useFocusMode(): {
|
|
410
|
+
focusMode: FocusMode;
|
|
411
|
+
setFocusMode: (mode: FocusMode) => void;
|
|
412
|
+
};
|
|
413
|
+
/**
|
|
414
|
+
* Hook to access all accessibility settings at once.
|
|
415
|
+
* Useful for building accessibility settings panels.
|
|
416
|
+
*/
|
|
417
|
+
declare function useAccessibility(): {
|
|
418
|
+
fontMode: FontMode;
|
|
419
|
+
setFontMode: (mode: FontMode) => void;
|
|
420
|
+
colorMode: ColorMode;
|
|
421
|
+
setColorMode: (mode: ColorMode) => void;
|
|
422
|
+
spacingMode: SpacingMode;
|
|
423
|
+
setSpacingMode: (mode: SpacingMode) => void;
|
|
424
|
+
focusMode: FocusMode;
|
|
425
|
+
setFocusMode: (mode: FocusMode) => void;
|
|
426
|
+
};
|
|
427
|
+
/**
|
|
428
|
+
* Hook to access the full design system context.
|
|
429
|
+
*/
|
|
430
|
+
declare function useDesignSystem(): DesignSystemContextValue;
|
|
431
|
+
interface DesignSystemProviderProps {
|
|
432
|
+
children: React$1.ReactNode;
|
|
433
|
+
/**
|
|
434
|
+
* Visual theme for the application.
|
|
435
|
+
* Typically set by the developer at app initialization.
|
|
436
|
+
* @default "base"
|
|
437
|
+
*/
|
|
438
|
+
defaultTheme?: Theme;
|
|
439
|
+
/**
|
|
440
|
+
* Default font mode for accessibility.
|
|
441
|
+
* @default "default"
|
|
442
|
+
*/
|
|
443
|
+
defaultFontMode?: FontMode;
|
|
444
|
+
/**
|
|
445
|
+
* Default color mode for color blind users.
|
|
446
|
+
* @default "default"
|
|
447
|
+
*/
|
|
448
|
+
defaultColorMode?: ColorMode;
|
|
449
|
+
/**
|
|
450
|
+
* Default text spacing mode for readability.
|
|
451
|
+
* @default "default"
|
|
452
|
+
*/
|
|
453
|
+
defaultSpacingMode?: SpacingMode;
|
|
454
|
+
/**
|
|
455
|
+
* Default focus indicator mode for keyboard navigation.
|
|
456
|
+
* @default "default"
|
|
457
|
+
*/
|
|
458
|
+
defaultFocusMode?: FocusMode;
|
|
459
|
+
/**
|
|
460
|
+
* localStorage key for persisting user accessibility preferences.
|
|
461
|
+
* Theme is NOT persisted (it's app config, not user preference).
|
|
462
|
+
* @default "sourceful-a11y"
|
|
463
|
+
*/
|
|
464
|
+
storageKey?: string;
|
|
465
|
+
/**
|
|
466
|
+
* Disable localStorage persistence (useful for testing).
|
|
467
|
+
* @default false
|
|
468
|
+
*/
|
|
469
|
+
disableStorage?: boolean;
|
|
470
|
+
}
|
|
471
|
+
declare function DesignSystemProvider({ children, defaultTheme, defaultFontMode, defaultColorMode, defaultSpacingMode, defaultFocusMode, storageKey, disableStorage, }: DesignSystemProviderProps): react_jsx_runtime.JSX.Element;
|
|
472
|
+
|
|
360
473
|
/**
|
|
361
474
|
* Pattern definitions for the PixelGrid component.
|
|
362
475
|
*
|
|
@@ -370,7 +483,7 @@ declare function LenisProvider({ children }: LenisProviderProps): react_jsx_runt
|
|
|
370
483
|
* 3 4 5
|
|
371
484
|
* 6 7 8
|
|
372
485
|
*/
|
|
373
|
-
type PatternType = "solo-center" | "solo-tl" | "solo-br" | "line-h-top" | "line-h-mid" | "line-h-bot" | "line-v-left" | "line-v-mid" | "line-v-right" | "line-diag-1" | "line-diag-2" | "corners-sync" | "corners-only" | "L-tl" | "L-tr" | "L-bl" | "L-br" | "T-top" | "T-bot" | "T-left" | "T-right" | "duo-h" | "duo-v" | "duo-diag" | "frame" | "frame-sync" | "plus-hollow" | "sparse-1" | "sparse-2" | "sparse-3";
|
|
486
|
+
type PatternType$4 = "solo-center" | "solo-tl" | "solo-br" | "line-h-top" | "line-h-mid" | "line-h-bot" | "line-v-left" | "line-v-mid" | "line-v-right" | "line-diag-1" | "line-diag-2" | "corners-sync" | "corners-only" | "L-tl" | "L-tr" | "L-bl" | "L-br" | "T-top" | "T-bot" | "T-left" | "T-right" | "duo-h" | "duo-v" | "duo-diag" | "frame" | "frame-sync" | "plus-hollow" | "sparse-1" | "sparse-2" | "sparse-3";
|
|
374
487
|
interface PatternFrame {
|
|
375
488
|
activePixels: number[];
|
|
376
489
|
duration?: number;
|
|
@@ -386,39 +499,75 @@ interface PatternDefinition {
|
|
|
386
499
|
* Each pattern is an array of frames, where each frame specifies which pixels are active.
|
|
387
500
|
* Animation interpolates between frames for smooth transitions.
|
|
388
501
|
*/
|
|
389
|
-
declare const patterns: Record<PatternType, PatternDefinition>;
|
|
390
|
-
declare const patternNames: PatternType[];
|
|
391
|
-
declare const patternCategories: Record<string, PatternType[]>;
|
|
502
|
+
declare const patterns: Record<PatternType$4, PatternDefinition>;
|
|
503
|
+
declare const patternNames: PatternType$4[];
|
|
504
|
+
declare const patternCategories: Record<string, PatternType$4[]>;
|
|
505
|
+
|
|
506
|
+
/**
|
|
507
|
+
* Pattern definitions for the 4x4 PixelGrid component.
|
|
508
|
+
*
|
|
509
|
+
* Grid position reference (4x4):
|
|
510
|
+
* 0 1 2 3 (row 0)
|
|
511
|
+
* 4 5 6 7 (row 1)
|
|
512
|
+
* 8 9 10 11 (row 2)
|
|
513
|
+
* 12 13 14 15 (row 3)
|
|
514
|
+
*/
|
|
515
|
+
type PatternType$3 = "solo-center" | "solo-tl" | "solo-br" | "line-h-top" | "line-h-mid" | "line-h-bot" | "line-v-left" | "line-v-mid" | "line-v-right" | "line-diag-1" | "line-diag-2" | "corners-sync" | "corners-only" | "frame" | "frame-sync" | "plus-hollow" | "square-inner" | "square-outer" | "cross-full" | "cross-spin";
|
|
516
|
+
|
|
517
|
+
/**
|
|
518
|
+
* Pattern definitions for the 6x6 PixelGrid component.
|
|
519
|
+
*
|
|
520
|
+
* Grid position reference (6x6):
|
|
521
|
+
* 0 1 2 3 4 5 (row 0)
|
|
522
|
+
* 6 7 8 9 10 11 (row 1)
|
|
523
|
+
* 12 13 14 15 16 17 (row 2)
|
|
524
|
+
* 18 19 20 21 22 23 (row 3)
|
|
525
|
+
* 24 25 26 27 28 29 (row 4)
|
|
526
|
+
* 30 31 32 33 34 35 (row 5)
|
|
527
|
+
*/
|
|
528
|
+
type PatternType$2 = "solo-center" | "solo-tl" | "solo-br" | "line-h-top" | "line-h-mid" | "line-h-bot" | "line-v-left" | "line-v-mid" | "line-v-right" | "line-diag-1" | "line-diag-2" | "corners-sync" | "corners-only" | "frame" | "frame-sync" | "plus-hollow" | "ripple" | "spiral" | "checkerboard" | "diamond" | "wave";
|
|
392
529
|
|
|
393
530
|
type PixelGridColor = "blue" | "pink" | "green";
|
|
394
531
|
type PixelGridSpeed = "slow" | "normal" | "fast";
|
|
395
532
|
type PixelGridSize = "sm" | "md" | "lg";
|
|
533
|
+
type PixelGridDimension = 3 | 4 | 6;
|
|
534
|
+
|
|
535
|
+
type PatternType$1 = PatternType$4 | PatternType$3 | PatternType$2;
|
|
396
536
|
interface PixelGridProps {
|
|
397
537
|
/** The animation pattern to display */
|
|
398
|
-
pattern: PatternType;
|
|
538
|
+
pattern: PatternType$1;
|
|
539
|
+
/** Grid dimension - 3x3, 4x4, or 6x6 */
|
|
540
|
+
dimension?: PixelGridDimension;
|
|
399
541
|
/** Color theme - blue/cyan or pink/coral or green */
|
|
400
542
|
color?: PixelGridColor;
|
|
401
543
|
/** Animation speed */
|
|
402
544
|
speed?: PixelGridSpeed;
|
|
403
545
|
/** Grid size */
|
|
404
546
|
size?: PixelGridSize;
|
|
405
|
-
/**
|
|
547
|
+
/** Whether to animate (false = static display) */
|
|
548
|
+
animated?: boolean;
|
|
549
|
+
/** Pause the animation (only applies when animated=true) */
|
|
406
550
|
paused?: boolean;
|
|
407
551
|
/** Additional className for the container */
|
|
408
552
|
className?: string;
|
|
409
553
|
/** Show pattern label below the grid */
|
|
410
554
|
showLabel?: boolean;
|
|
411
555
|
}
|
|
412
|
-
declare function PixelGrid({ pattern, color, speed, size, paused, className, showLabel, }: PixelGridProps): react_jsx_runtime.JSX.Element;
|
|
556
|
+
declare function PixelGrid({ pattern, dimension, color, speed, size, animated, paused, className, showLabel, }: PixelGridProps): react_jsx_runtime.JSX.Element | null;
|
|
413
557
|
declare namespace PixelGrid {
|
|
414
558
|
var displayName: string;
|
|
415
559
|
}
|
|
416
560
|
|
|
561
|
+
type PatternType = PatternType$4 | PatternType$3 | PatternType$2;
|
|
417
562
|
interface PixelGridShowcaseProps {
|
|
563
|
+
/** Grid dimension - 3x3, 4x4, or 6x6 */
|
|
564
|
+
dimension?: PixelGridDimension;
|
|
418
565
|
/** Color theme for all grids */
|
|
419
566
|
color?: PixelGridColor;
|
|
420
567
|
/** Size for all grids */
|
|
421
568
|
size?: PixelGridSize;
|
|
569
|
+
/** Whether to animate (false = static display) */
|
|
570
|
+
animated?: boolean;
|
|
422
571
|
/** Show category headers */
|
|
423
572
|
showCategories?: boolean;
|
|
424
573
|
/** Filter to specific categories */
|
|
@@ -426,7 +575,7 @@ interface PixelGridShowcaseProps {
|
|
|
426
575
|
/** Additional className */
|
|
427
576
|
className?: string;
|
|
428
577
|
}
|
|
429
|
-
declare function PixelGridShowcase({ color, size, showCategories, categories, className, }: PixelGridShowcaseProps): react_jsx_runtime.JSX.Element;
|
|
578
|
+
declare function PixelGridShowcase({ dimension, color, size, animated, showCategories, categories, className, }: PixelGridShowcaseProps): react_jsx_runtime.JSX.Element;
|
|
430
579
|
declare namespace PixelGridShowcase {
|
|
431
580
|
var displayName: string;
|
|
432
581
|
}
|
|
@@ -435,10 +584,12 @@ declare namespace PixelGridShowcase {
|
|
|
435
584
|
*/
|
|
436
585
|
interface PixelGridColorComparisonProps {
|
|
437
586
|
pattern: PatternType;
|
|
587
|
+
dimension?: PixelGridDimension;
|
|
438
588
|
size?: PixelGridSize;
|
|
589
|
+
animated?: boolean;
|
|
439
590
|
className?: string;
|
|
440
591
|
}
|
|
441
|
-
declare function PixelGridColorComparison({ pattern, size, className, }: PixelGridColorComparisonProps): react_jsx_runtime.JSX.Element;
|
|
592
|
+
declare function PixelGridColorComparison({ pattern, dimension, size, animated, className, }: PixelGridColorComparisonProps): react_jsx_runtime.JSX.Element;
|
|
442
593
|
declare namespace PixelGridColorComparison {
|
|
443
594
|
var displayName: string;
|
|
444
595
|
}
|
|
@@ -447,12 +598,14 @@ declare namespace PixelGridColorComparison {
|
|
|
447
598
|
*/
|
|
448
599
|
interface PixelGridSizeComparisonProps {
|
|
449
600
|
pattern: PatternType;
|
|
601
|
+
dimension?: PixelGridDimension;
|
|
450
602
|
color?: PixelGridColor;
|
|
603
|
+
animated?: boolean;
|
|
451
604
|
className?: string;
|
|
452
605
|
}
|
|
453
|
-
declare function PixelGridSizeComparison({ pattern, color, className, }: PixelGridSizeComparisonProps): react_jsx_runtime.JSX.Element;
|
|
606
|
+
declare function PixelGridSizeComparison({ pattern, dimension, color, animated, className, }: PixelGridSizeComparisonProps): react_jsx_runtime.JSX.Element;
|
|
454
607
|
declare namespace PixelGridSizeComparison {
|
|
455
608
|
var displayName: string;
|
|
456
609
|
}
|
|
457
610
|
|
|
458
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, Badge, type BreadcrumbItem, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Input, Label, LenisProvider, type PatternDefinition, type PatternFrame, type PatternType, PixelGrid, type PixelGridColor, PixelGridColorComparison, type PixelGridColorComparisonProps, type PixelGridProps, PixelGridShowcase, type PixelGridShowcaseProps, type PixelGridSize, PixelGridSizeComparison, type PixelGridSizeComparisonProps, type PixelGridSpeed, Progress, RadioGroup, RadioGroupItem, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SideMenu, type SideMenuItem, type SideMenuProps, type SideMenuSection, type SimpleTab, SimpleTabs, SimpleTabsContent, SimpleTabsList, type SimpleTabsListProps, SimpleTabsPanel, type SimpleTabsPanelProps, type SimpleTabsProps, SimpleTabsRoot, type SimpleTabsRootProps, SimpleTabsTrigger, type SimpleTabsTriggerProps, Skeleton, Slider, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TopMenu, type TopMenuProps, TopMenuUser, TopMenuUserItem, type TopMenuUserItemProps, type TopMenuUserProps, TopMenuUserSection, badgeVariants, buttonVariants, cn, patternCategories, patternNames, patterns };
|
|
611
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, Badge, type BreadcrumbItem, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, type ColorMode, DesignSystemProvider, type DesignSystemProviderProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type FocusMode, type FontMode, Input, Label, LenisProvider, type PatternDefinition, type PatternFrame, type PatternType$1 as PatternType, PixelGrid, type PixelGridColor, PixelGridColorComparison, type PixelGridColorComparisonProps, type PixelGridProps, PixelGridShowcase, type PixelGridShowcaseProps, type PixelGridSize, PixelGridSizeComparison, type PixelGridSizeComparisonProps, type PixelGridSpeed, Progress, RadioGroup, RadioGroupItem, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SideMenu, type SideMenuItem, type SideMenuProps, type SideMenuSection, type SimpleTab, SimpleTabs, SimpleTabsContent, SimpleTabsList, type SimpleTabsListProps, SimpleTabsPanel, type SimpleTabsPanelProps, type SimpleTabsProps, SimpleTabsRoot, type SimpleTabsRootProps, SimpleTabsTrigger, type SimpleTabsTriggerProps, Skeleton, Slider, type SpacingMode, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type Theme, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TopMenu, type TopMenuProps, TopMenuUser, TopMenuUserItem, type TopMenuUserItemProps, type TopMenuUserProps, TopMenuUserSection, badgeVariants, buttonVariants, cn, patternCategories, patternNames, patterns, useAccessibility, useColorMode, useDesignSystem, useDesignSystemTheme, useFocusMode, useFontMode, useSpacingMode };
|
package/dist/index.d.ts
CHANGED
|
@@ -357,6 +357,119 @@ interface LenisProviderProps {
|
|
|
357
357
|
}
|
|
358
358
|
declare function LenisProvider({ children }: LenisProviderProps): react_jsx_runtime.JSX.Element;
|
|
359
359
|
|
|
360
|
+
type Theme = "base" | "elevated" | (string & {});
|
|
361
|
+
type FontMode = "default" | "dyslexic";
|
|
362
|
+
type ColorMode = "default" | "deuteranopia" | "protanopia" | "tritanopia" | "achromatopsia";
|
|
363
|
+
type SpacingMode = "default" | "comfortable";
|
|
364
|
+
type FocusMode = "default" | "enhanced";
|
|
365
|
+
interface DesignSystemContextValue {
|
|
366
|
+
theme: Theme;
|
|
367
|
+
setTheme: (theme: Theme) => void;
|
|
368
|
+
fontMode: FontMode;
|
|
369
|
+
setFontMode: (mode: FontMode) => void;
|
|
370
|
+
colorMode: ColorMode;
|
|
371
|
+
setColorMode: (mode: ColorMode) => void;
|
|
372
|
+
spacingMode: SpacingMode;
|
|
373
|
+
setSpacingMode: (mode: SpacingMode) => void;
|
|
374
|
+
focusMode: FocusMode;
|
|
375
|
+
setFocusMode: (mode: FocusMode) => void;
|
|
376
|
+
}
|
|
377
|
+
/**
|
|
378
|
+
* Hook to access and control the visual theme (base, elevated, etc.)
|
|
379
|
+
* Theme is typically set by the developer at app initialization.
|
|
380
|
+
*/
|
|
381
|
+
declare function useDesignSystemTheme(): {
|
|
382
|
+
theme: Theme;
|
|
383
|
+
setTheme: (theme: Theme) => void;
|
|
384
|
+
};
|
|
385
|
+
/**
|
|
386
|
+
* Hook to access and control dyslexic font mode.
|
|
387
|
+
*/
|
|
388
|
+
declare function useFontMode(): {
|
|
389
|
+
fontMode: FontMode;
|
|
390
|
+
setFontMode: (mode: FontMode) => void;
|
|
391
|
+
};
|
|
392
|
+
/**
|
|
393
|
+
* Hook to access and control color blind mode.
|
|
394
|
+
*/
|
|
395
|
+
declare function useColorMode(): {
|
|
396
|
+
colorMode: ColorMode;
|
|
397
|
+
setColorMode: (mode: ColorMode) => void;
|
|
398
|
+
};
|
|
399
|
+
/**
|
|
400
|
+
* Hook to access and control text spacing mode (WCAG 1.4.12).
|
|
401
|
+
*/
|
|
402
|
+
declare function useSpacingMode(): {
|
|
403
|
+
spacingMode: SpacingMode;
|
|
404
|
+
setSpacingMode: (mode: SpacingMode) => void;
|
|
405
|
+
};
|
|
406
|
+
/**
|
|
407
|
+
* Hook to access and control enhanced focus mode (WCAG 2.4.7).
|
|
408
|
+
*/
|
|
409
|
+
declare function useFocusMode(): {
|
|
410
|
+
focusMode: FocusMode;
|
|
411
|
+
setFocusMode: (mode: FocusMode) => void;
|
|
412
|
+
};
|
|
413
|
+
/**
|
|
414
|
+
* Hook to access all accessibility settings at once.
|
|
415
|
+
* Useful for building accessibility settings panels.
|
|
416
|
+
*/
|
|
417
|
+
declare function useAccessibility(): {
|
|
418
|
+
fontMode: FontMode;
|
|
419
|
+
setFontMode: (mode: FontMode) => void;
|
|
420
|
+
colorMode: ColorMode;
|
|
421
|
+
setColorMode: (mode: ColorMode) => void;
|
|
422
|
+
spacingMode: SpacingMode;
|
|
423
|
+
setSpacingMode: (mode: SpacingMode) => void;
|
|
424
|
+
focusMode: FocusMode;
|
|
425
|
+
setFocusMode: (mode: FocusMode) => void;
|
|
426
|
+
};
|
|
427
|
+
/**
|
|
428
|
+
* Hook to access the full design system context.
|
|
429
|
+
*/
|
|
430
|
+
declare function useDesignSystem(): DesignSystemContextValue;
|
|
431
|
+
interface DesignSystemProviderProps {
|
|
432
|
+
children: React$1.ReactNode;
|
|
433
|
+
/**
|
|
434
|
+
* Visual theme for the application.
|
|
435
|
+
* Typically set by the developer at app initialization.
|
|
436
|
+
* @default "base"
|
|
437
|
+
*/
|
|
438
|
+
defaultTheme?: Theme;
|
|
439
|
+
/**
|
|
440
|
+
* Default font mode for accessibility.
|
|
441
|
+
* @default "default"
|
|
442
|
+
*/
|
|
443
|
+
defaultFontMode?: FontMode;
|
|
444
|
+
/**
|
|
445
|
+
* Default color mode for color blind users.
|
|
446
|
+
* @default "default"
|
|
447
|
+
*/
|
|
448
|
+
defaultColorMode?: ColorMode;
|
|
449
|
+
/**
|
|
450
|
+
* Default text spacing mode for readability.
|
|
451
|
+
* @default "default"
|
|
452
|
+
*/
|
|
453
|
+
defaultSpacingMode?: SpacingMode;
|
|
454
|
+
/**
|
|
455
|
+
* Default focus indicator mode for keyboard navigation.
|
|
456
|
+
* @default "default"
|
|
457
|
+
*/
|
|
458
|
+
defaultFocusMode?: FocusMode;
|
|
459
|
+
/**
|
|
460
|
+
* localStorage key for persisting user accessibility preferences.
|
|
461
|
+
* Theme is NOT persisted (it's app config, not user preference).
|
|
462
|
+
* @default "sourceful-a11y"
|
|
463
|
+
*/
|
|
464
|
+
storageKey?: string;
|
|
465
|
+
/**
|
|
466
|
+
* Disable localStorage persistence (useful for testing).
|
|
467
|
+
* @default false
|
|
468
|
+
*/
|
|
469
|
+
disableStorage?: boolean;
|
|
470
|
+
}
|
|
471
|
+
declare function DesignSystemProvider({ children, defaultTheme, defaultFontMode, defaultColorMode, defaultSpacingMode, defaultFocusMode, storageKey, disableStorage, }: DesignSystemProviderProps): react_jsx_runtime.JSX.Element;
|
|
472
|
+
|
|
360
473
|
/**
|
|
361
474
|
* Pattern definitions for the PixelGrid component.
|
|
362
475
|
*
|
|
@@ -370,7 +483,7 @@ declare function LenisProvider({ children }: LenisProviderProps): react_jsx_runt
|
|
|
370
483
|
* 3 4 5
|
|
371
484
|
* 6 7 8
|
|
372
485
|
*/
|
|
373
|
-
type PatternType = "solo-center" | "solo-tl" | "solo-br" | "line-h-top" | "line-h-mid" | "line-h-bot" | "line-v-left" | "line-v-mid" | "line-v-right" | "line-diag-1" | "line-diag-2" | "corners-sync" | "corners-only" | "L-tl" | "L-tr" | "L-bl" | "L-br" | "T-top" | "T-bot" | "T-left" | "T-right" | "duo-h" | "duo-v" | "duo-diag" | "frame" | "frame-sync" | "plus-hollow" | "sparse-1" | "sparse-2" | "sparse-3";
|
|
486
|
+
type PatternType$4 = "solo-center" | "solo-tl" | "solo-br" | "line-h-top" | "line-h-mid" | "line-h-bot" | "line-v-left" | "line-v-mid" | "line-v-right" | "line-diag-1" | "line-diag-2" | "corners-sync" | "corners-only" | "L-tl" | "L-tr" | "L-bl" | "L-br" | "T-top" | "T-bot" | "T-left" | "T-right" | "duo-h" | "duo-v" | "duo-diag" | "frame" | "frame-sync" | "plus-hollow" | "sparse-1" | "sparse-2" | "sparse-3";
|
|
374
487
|
interface PatternFrame {
|
|
375
488
|
activePixels: number[];
|
|
376
489
|
duration?: number;
|
|
@@ -386,39 +499,75 @@ interface PatternDefinition {
|
|
|
386
499
|
* Each pattern is an array of frames, where each frame specifies which pixels are active.
|
|
387
500
|
* Animation interpolates between frames for smooth transitions.
|
|
388
501
|
*/
|
|
389
|
-
declare const patterns: Record<PatternType, PatternDefinition>;
|
|
390
|
-
declare const patternNames: PatternType[];
|
|
391
|
-
declare const patternCategories: Record<string, PatternType[]>;
|
|
502
|
+
declare const patterns: Record<PatternType$4, PatternDefinition>;
|
|
503
|
+
declare const patternNames: PatternType$4[];
|
|
504
|
+
declare const patternCategories: Record<string, PatternType$4[]>;
|
|
505
|
+
|
|
506
|
+
/**
|
|
507
|
+
* Pattern definitions for the 4x4 PixelGrid component.
|
|
508
|
+
*
|
|
509
|
+
* Grid position reference (4x4):
|
|
510
|
+
* 0 1 2 3 (row 0)
|
|
511
|
+
* 4 5 6 7 (row 1)
|
|
512
|
+
* 8 9 10 11 (row 2)
|
|
513
|
+
* 12 13 14 15 (row 3)
|
|
514
|
+
*/
|
|
515
|
+
type PatternType$3 = "solo-center" | "solo-tl" | "solo-br" | "line-h-top" | "line-h-mid" | "line-h-bot" | "line-v-left" | "line-v-mid" | "line-v-right" | "line-diag-1" | "line-diag-2" | "corners-sync" | "corners-only" | "frame" | "frame-sync" | "plus-hollow" | "square-inner" | "square-outer" | "cross-full" | "cross-spin";
|
|
516
|
+
|
|
517
|
+
/**
|
|
518
|
+
* Pattern definitions for the 6x6 PixelGrid component.
|
|
519
|
+
*
|
|
520
|
+
* Grid position reference (6x6):
|
|
521
|
+
* 0 1 2 3 4 5 (row 0)
|
|
522
|
+
* 6 7 8 9 10 11 (row 1)
|
|
523
|
+
* 12 13 14 15 16 17 (row 2)
|
|
524
|
+
* 18 19 20 21 22 23 (row 3)
|
|
525
|
+
* 24 25 26 27 28 29 (row 4)
|
|
526
|
+
* 30 31 32 33 34 35 (row 5)
|
|
527
|
+
*/
|
|
528
|
+
type PatternType$2 = "solo-center" | "solo-tl" | "solo-br" | "line-h-top" | "line-h-mid" | "line-h-bot" | "line-v-left" | "line-v-mid" | "line-v-right" | "line-diag-1" | "line-diag-2" | "corners-sync" | "corners-only" | "frame" | "frame-sync" | "plus-hollow" | "ripple" | "spiral" | "checkerboard" | "diamond" | "wave";
|
|
392
529
|
|
|
393
530
|
type PixelGridColor = "blue" | "pink" | "green";
|
|
394
531
|
type PixelGridSpeed = "slow" | "normal" | "fast";
|
|
395
532
|
type PixelGridSize = "sm" | "md" | "lg";
|
|
533
|
+
type PixelGridDimension = 3 | 4 | 6;
|
|
534
|
+
|
|
535
|
+
type PatternType$1 = PatternType$4 | PatternType$3 | PatternType$2;
|
|
396
536
|
interface PixelGridProps {
|
|
397
537
|
/** The animation pattern to display */
|
|
398
|
-
pattern: PatternType;
|
|
538
|
+
pattern: PatternType$1;
|
|
539
|
+
/** Grid dimension - 3x3, 4x4, or 6x6 */
|
|
540
|
+
dimension?: PixelGridDimension;
|
|
399
541
|
/** Color theme - blue/cyan or pink/coral or green */
|
|
400
542
|
color?: PixelGridColor;
|
|
401
543
|
/** Animation speed */
|
|
402
544
|
speed?: PixelGridSpeed;
|
|
403
545
|
/** Grid size */
|
|
404
546
|
size?: PixelGridSize;
|
|
405
|
-
/**
|
|
547
|
+
/** Whether to animate (false = static display) */
|
|
548
|
+
animated?: boolean;
|
|
549
|
+
/** Pause the animation (only applies when animated=true) */
|
|
406
550
|
paused?: boolean;
|
|
407
551
|
/** Additional className for the container */
|
|
408
552
|
className?: string;
|
|
409
553
|
/** Show pattern label below the grid */
|
|
410
554
|
showLabel?: boolean;
|
|
411
555
|
}
|
|
412
|
-
declare function PixelGrid({ pattern, color, speed, size, paused, className, showLabel, }: PixelGridProps): react_jsx_runtime.JSX.Element;
|
|
556
|
+
declare function PixelGrid({ pattern, dimension, color, speed, size, animated, paused, className, showLabel, }: PixelGridProps): react_jsx_runtime.JSX.Element | null;
|
|
413
557
|
declare namespace PixelGrid {
|
|
414
558
|
var displayName: string;
|
|
415
559
|
}
|
|
416
560
|
|
|
561
|
+
type PatternType = PatternType$4 | PatternType$3 | PatternType$2;
|
|
417
562
|
interface PixelGridShowcaseProps {
|
|
563
|
+
/** Grid dimension - 3x3, 4x4, or 6x6 */
|
|
564
|
+
dimension?: PixelGridDimension;
|
|
418
565
|
/** Color theme for all grids */
|
|
419
566
|
color?: PixelGridColor;
|
|
420
567
|
/** Size for all grids */
|
|
421
568
|
size?: PixelGridSize;
|
|
569
|
+
/** Whether to animate (false = static display) */
|
|
570
|
+
animated?: boolean;
|
|
422
571
|
/** Show category headers */
|
|
423
572
|
showCategories?: boolean;
|
|
424
573
|
/** Filter to specific categories */
|
|
@@ -426,7 +575,7 @@ interface PixelGridShowcaseProps {
|
|
|
426
575
|
/** Additional className */
|
|
427
576
|
className?: string;
|
|
428
577
|
}
|
|
429
|
-
declare function PixelGridShowcase({ color, size, showCategories, categories, className, }: PixelGridShowcaseProps): react_jsx_runtime.JSX.Element;
|
|
578
|
+
declare function PixelGridShowcase({ dimension, color, size, animated, showCategories, categories, className, }: PixelGridShowcaseProps): react_jsx_runtime.JSX.Element;
|
|
430
579
|
declare namespace PixelGridShowcase {
|
|
431
580
|
var displayName: string;
|
|
432
581
|
}
|
|
@@ -435,10 +584,12 @@ declare namespace PixelGridShowcase {
|
|
|
435
584
|
*/
|
|
436
585
|
interface PixelGridColorComparisonProps {
|
|
437
586
|
pattern: PatternType;
|
|
587
|
+
dimension?: PixelGridDimension;
|
|
438
588
|
size?: PixelGridSize;
|
|
589
|
+
animated?: boolean;
|
|
439
590
|
className?: string;
|
|
440
591
|
}
|
|
441
|
-
declare function PixelGridColorComparison({ pattern, size, className, }: PixelGridColorComparisonProps): react_jsx_runtime.JSX.Element;
|
|
592
|
+
declare function PixelGridColorComparison({ pattern, dimension, size, animated, className, }: PixelGridColorComparisonProps): react_jsx_runtime.JSX.Element;
|
|
442
593
|
declare namespace PixelGridColorComparison {
|
|
443
594
|
var displayName: string;
|
|
444
595
|
}
|
|
@@ -447,12 +598,14 @@ declare namespace PixelGridColorComparison {
|
|
|
447
598
|
*/
|
|
448
599
|
interface PixelGridSizeComparisonProps {
|
|
449
600
|
pattern: PatternType;
|
|
601
|
+
dimension?: PixelGridDimension;
|
|
450
602
|
color?: PixelGridColor;
|
|
603
|
+
animated?: boolean;
|
|
451
604
|
className?: string;
|
|
452
605
|
}
|
|
453
|
-
declare function PixelGridSizeComparison({ pattern, color, className, }: PixelGridSizeComparisonProps): react_jsx_runtime.JSX.Element;
|
|
606
|
+
declare function PixelGridSizeComparison({ pattern, dimension, color, animated, className, }: PixelGridSizeComparisonProps): react_jsx_runtime.JSX.Element;
|
|
454
607
|
declare namespace PixelGridSizeComparison {
|
|
455
608
|
var displayName: string;
|
|
456
609
|
}
|
|
457
610
|
|
|
458
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, Badge, type BreadcrumbItem, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Input, Label, LenisProvider, type PatternDefinition, type PatternFrame, type PatternType, PixelGrid, type PixelGridColor, PixelGridColorComparison, type PixelGridColorComparisonProps, type PixelGridProps, PixelGridShowcase, type PixelGridShowcaseProps, type PixelGridSize, PixelGridSizeComparison, type PixelGridSizeComparisonProps, type PixelGridSpeed, Progress, RadioGroup, RadioGroupItem, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SideMenu, type SideMenuItem, type SideMenuProps, type SideMenuSection, type SimpleTab, SimpleTabs, SimpleTabsContent, SimpleTabsList, type SimpleTabsListProps, SimpleTabsPanel, type SimpleTabsPanelProps, type SimpleTabsProps, SimpleTabsRoot, type SimpleTabsRootProps, SimpleTabsTrigger, type SimpleTabsTriggerProps, Skeleton, Slider, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TopMenu, type TopMenuProps, TopMenuUser, TopMenuUserItem, type TopMenuUserItemProps, type TopMenuUserProps, TopMenuUserSection, badgeVariants, buttonVariants, cn, patternCategories, patternNames, patterns };
|
|
611
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, Badge, type BreadcrumbItem, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, type ColorMode, DesignSystemProvider, type DesignSystemProviderProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type FocusMode, type FontMode, Input, Label, LenisProvider, type PatternDefinition, type PatternFrame, type PatternType$1 as PatternType, PixelGrid, type PixelGridColor, PixelGridColorComparison, type PixelGridColorComparisonProps, type PixelGridProps, PixelGridShowcase, type PixelGridShowcaseProps, type PixelGridSize, PixelGridSizeComparison, type PixelGridSizeComparisonProps, type PixelGridSpeed, Progress, RadioGroup, RadioGroupItem, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SideMenu, type SideMenuItem, type SideMenuProps, type SideMenuSection, type SimpleTab, SimpleTabs, SimpleTabsContent, SimpleTabsList, type SimpleTabsListProps, SimpleTabsPanel, type SimpleTabsPanelProps, type SimpleTabsProps, SimpleTabsRoot, type SimpleTabsRootProps, SimpleTabsTrigger, type SimpleTabsTriggerProps, Skeleton, Slider, type SpacingMode, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type Theme, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TopMenu, type TopMenuProps, TopMenuUser, TopMenuUserItem, type TopMenuUserItemProps, type TopMenuUserProps, TopMenuUserSection, badgeVariants, buttonVariants, cn, patternCategories, patternNames, patterns, useAccessibility, useColorMode, useDesignSystem, useDesignSystemTheme, useFocusMode, useFontMode, useSpacingMode };
|