@fabio.caffarello/react-design-system 3.1.0 → 3.3.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/index.cjs +30 -30
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +796 -753
- package/dist/index.js.map +1 -1
- package/dist/react-design-system.css +1 -1
- package/dist/server/index.cjs +24 -24
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.js +946 -613
- package/dist/server/index.js.map +1 -1
- package/dist/ui/primitives/Button/Button.d.ts +1 -1
- package/dist/ui/primitives/Separator/Separator.d.ts +0 -14
- package/dist/ui/server.d.ts +6 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ButtonHTMLAttributes, ReactNode, ElementType } from "react";
|
|
2
|
-
export type ButtonVariant = "primary" | "secondary" | "error" | "outline" | "ghost" | "iconOnly";
|
|
2
|
+
export type ButtonVariant = "primary" | "secondary" | "error" | "outline" | "ghost" | "iconOnly" | "link";
|
|
3
3
|
export type ButtonSize = "sm" | "md" | "lg";
|
|
4
4
|
export interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "as"> {
|
|
5
5
|
variant?: ButtonVariant;
|
|
@@ -5,19 +5,5 @@ export interface SeparatorProps extends HTMLAttributes<HTMLHRElement> {
|
|
|
5
5
|
orientation?: SeparatorOrientation;
|
|
6
6
|
variant?: SeparatorVariant;
|
|
7
7
|
}
|
|
8
|
-
/**
|
|
9
|
-
* Separator Component
|
|
10
|
-
*
|
|
11
|
-
* A visual separator component for dividing content.
|
|
12
|
-
* Follows Atomic Design principles as an Atom component.
|
|
13
|
-
* Optimized with React.memo to prevent unnecessary re-renders.
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```tsx
|
|
17
|
-
* <Separator />
|
|
18
|
-
*
|
|
19
|
-
* <Separator orientation="vertical" variant="dashed" />
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
8
|
declare const Separator: import("react").MemoExoticComponent<({ orientation, variant, className, ...props }: SeparatorProps) => import("react").JSX.Element>;
|
|
23
9
|
export default Separator;
|
package/dist/ui/server.d.ts
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
|
+
export { default as Badge } from "./primitives/Badge/Badge";
|
|
2
|
+
export type { BadgeProps, BadgeSize, BadgeStyle, BadgeVariant, } from "./primitives/Badge/Badge";
|
|
1
3
|
export { default as Chip } from "./primitives/Chip/Chip";
|
|
2
4
|
export type { ChipProps, ChipSize, ChipVariant } from "./primitives/Chip/Chip";
|
|
3
5
|
export { default as ErrorMessage } from "./primitives/ErrorMessage/ErrorMessage";
|
|
4
6
|
export type { ErrorMessageProps } from "./primitives/ErrorMessage/ErrorMessage";
|
|
5
7
|
export { default as Info } from "./primitives/Info/Info";
|
|
6
8
|
export type { InfoProps } from "./primitives/Info/Info";
|
|
9
|
+
export { default as Label } from "./primitives/Label/Label";
|
|
7
10
|
export { default as Progress } from "./primitives/Progress/Progress";
|
|
8
11
|
export type { ProgressProps, ProgressSize, ProgressVariant, } from "./primitives/Progress/Progress";
|
|
12
|
+
export { default as Separator } from "./primitives/Separator/Separator";
|
|
13
|
+
export type { SeparatorOrientation, SeparatorProps, SeparatorVariant, } from "./primitives/Separator/Separator";
|
|
9
14
|
export { default as Skeleton } from "./primitives/Skeleton/Skeleton";
|
|
10
15
|
export type { SkeletonProps } from "./primitives/Skeleton/Skeleton";
|
|
11
16
|
export { default as Spinner } from "./primitives/Spinner/Spinner";
|
|
@@ -20,6 +25,7 @@ export { default as AutocompleteOption } from "./components/Autocomplete/Autocom
|
|
|
20
25
|
export type { AutocompleteOptionProps, AutocompleteOptionType, } from "./components/Autocomplete/AutocompleteOption";
|
|
21
26
|
export { default as Breadcrumb } from "./components/Breadcrumb/Breadcrumb";
|
|
22
27
|
export type { BreadcrumbItem } from "./components/Breadcrumb/Breadcrumb";
|
|
28
|
+
export { default as Card } from "./components/Card/Card";
|
|
23
29
|
export { DialogHeader } from "./components/Dialog/DialogHeader";
|
|
24
30
|
export type { DialogHeaderProps } from "./components/Dialog/DialogHeader";
|
|
25
31
|
export { DialogFooter } from "./components/Dialog/DialogFooter";
|