@umami/react-zen 0.91.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.css +1200 -991
- package/dist/index.d.ts +16 -12
- package/dist/index.js +213 -223
- package/dist/index.mjs +213 -223
- package/package.json +1 -1
- package/styles.css +1200 -991
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' {
|
|
@@ -473,9 +473,9 @@ declare module '@umami/react-zen/Flexbox' {
|
|
|
473
473
|
justifyItems?: Responsive<JustifyItems>;
|
|
474
474
|
alignContent?: AlignContent;
|
|
475
475
|
alignItems?: AlignItems;
|
|
476
|
-
gap?: Responsive<Spacing>;
|
|
477
|
-
gapX?: Responsive<Spacing>;
|
|
478
|
-
gapY?: Responsive<Spacing>;
|
|
476
|
+
gap?: Responsive<Spacing | true>;
|
|
477
|
+
gapX?: Responsive<Spacing | true>;
|
|
478
|
+
gapY?: Responsive<Spacing | true>;
|
|
479
479
|
}
|
|
480
480
|
export function Flexbox({ display, direction, wrap, justifyContent, justifyItems, alignContent, alignItems, gap, gapX, gapY, className, style, children, ...props }: FlexboxProps): import("react").JSX.Element;
|
|
481
481
|
}
|
|
@@ -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
|
-
|
|
542
|
-
|
|
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' {
|
|
@@ -769,6 +771,7 @@ declare module '@umami/react-zen/SearchField' {
|
|
|
769
771
|
declare module '@umami/react-zen/Select' {
|
|
770
772
|
import { ReactNode } from 'react';
|
|
771
773
|
import { PopoverProps, SelectProps as AriaSelectProps, SelectValueRenderProps } from 'react-aria-components';
|
|
774
|
+
import { ButtonProps } from '@umami/react-zen/Button';
|
|
772
775
|
import { ListProps } from '@umami/react-zen/List';
|
|
773
776
|
interface SelectProps extends AriaSelectProps<HTMLSelectElement> {
|
|
774
777
|
items?: any[];
|
|
@@ -780,6 +783,7 @@ declare module '@umami/react-zen/Select' {
|
|
|
780
783
|
searchDelay?: number;
|
|
781
784
|
onSearch?: (value: string) => void;
|
|
782
785
|
onChange?: (e: any) => void;
|
|
786
|
+
buttonProps?: ButtonProps;
|
|
783
787
|
listProps?: ListProps;
|
|
784
788
|
popoverProps?: PopoverProps;
|
|
785
789
|
renderValue?: ReactNode | ((values: SelectValueRenderProps<object> & {
|
|
@@ -905,7 +909,7 @@ declare module '@umami/react-zen/Tabs' {
|
|
|
905
909
|
declare module '@umami/react-zen/Text' {
|
|
906
910
|
import { HTMLAttributes } from 'react';
|
|
907
911
|
import { Responsive, TextAlign, FontWeight, LetterSpacing, FontSize, TextWrap, TextTransform, FontColor } from '@/lib/types';
|
|
908
|
-
export interface TextProps extends HTMLAttributes<HTMLElement> {
|
|
912
|
+
export interface TextProps extends Omit<HTMLAttributes<HTMLElement>, 'color'> {
|
|
909
913
|
color?: FontColor;
|
|
910
914
|
size?: Responsive<FontSize>;
|
|
911
915
|
spacing?: Responsive<LetterSpacing>;
|