@umami/react-zen 0.92.0 → 0.93.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
@@ -273,14 +273,16 @@ declare module '@umami/react-zen/Blockquote' {
273
273
 
274
274
  declare module '@umami/react-zen/Box' {
275
275
  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> {
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, FillColor, StrokeColor } from '@/lib/types';
277
+ export interface BoxProps extends Omit<HTMLAttributes<HTMLElement>, 'color'> {
278
278
  display?: Responsive<Display>;
279
279
  color?: FontColor;
280
280
  backgroundColor?: BackgroundColor;
281
281
  hoverColor?: HoverColor;
282
282
  hoverBackgroundColor?: HoverColor;
283
283
  hoverBorderColor?: HoverColor;
284
+ fillColor?: FillColor;
285
+ strokeColor?: StrokeColor;
284
286
  fontSize?: Responsive<FontSize>;
285
287
  fontWeight?: Responsive<FontWeight>;
286
288
  border?: Responsive<BorderPosition>;
@@ -329,9 +331,7 @@ declare module '@umami/react-zen/Box' {
329
331
  as?: string;
330
332
  asChild?: boolean;
331
333
  }
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 };
334
+ 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
335
  }
336
336
 
337
337
  declare module '@umami/react-zen/Breadcrumbs' {
@@ -534,14 +534,16 @@ declare module '@umami/react-zen/HoverTrigger' {
534
534
 
535
535
  declare module '@umami/react-zen/Icon' {
536
536
  import { HTMLAttributes } from 'react';
537
+ import { FontColor } from '@/lib/types';
537
538
  export interface IconProps extends HTMLAttributes<HTMLElement> {
538
539
  size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
539
540
  variant?: 'input';
540
541
  rotate?: number;
541
- strokeColor?: string;
542
- fillColor?: string;
542
+ strokeWidth?: string;
543
+ strokeColor?: FontColor;
544
+ fillColor?: FontColor;
543
545
  }
544
- export function Icon({ size, variant, rotate, strokeColor, fillColor, style, className, children, ...props }: IconProps & HTMLAttributes<HTMLElement>): import("react").JSX.Element;
546
+ export function Icon({ size, variant, rotate, strokeWidth, strokeColor, fillColor, style, className, children, ...props }: IconProps & HTMLAttributes<HTMLElement>): import("react").JSX.Element;
545
547
  }
546
548
 
547
549
  declare module '@umami/react-zen/Icons' {
@@ -907,7 +909,7 @@ declare module '@umami/react-zen/Tabs' {
907
909
  declare module '@umami/react-zen/Text' {
908
910
  import { HTMLAttributes } from 'react';
909
911
  import { Responsive, TextAlign, FontWeight, LetterSpacing, FontSize, TextWrap, TextTransform, FontColor } from '@/lib/types';
910
- export interface TextProps extends HTMLAttributes<HTMLElement> {
912
+ export interface TextProps extends Omit<HTMLAttributes<HTMLElement>, 'color'> {
911
913
  color?: FontColor;
912
914
  size?: Responsive<FontSize>;
913
915
  spacing?: Responsive<LetterSpacing>;