@facto-to/design-system 0.1.0-beta.3 → 0.1.0-beta.5

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.ts CHANGED
@@ -4,7 +4,7 @@ import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
4
4
  import * as DialogPrimitive from '@radix-ui/react-dialog';
5
5
  import * as SwitchPrimitive from '@radix-ui/react-switch';
6
6
  import * as TabsPrimitive from '@radix-ui/react-tabs';
7
- import type { AnchorHTMLAttributes, ButtonHTMLAttributes, ComponentPropsWithoutRef, ComponentPropsWithRef, CSSProperties, HTMLAttributes, InputHTMLAttributes, ReactNode, TextareaHTMLAttributes } from 'react';
7
+ import type { AnchorHTMLAttributes, ButtonHTMLAttributes, ComponentPropsWithoutRef, ComponentPropsWithRef, CSSProperties, HTMLAttributes, InputHTMLAttributes, ReactNode, TextareaHTMLAttributes, SVGProps } from 'react';
8
8
  import './styles.css';
9
9
  export type FactoThemeTokens = Partial<Record<`--facto-${string}`, string | number>>;
10
10
  type ThemeTokens = FactoThemeTokens;
@@ -16,6 +16,16 @@ export interface FactoThemeProps extends Omit<HTMLAttributes<HTMLDivElement>, 's
16
16
  }
17
17
  /** Scoped token container. Inline `--facto-*` values are forwarded to portalled overlays. */
18
18
  export declare function FactoTheme({ className, tokens, style, ...props }: FactoThemeProps): import("react").JSX.Element;
19
+ /** Shared decorative symbols; name the containing control, not the glyph. */
20
+ export type IconName = 'close' | 'arrowLeft' | 'check' | 'chevronDown' | 'chevronRight' | 'info' | 'warning';
21
+ export interface IconProps extends SVGProps<SVGSVGElement> {
22
+ name: IconName;
23
+ size?: number;
24
+ }
25
+ export declare function Icon({ name, size, ...props }: IconProps): import("react").JSX.Element;
26
+ /** Layout only: use existing Dialog/Sheet title and close primitives inside. */
27
+ export declare function ModalHeader({ className, ...props }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
28
+ export declare function ModalFooter({ className, ...props }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
19
29
  /** Button hierarchy based on the final Facto user application controls. */
20
30
  export type ButtonVariant = 'primary' | 'secondary' | 'danger' | 'text';
21
31
  export type ButtonSize = 'sm' | 'md' | 'lg';
@@ -33,7 +43,7 @@ export interface IconButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonEle
33
43
  size?: ButtonSize;
34
44
  }
35
45
  export declare const IconButton: import("react").ForwardRefExoticComponent<IconButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
36
- /** Elevated neutral content container. */
46
+ /** Neutral content container with a quiet border and no elevation. */
37
47
  export interface SurfaceProps extends HTMLAttributes<HTMLDivElement> {
38
48
  padding?: 'none' | 'sm' | 'md' | 'lg';
39
49
  }
@@ -129,8 +139,8 @@ export declare function TabsContent({ className, ...props }: ComponentPropsWitho
129
139
  export declare const Dialog: import("react").FC<DialogPrimitive.DialogProps>;
130
140
  export declare const DialogTrigger: import("react").ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
131
141
  export declare const DialogClose: import("react").ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & import("react").RefAttributes<HTMLButtonElement>>;
132
- export declare const DialogTitle: import("react").ForwardRefExoticComponent<DialogPrimitive.DialogTitleProps & import("react").RefAttributes<HTMLHeadingElement>>;
133
- export declare const DialogDescription: import("react").ForwardRefExoticComponent<DialogPrimitive.DialogDescriptionProps & import("react").RefAttributes<HTMLParagraphElement>>;
142
+ export declare const DialogTitle: import("react").ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & import("react").RefAttributes<HTMLHeadingElement>, "ref"> & import("react").RefAttributes<HTMLHeadingElement>>;
143
+ export declare const DialogDescription: typeof DialogPrimitive.Description;
134
144
  export interface DialogContentProps extends ComponentPropsWithoutRef<typeof DialogPrimitive.Content> {
135
145
  size?: 'sm' | 'md';
136
146
  }
@@ -139,7 +149,7 @@ export declare function DialogContent({ size, className, style, children, ...pro
139
149
  export declare const Sheet: import("react").FC<DialogPrimitive.DialogProps>;
140
150
  export declare const SheetTrigger: import("react").ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
141
151
  export declare const SheetClose: import("react").ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & import("react").RefAttributes<HTMLButtonElement>>;
142
- export declare const SheetTitle: import("react").ForwardRefExoticComponent<DialogPrimitive.DialogTitleProps & import("react").RefAttributes<HTMLHeadingElement>>;
152
+ export declare const SheetTitle: import("react").ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & import("react").RefAttributes<HTMLHeadingElement>, "ref"> & import("react").RefAttributes<HTMLHeadingElement>>;
143
153
  export declare const SheetDescription: import("react").ForwardRefExoticComponent<DialogPrimitive.DialogDescriptionProps & import("react").RefAttributes<HTMLParagraphElement>>;
144
154
  export interface SheetContentProps extends ComponentPropsWithoutRef<typeof DialogPrimitive.Content> {
145
155
  side?: 'center' | 'right' | 'bottom';