@umami/react-zen 0.92.0 → 0.94.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.d.ts CHANGED
@@ -109,16 +109,14 @@ declare module '@umami/react-zen/forms/FormButtons' {
109
109
  declare module '@umami/react-zen/forms/FormField' {
110
110
  import { HTMLAttributes } from 'react';
111
111
  import { RegisterOptions, UseFormReturn, FieldValues } from 'react-hook-form';
112
- interface FormFieldProps extends HTMLAttributes<HTMLDivElement>, Partial<UseFormReturn> {
112
+ export interface FormFieldProps extends HTMLAttributes<HTMLDivElement>, Partial<UseFormReturn> {
113
113
  name: string;
114
114
  description?: string;
115
115
  label?: string;
116
116
  rules?: RegisterOptions<FieldValues, string>;
117
117
  children: any;
118
118
  }
119
- const FormField: import("react").ForwardRefExoticComponent<FormFieldProps & import("react").RefAttributes<any>>;
120
- export { FormField };
121
- export type { FormFieldProps };
119
+ export const FormField: import("react").ForwardRefExoticComponent<FormFieldProps & import("react").RefAttributes<any>>;
122
120
  }
123
121
 
124
122
  declare module '@umami/react-zen/forms/FormResetButton' {
@@ -273,14 +271,16 @@ declare module '@umami/react-zen/Blockquote' {
273
271
 
274
272
  declare module '@umami/react-zen/Box' {
275
273
  import { HTMLAttributes } from 'react';
276
- import { BackgroundColor, BorderColor, BorderPosition, BorderRadius, BoxShadow, Spacing, Responsive, Position, Display, TextAlign, FlexGrow, FlexShrink, Top, Right, Bottom, Left, Overflow, AlignSelf, JustifySelf, FontColor, FontSize, FontWeight, Padding, HoverColor } from '@/lib/types';
277
- interface BoxProps extends HTMLAttributes<HTMLElement> {
274
+ import { BackgroundColor, BorderColor, BorderPosition, BorderRadius, BoxShadow, Spacing, Responsive, Position, Display, TextAlign, FlexGrow, FlexShrink, Top, Right, Bottom, Left, Overflow, AlignSelf, JustifySelf, FontColor, FontSize, FontWeight, Padding, HoverColor, FillColor, StrokeColor } from '@/lib/types';
275
+ export interface BoxProps extends Omit<HTMLAttributes<HTMLElement>, 'color'> {
278
276
  display?: Responsive<Display>;
279
277
  color?: FontColor;
280
278
  backgroundColor?: BackgroundColor;
281
279
  hoverColor?: HoverColor;
282
280
  hoverBackgroundColor?: HoverColor;
283
281
  hoverBorderColor?: HoverColor;
282
+ fillColor?: FillColor;
283
+ strokeColor?: StrokeColor;
284
284
  fontSize?: Responsive<FontSize>;
285
285
  fontWeight?: Responsive<FontWeight>;
286
286
  border?: Responsive<BorderPosition>;
@@ -329,9 +329,7 @@ declare module '@umami/react-zen/Box' {
329
329
  as?: string;
330
330
  asChild?: boolean;
331
331
  }
332
- function Box({ display, color, backgroundColor, hoverColor, hoverBackgroundColor, hoverBorderColor, fontSize, fontWeight, border, borderColor, borderRadius, shadow, padding, paddingX, paddingY, paddingTop, paddingRight, paddingBottom, paddingLeft, margin, marginX, marginY, marginTop, marginRight, marginBottom, marginLeft, overflow, overflowX, overflowY, width, minWidth, maxWidth, height, minHeight, maxHeight, position, align, top, right, bottom, left, flexBasis, flexGrow, flexShrink, gridArea, gridRow, gridColumn, order, theme, as, asChild, className, style, children, ...props }: BoxProps): import("react").JSX.Element;
333
- export { Box };
334
- export type { BoxProps };
332
+ export function Box({ display, color, backgroundColor, hoverColor, hoverBackgroundColor, hoverBorderColor, fontSize, fontWeight, border, borderColor, borderRadius, shadow, padding, paddingX, paddingY, paddingTop, paddingRight, paddingBottom, paddingLeft, margin, marginX, marginY, marginTop, marginRight, marginBottom, marginLeft, overflow, overflowX, overflowY, width, minWidth, maxWidth, height, minHeight, maxHeight, position, align, top, right, bottom, left, flexBasis, flexGrow, flexShrink, gridArea, gridRow, gridColumn, order, theme, as, asChild, className, style, children, ...props }: BoxProps): import("react").JSX.Element;
335
333
  }
336
334
 
337
335
  declare module '@umami/react-zen/Breadcrumbs' {
@@ -437,20 +435,18 @@ declare module '@umami/react-zen/Dialog' {
437
435
  declare module '@umami/react-zen/DataTable' {
438
436
  import { ReactNode } from 'react';
439
437
  import { ColumnProps, TableProps } from 'react-aria-components';
440
- interface DataTableProps extends TableProps {
438
+ export interface DataTableProps extends TableProps {
441
439
  data?: any[];
442
440
  }
443
- function DataTable({ data, className, children, ...props }: DataTableProps): import("react").JSX.Element;
444
- interface DataColumnProps extends ColumnProps {
441
+ export function DataTable({ data, className, children, ...props }: DataTableProps): import("react").JSX.Element;
442
+ export interface DataColumnProps extends ColumnProps {
445
443
  id: string;
446
444
  label?: ReactNode;
447
445
  align?: 'start' | 'center' | 'end';
448
446
  as?: string;
449
447
  hidden?: boolean;
450
448
  }
451
- function DataColumn(props: DataColumnProps): null;
452
- export { DataTable, DataColumn };
453
- export type { DataTableProps, DataColumnProps };
449
+ export function DataColumn(props: DataColumnProps): null;
454
450
  }
455
451
 
456
452
  declare module '@umami/react-zen/Dots' {
@@ -534,14 +530,16 @@ declare module '@umami/react-zen/HoverTrigger' {
534
530
 
535
531
  declare module '@umami/react-zen/Icon' {
536
532
  import { HTMLAttributes } from 'react';
533
+ import { FontColor } from '@/lib/types';
537
534
  export interface IconProps extends HTMLAttributes<HTMLElement> {
538
535
  size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
539
536
  variant?: 'input';
540
537
  rotate?: number;
541
- strokeColor?: string;
542
- fillColor?: string;
538
+ strokeWidth?: string;
539
+ strokeColor?: FontColor;
540
+ fillColor?: FontColor;
543
541
  }
544
- export function Icon({ size, variant, rotate, strokeColor, fillColor, style, className, children, ...props }: IconProps & HTMLAttributes<HTMLElement>): import("react").JSX.Element;
542
+ export function Icon({ size, variant, rotate, strokeWidth, strokeColor, fillColor, style, className, children, ...props }: IconProps & HTMLAttributes<HTMLElement>): import("react").JSX.Element;
545
543
  }
546
544
 
547
545
  declare module '@umami/react-zen/Icons' {
@@ -774,6 +772,7 @@ declare module '@umami/react-zen/Select' {
774
772
  interface SelectProps extends AriaSelectProps<HTMLSelectElement> {
775
773
  items?: any[];
776
774
  value?: string;
775
+ defaultValue?: string;
777
776
  label?: string;
778
777
  isLoading?: boolean;
779
778
  allowSearch?: boolean;
@@ -885,9 +884,9 @@ declare module '@umami/react-zen/Table' {
885
884
  align?: 'start' | 'center' | 'end';
886
885
  }
887
886
  function Table({ children, className, ...props }: TableProps): import("react").JSX.Element;
888
- function TableHeader({ children, className, ...props }: TableHeaderProps<any>): import("react").JSX.Element;
887
+ function TableHeader({ children, className, style, ...props }: TableHeaderProps<any>): import("react").JSX.Element;
889
888
  function TableBody({ children, className, ...props }: TableBodyProps<any>): import("react").JSX.Element;
890
- function TableRow({ children, className, ...props }: RowProps<any>): import("react").JSX.Element;
889
+ function TableRow({ children, className, style, ...props }: RowProps<any>): import("react").JSX.Element;
891
890
  function TableColumn({ children, className, align, ...props }: TableColumnProps): import("react").JSX.Element;
892
891
  function TableCell({ children, className, align, ...props }: TableCellProps): import("react").JSX.Element;
893
892
  export { Table, TableHeader, TableBody, TableRow, TableColumn, TableCell };
@@ -907,7 +906,7 @@ declare module '@umami/react-zen/Tabs' {
907
906
  declare module '@umami/react-zen/Text' {
908
907
  import { HTMLAttributes } from 'react';
909
908
  import { Responsive, TextAlign, FontWeight, LetterSpacing, FontSize, TextWrap, TextTransform, FontColor } from '@/lib/types';
910
- export interface TextProps extends HTMLAttributes<HTMLElement> {
909
+ export interface TextProps extends Omit<HTMLAttributes<HTMLElement>, 'color'> {
911
910
  color?: FontColor;
912
911
  size?: Responsive<FontSize>;
913
912
  spacing?: Responsive<LetterSpacing>;