@phsa.tec/design-system-react 0.2.0 → 0.3.1
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/README.md +176 -376
- package/dist/index.d.mts +16 -115
- package/dist/index.d.ts +16 -115
- package/dist/index.js +1457 -1115
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1403 -1066
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/tailwind-preset.d.mts +21 -0
- package/dist/tailwind-preset.d.ts +21 -0
- package/dist/tailwind-preset.js +101 -0
- package/dist/tailwind-preset.js.map +1 -0
- package/dist/tailwind-preset.mjs +81 -0
- package/dist/tailwind-preset.mjs.map +1 -0
- package/package.json +8 -8
- package/dist/index.css +0 -2549
- package/dist/index.css.map +0 -1
- package/dist/styles.js +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -120,6 +120,21 @@ type TextProps = VariantProps<typeof textVariants> & {
|
|
|
120
120
|
};
|
|
121
121
|
declare function Text({ variant, align, className, children, }: TextProps): React$1.JSX.Element;
|
|
122
122
|
|
|
123
|
+
type CardProps = {
|
|
124
|
+
title?: string;
|
|
125
|
+
description?: string;
|
|
126
|
+
footer?: () => React__default.ReactNode;
|
|
127
|
+
children?: React__default.ReactNode;
|
|
128
|
+
};
|
|
129
|
+
declare const Card$1: ({ title, children, description, footer, }: CardProps) => React__default.JSX.Element;
|
|
130
|
+
|
|
131
|
+
declare const Card: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
132
|
+
declare const CardHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
133
|
+
declare const CardTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
134
|
+
declare const CardDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
135
|
+
declare const CardContent: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
136
|
+
declare const CardFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
137
|
+
|
|
123
138
|
type CheckboxProps$1 = React$1.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>;
|
|
124
139
|
|
|
125
140
|
type CheckboxProps = CheckboxProps$1 & {
|
|
@@ -481,118 +496,4 @@ declare function useToast(): {
|
|
|
481
496
|
toasts: ToasterToast[];
|
|
482
497
|
};
|
|
483
498
|
|
|
484
|
-
type
|
|
485
|
-
background?: string;
|
|
486
|
-
foreground?: string;
|
|
487
|
-
card?: string;
|
|
488
|
-
cardForeground?: string;
|
|
489
|
-
popover?: string;
|
|
490
|
-
popoverForeground?: string;
|
|
491
|
-
primary?: string;
|
|
492
|
-
primaryForeground?: string;
|
|
493
|
-
secondary?: string;
|
|
494
|
-
secondaryForeground?: string;
|
|
495
|
-
muted?: string;
|
|
496
|
-
mutedForeground?: string;
|
|
497
|
-
accent?: string;
|
|
498
|
-
accentForeground?: string;
|
|
499
|
-
success?: string;
|
|
500
|
-
successForeground?: string;
|
|
501
|
-
warning?: string;
|
|
502
|
-
destructive?: string;
|
|
503
|
-
destructiveForeground?: string;
|
|
504
|
-
border?: string;
|
|
505
|
-
input?: string;
|
|
506
|
-
ring?: string;
|
|
507
|
-
radius?: string;
|
|
508
|
-
};
|
|
509
|
-
type SpacingValues = {
|
|
510
|
-
/** Base spacing unit (default: 0.25rem = 4px) */
|
|
511
|
-
base?: string;
|
|
512
|
-
/** Custom spacing scale */
|
|
513
|
-
xs?: string;
|
|
514
|
-
sm?: string;
|
|
515
|
-
md?: string;
|
|
516
|
-
lg?: string;
|
|
517
|
-
xl?: string;
|
|
518
|
-
"2xl"?: string;
|
|
519
|
-
"3xl"?: string;
|
|
520
|
-
};
|
|
521
|
-
type TypographyValues = {
|
|
522
|
-
/** Font family */
|
|
523
|
-
fontFamily?: string;
|
|
524
|
-
/** Base font size */
|
|
525
|
-
fontSize?: {
|
|
526
|
-
xs?: string;
|
|
527
|
-
sm?: string;
|
|
528
|
-
base?: string;
|
|
529
|
-
lg?: string;
|
|
530
|
-
xl?: string;
|
|
531
|
-
"2xl"?: string;
|
|
532
|
-
"3xl"?: string;
|
|
533
|
-
"4xl"?: string;
|
|
534
|
-
"5xl"?: string;
|
|
535
|
-
};
|
|
536
|
-
/** Font weights */
|
|
537
|
-
fontWeight?: {
|
|
538
|
-
light?: string;
|
|
539
|
-
normal?: string;
|
|
540
|
-
medium?: string;
|
|
541
|
-
semibold?: string;
|
|
542
|
-
bold?: string;
|
|
543
|
-
};
|
|
544
|
-
/** Line heights */
|
|
545
|
-
lineHeight?: {
|
|
546
|
-
none?: string;
|
|
547
|
-
tight?: string;
|
|
548
|
-
snug?: string;
|
|
549
|
-
normal?: string;
|
|
550
|
-
relaxed?: string;
|
|
551
|
-
loose?: string;
|
|
552
|
-
};
|
|
553
|
-
};
|
|
554
|
-
type ThemeValues = {
|
|
555
|
-
colors?: ColorValues;
|
|
556
|
-
spacing?: SpacingValues;
|
|
557
|
-
typography?: TypographyValues;
|
|
558
|
-
/** Border radius values */
|
|
559
|
-
borderRadius?: {
|
|
560
|
-
none?: string;
|
|
561
|
-
sm?: string;
|
|
562
|
-
md?: string;
|
|
563
|
-
lg?: string;
|
|
564
|
-
xl?: string;
|
|
565
|
-
"2xl"?: string;
|
|
566
|
-
"3xl"?: string;
|
|
567
|
-
full?: string;
|
|
568
|
-
};
|
|
569
|
-
/** Shadow values */
|
|
570
|
-
boxShadow?: {
|
|
571
|
-
sm?: string;
|
|
572
|
-
md?: string;
|
|
573
|
-
lg?: string;
|
|
574
|
-
xl?: string;
|
|
575
|
-
"2xl"?: string;
|
|
576
|
-
inner?: string;
|
|
577
|
-
none?: string;
|
|
578
|
-
};
|
|
579
|
-
/** Breakpoints */
|
|
580
|
-
breakpoints?: {
|
|
581
|
-
sm?: string;
|
|
582
|
-
md?: string;
|
|
583
|
-
lg?: string;
|
|
584
|
-
xl?: string;
|
|
585
|
-
"2xl"?: string;
|
|
586
|
-
};
|
|
587
|
-
};
|
|
588
|
-
type DesignSystemProviderProps = {
|
|
589
|
-
children: React__default.ReactNode;
|
|
590
|
-
className?: string;
|
|
591
|
-
/** @deprecated Use `theme.colors` instead */
|
|
592
|
-
colors?: ColorValues;
|
|
593
|
-
/** Complete theme configuration */
|
|
594
|
-
theme?: ThemeValues;
|
|
595
|
-
};
|
|
596
|
-
declare function DesignSystemProvider({ children, className, colors, theme, }: DesignSystemProviderProps): React__default.JSX.Element;
|
|
597
|
-
|
|
598
|
-
export { AlertDialog, type AlertDialogProps, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, DesignSystemProvider as BaseDesignSystemProvider, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Checkbox, type CheckboxProps, Collapsible, CollapsibleContent, CollapsibleTrigger, type Column, CustomDrawer, type CustomDrawerProps, DataPairList, type DataPairListProps, DesignSystemProvider, type DesignSystemProviderProps, Dialog, type DialogProps, DialogWithForm, type DialogWithFormProps, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, type DrawerProps, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, DynamicTable, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Icon, Input, MaskInput, type MaskInputProps, MultiSelect, MultipleInput, type MultipleInputProps, MultipleMaskInput, type MultipleMaskInputProps, NavUser, NumberInput, type NumberInputProps, PageLayout, type PageLayoutProps, Select, type SelectProps, Separator, Sheet, type SheetProps, Sidebar, Spinner, Steps, Switch, type SwitchProps, type TableProps, Tabs, Text, Toaster, badgeVariants, reducer, toast, useFormField, useToast };
|
|
499
|
+
export { AlertDialog, type AlertDialogProps, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Card$1 as Card, Card as CardBase, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardTitle, Checkbox, type CheckboxProps, Collapsible, CollapsibleContent, CollapsibleTrigger, type Column, CustomDrawer, type CustomDrawerProps, DataPairList, type DataPairListProps, Dialog, type DialogProps, DialogWithForm, type DialogWithFormProps, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, type DrawerProps, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, DynamicTable, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Icon, Input, MaskInput, type MaskInputProps, MultiSelect, MultipleInput, type MultipleInputProps, MultipleMaskInput, type MultipleMaskInputProps, NavUser, NumberInput, type NumberInputProps, PageLayout, type PageLayoutProps, Select, type SelectProps, Separator, Sheet, type SheetProps, Sidebar, Spinner, Steps, Switch, type SwitchProps, type TableProps, Tabs, Text, Toaster, badgeVariants, reducer, toast, useFormField, useToast };
|
package/dist/index.d.ts
CHANGED
|
@@ -120,6 +120,21 @@ type TextProps = VariantProps<typeof textVariants> & {
|
|
|
120
120
|
};
|
|
121
121
|
declare function Text({ variant, align, className, children, }: TextProps): React$1.JSX.Element;
|
|
122
122
|
|
|
123
|
+
type CardProps = {
|
|
124
|
+
title?: string;
|
|
125
|
+
description?: string;
|
|
126
|
+
footer?: () => React__default.ReactNode;
|
|
127
|
+
children?: React__default.ReactNode;
|
|
128
|
+
};
|
|
129
|
+
declare const Card$1: ({ title, children, description, footer, }: CardProps) => React__default.JSX.Element;
|
|
130
|
+
|
|
131
|
+
declare const Card: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
132
|
+
declare const CardHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
133
|
+
declare const CardTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
134
|
+
declare const CardDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
135
|
+
declare const CardContent: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
136
|
+
declare const CardFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
137
|
+
|
|
123
138
|
type CheckboxProps$1 = React$1.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>;
|
|
124
139
|
|
|
125
140
|
type CheckboxProps = CheckboxProps$1 & {
|
|
@@ -481,118 +496,4 @@ declare function useToast(): {
|
|
|
481
496
|
toasts: ToasterToast[];
|
|
482
497
|
};
|
|
483
498
|
|
|
484
|
-
type
|
|
485
|
-
background?: string;
|
|
486
|
-
foreground?: string;
|
|
487
|
-
card?: string;
|
|
488
|
-
cardForeground?: string;
|
|
489
|
-
popover?: string;
|
|
490
|
-
popoverForeground?: string;
|
|
491
|
-
primary?: string;
|
|
492
|
-
primaryForeground?: string;
|
|
493
|
-
secondary?: string;
|
|
494
|
-
secondaryForeground?: string;
|
|
495
|
-
muted?: string;
|
|
496
|
-
mutedForeground?: string;
|
|
497
|
-
accent?: string;
|
|
498
|
-
accentForeground?: string;
|
|
499
|
-
success?: string;
|
|
500
|
-
successForeground?: string;
|
|
501
|
-
warning?: string;
|
|
502
|
-
destructive?: string;
|
|
503
|
-
destructiveForeground?: string;
|
|
504
|
-
border?: string;
|
|
505
|
-
input?: string;
|
|
506
|
-
ring?: string;
|
|
507
|
-
radius?: string;
|
|
508
|
-
};
|
|
509
|
-
type SpacingValues = {
|
|
510
|
-
/** Base spacing unit (default: 0.25rem = 4px) */
|
|
511
|
-
base?: string;
|
|
512
|
-
/** Custom spacing scale */
|
|
513
|
-
xs?: string;
|
|
514
|
-
sm?: string;
|
|
515
|
-
md?: string;
|
|
516
|
-
lg?: string;
|
|
517
|
-
xl?: string;
|
|
518
|
-
"2xl"?: string;
|
|
519
|
-
"3xl"?: string;
|
|
520
|
-
};
|
|
521
|
-
type TypographyValues = {
|
|
522
|
-
/** Font family */
|
|
523
|
-
fontFamily?: string;
|
|
524
|
-
/** Base font size */
|
|
525
|
-
fontSize?: {
|
|
526
|
-
xs?: string;
|
|
527
|
-
sm?: string;
|
|
528
|
-
base?: string;
|
|
529
|
-
lg?: string;
|
|
530
|
-
xl?: string;
|
|
531
|
-
"2xl"?: string;
|
|
532
|
-
"3xl"?: string;
|
|
533
|
-
"4xl"?: string;
|
|
534
|
-
"5xl"?: string;
|
|
535
|
-
};
|
|
536
|
-
/** Font weights */
|
|
537
|
-
fontWeight?: {
|
|
538
|
-
light?: string;
|
|
539
|
-
normal?: string;
|
|
540
|
-
medium?: string;
|
|
541
|
-
semibold?: string;
|
|
542
|
-
bold?: string;
|
|
543
|
-
};
|
|
544
|
-
/** Line heights */
|
|
545
|
-
lineHeight?: {
|
|
546
|
-
none?: string;
|
|
547
|
-
tight?: string;
|
|
548
|
-
snug?: string;
|
|
549
|
-
normal?: string;
|
|
550
|
-
relaxed?: string;
|
|
551
|
-
loose?: string;
|
|
552
|
-
};
|
|
553
|
-
};
|
|
554
|
-
type ThemeValues = {
|
|
555
|
-
colors?: ColorValues;
|
|
556
|
-
spacing?: SpacingValues;
|
|
557
|
-
typography?: TypographyValues;
|
|
558
|
-
/** Border radius values */
|
|
559
|
-
borderRadius?: {
|
|
560
|
-
none?: string;
|
|
561
|
-
sm?: string;
|
|
562
|
-
md?: string;
|
|
563
|
-
lg?: string;
|
|
564
|
-
xl?: string;
|
|
565
|
-
"2xl"?: string;
|
|
566
|
-
"3xl"?: string;
|
|
567
|
-
full?: string;
|
|
568
|
-
};
|
|
569
|
-
/** Shadow values */
|
|
570
|
-
boxShadow?: {
|
|
571
|
-
sm?: string;
|
|
572
|
-
md?: string;
|
|
573
|
-
lg?: string;
|
|
574
|
-
xl?: string;
|
|
575
|
-
"2xl"?: string;
|
|
576
|
-
inner?: string;
|
|
577
|
-
none?: string;
|
|
578
|
-
};
|
|
579
|
-
/** Breakpoints */
|
|
580
|
-
breakpoints?: {
|
|
581
|
-
sm?: string;
|
|
582
|
-
md?: string;
|
|
583
|
-
lg?: string;
|
|
584
|
-
xl?: string;
|
|
585
|
-
"2xl"?: string;
|
|
586
|
-
};
|
|
587
|
-
};
|
|
588
|
-
type DesignSystemProviderProps = {
|
|
589
|
-
children: React__default.ReactNode;
|
|
590
|
-
className?: string;
|
|
591
|
-
/** @deprecated Use `theme.colors` instead */
|
|
592
|
-
colors?: ColorValues;
|
|
593
|
-
/** Complete theme configuration */
|
|
594
|
-
theme?: ThemeValues;
|
|
595
|
-
};
|
|
596
|
-
declare function DesignSystemProvider({ children, className, colors, theme, }: DesignSystemProviderProps): React__default.JSX.Element;
|
|
597
|
-
|
|
598
|
-
export { AlertDialog, type AlertDialogProps, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, DesignSystemProvider as BaseDesignSystemProvider, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Checkbox, type CheckboxProps, Collapsible, CollapsibleContent, CollapsibleTrigger, type Column, CustomDrawer, type CustomDrawerProps, DataPairList, type DataPairListProps, DesignSystemProvider, type DesignSystemProviderProps, Dialog, type DialogProps, DialogWithForm, type DialogWithFormProps, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, type DrawerProps, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, DynamicTable, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Icon, Input, MaskInput, type MaskInputProps, MultiSelect, MultipleInput, type MultipleInputProps, MultipleMaskInput, type MultipleMaskInputProps, NavUser, NumberInput, type NumberInputProps, PageLayout, type PageLayoutProps, Select, type SelectProps, Separator, Sheet, type SheetProps, Sidebar, Spinner, Steps, Switch, type SwitchProps, type TableProps, Tabs, Text, Toaster, badgeVariants, reducer, toast, useFormField, useToast };
|
|
499
|
+
export { AlertDialog, type AlertDialogProps, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Card$1 as Card, Card as CardBase, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardTitle, Checkbox, type CheckboxProps, Collapsible, CollapsibleContent, CollapsibleTrigger, type Column, CustomDrawer, type CustomDrawerProps, DataPairList, type DataPairListProps, Dialog, type DialogProps, DialogWithForm, type DialogWithFormProps, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, type DrawerProps, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, DynamicTable, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Icon, Input, MaskInput, type MaskInputProps, MultiSelect, MultipleInput, type MultipleInputProps, MultipleMaskInput, type MultipleMaskInputProps, NavUser, NumberInput, type NumberInputProps, PageLayout, type PageLayoutProps, Select, type SelectProps, Separator, Sheet, type SheetProps, Sidebar, Spinner, Steps, Switch, type SwitchProps, type TableProps, Tabs, Text, Toaster, badgeVariants, reducer, toast, useFormField, useToast };
|