@umami/react-zen 0.249.0 → 0.250.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.mts +15 -9
- package/dist/index.d.ts +15 -9
- package/dist/index.js +439 -322
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +439 -322
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/styles.css +202 -172
- package/styles.full.css +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -459,7 +459,9 @@ type BorderColor = SemanticColor | ColorName | TailwindColor | true;
|
|
|
459
459
|
type StrokeColor = FontColor;
|
|
460
460
|
type FillColor = FontColor;
|
|
461
461
|
type Spacing = '0' | 'px' | '0.5' | '1' | '1.5' | '2' | '2.5' | '3' | '3.5' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12' | '14' | '16' | '20' | '24' | '28' | '32' | '36' | '40' | '44' | '48' | '52' | '56' | '60' | '64' | '72' | '80' | '96';
|
|
462
|
+
type NegativeSpacing = '-px' | '-0.5' | '-1' | '-1.5' | '-2' | '-2.5' | '-3' | '-3.5' | '-4' | '-5' | '-6' | '-7' | '-8' | '-9' | '-10' | '-11' | '-12' | '-14' | '-16' | '-20' | '-24';
|
|
462
463
|
type Padding = Spacing | true;
|
|
464
|
+
type Margin = Spacing | NegativeSpacing | 'auto';
|
|
463
465
|
type Gap = Spacing | true;
|
|
464
466
|
type Position = 'static' | 'relative' | 'absolute' | 'fixed' | 'sticky';
|
|
465
467
|
type Overflow = 'visible' | 'hidden' | 'clip' | 'scroll' | 'auto';
|
|
@@ -587,13 +589,13 @@ interface BoxProps extends Omit<HTMLAttributes<HTMLElement>, 'color'> {
|
|
|
587
589
|
paddingRight?: Responsive$1<Padding>;
|
|
588
590
|
paddingBottom?: Responsive$1<Padding>;
|
|
589
591
|
paddingLeft?: Responsive$1<Padding>;
|
|
590
|
-
margin?: Responsive$1<
|
|
591
|
-
marginX?: Responsive$1<
|
|
592
|
-
marginY?: Responsive$1<
|
|
593
|
-
marginTop?: Responsive$1<
|
|
594
|
-
marginRight?: Responsive$1<
|
|
595
|
-
marginBottom?: Responsive$1<
|
|
596
|
-
marginLeft?: Responsive$1<
|
|
592
|
+
margin?: Responsive$1<Margin>;
|
|
593
|
+
marginX?: Responsive$1<Margin>;
|
|
594
|
+
marginY?: Responsive$1<Margin>;
|
|
595
|
+
marginTop?: Responsive$1<Margin>;
|
|
596
|
+
marginRight?: Responsive$1<Margin>;
|
|
597
|
+
marginBottom?: Responsive$1<Margin>;
|
|
598
|
+
marginLeft?: Responsive$1<Margin>;
|
|
597
599
|
spaceX?: Responsive$1<Spacing>;
|
|
598
600
|
spaceY?: Responsive$1<Spacing>;
|
|
599
601
|
width?: Responsive$1<Width | string>;
|
|
@@ -655,6 +657,10 @@ declare function Breadcrumb({ children, className, isDisabled, ...props }: Bread
|
|
|
655
657
|
|
|
656
658
|
interface ButtonProps extends Omit<ButtonProps$1, 'className' | 'render'>, ButtonVariants {
|
|
657
659
|
render?: RenderProp<ButtonRenderProps>;
|
|
660
|
+
/** Render as a link. Ignored when a custom `render` is supplied. */
|
|
661
|
+
href?: string;
|
|
662
|
+
target?: string;
|
|
663
|
+
rel?: string;
|
|
658
664
|
children?: ReactNode;
|
|
659
665
|
className?: string;
|
|
660
666
|
isDisabled?: boolean;
|
|
@@ -666,7 +672,7 @@ interface ButtonRenderProps {
|
|
|
666
672
|
children: ReactNode;
|
|
667
673
|
[key: string]: unknown;
|
|
668
674
|
}
|
|
669
|
-
declare function Button({ variant, size, render, preventFocusOnPress: _preventFocusOnPress, nativeButton, isDisabled, disabled, onPress, onClick, className, children, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
675
|
+
declare function Button({ variant, size, render: renderProp, href, target, rel, preventFocusOnPress: _preventFocusOnPress, nativeButton, isDisabled, disabled, onPress, onClick, className, children, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
670
676
|
|
|
671
677
|
interface SeparatorProps extends Separator$1.Props {
|
|
672
678
|
orientation?: 'horizontal' | 'vertical';
|
|
@@ -1657,7 +1663,7 @@ interface TextFieldProps extends NativeFieldProps {
|
|
|
1657
1663
|
}
|
|
1658
1664
|
declare function TextField({ value, defaultValue, label, placeholder, allowCopy, asTextArea, resize, variant, onChange, isReadOnly, isDisabled, className, children: _children, ...props }: TextFieldProps): react_jsx_runtime.JSX.Element;
|
|
1659
1665
|
|
|
1660
|
-
interface ThemeButtonProps extends ButtonProps {
|
|
1666
|
+
interface ThemeButtonProps extends Omit<ButtonProps, 'target'> {
|
|
1661
1667
|
target?: RefObject<HTMLElement | null> | HTMLElement;
|
|
1662
1668
|
}
|
|
1663
1669
|
declare function ThemeButton({ className, variant, target, onPress, ...props }: ThemeButtonProps): react_jsx_runtime.JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -459,7 +459,9 @@ type BorderColor = SemanticColor | ColorName | TailwindColor | true;
|
|
|
459
459
|
type StrokeColor = FontColor;
|
|
460
460
|
type FillColor = FontColor;
|
|
461
461
|
type Spacing = '0' | 'px' | '0.5' | '1' | '1.5' | '2' | '2.5' | '3' | '3.5' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12' | '14' | '16' | '20' | '24' | '28' | '32' | '36' | '40' | '44' | '48' | '52' | '56' | '60' | '64' | '72' | '80' | '96';
|
|
462
|
+
type NegativeSpacing = '-px' | '-0.5' | '-1' | '-1.5' | '-2' | '-2.5' | '-3' | '-3.5' | '-4' | '-5' | '-6' | '-7' | '-8' | '-9' | '-10' | '-11' | '-12' | '-14' | '-16' | '-20' | '-24';
|
|
462
463
|
type Padding = Spacing | true;
|
|
464
|
+
type Margin = Spacing | NegativeSpacing | 'auto';
|
|
463
465
|
type Gap = Spacing | true;
|
|
464
466
|
type Position = 'static' | 'relative' | 'absolute' | 'fixed' | 'sticky';
|
|
465
467
|
type Overflow = 'visible' | 'hidden' | 'clip' | 'scroll' | 'auto';
|
|
@@ -587,13 +589,13 @@ interface BoxProps extends Omit<HTMLAttributes<HTMLElement>, 'color'> {
|
|
|
587
589
|
paddingRight?: Responsive$1<Padding>;
|
|
588
590
|
paddingBottom?: Responsive$1<Padding>;
|
|
589
591
|
paddingLeft?: Responsive$1<Padding>;
|
|
590
|
-
margin?: Responsive$1<
|
|
591
|
-
marginX?: Responsive$1<
|
|
592
|
-
marginY?: Responsive$1<
|
|
593
|
-
marginTop?: Responsive$1<
|
|
594
|
-
marginRight?: Responsive$1<
|
|
595
|
-
marginBottom?: Responsive$1<
|
|
596
|
-
marginLeft?: Responsive$1<
|
|
592
|
+
margin?: Responsive$1<Margin>;
|
|
593
|
+
marginX?: Responsive$1<Margin>;
|
|
594
|
+
marginY?: Responsive$1<Margin>;
|
|
595
|
+
marginTop?: Responsive$1<Margin>;
|
|
596
|
+
marginRight?: Responsive$1<Margin>;
|
|
597
|
+
marginBottom?: Responsive$1<Margin>;
|
|
598
|
+
marginLeft?: Responsive$1<Margin>;
|
|
597
599
|
spaceX?: Responsive$1<Spacing>;
|
|
598
600
|
spaceY?: Responsive$1<Spacing>;
|
|
599
601
|
width?: Responsive$1<Width | string>;
|
|
@@ -655,6 +657,10 @@ declare function Breadcrumb({ children, className, isDisabled, ...props }: Bread
|
|
|
655
657
|
|
|
656
658
|
interface ButtonProps extends Omit<ButtonProps$1, 'className' | 'render'>, ButtonVariants {
|
|
657
659
|
render?: RenderProp<ButtonRenderProps>;
|
|
660
|
+
/** Render as a link. Ignored when a custom `render` is supplied. */
|
|
661
|
+
href?: string;
|
|
662
|
+
target?: string;
|
|
663
|
+
rel?: string;
|
|
658
664
|
children?: ReactNode;
|
|
659
665
|
className?: string;
|
|
660
666
|
isDisabled?: boolean;
|
|
@@ -666,7 +672,7 @@ interface ButtonRenderProps {
|
|
|
666
672
|
children: ReactNode;
|
|
667
673
|
[key: string]: unknown;
|
|
668
674
|
}
|
|
669
|
-
declare function Button({ variant, size, render, preventFocusOnPress: _preventFocusOnPress, nativeButton, isDisabled, disabled, onPress, onClick, className, children, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
675
|
+
declare function Button({ variant, size, render: renderProp, href, target, rel, preventFocusOnPress: _preventFocusOnPress, nativeButton, isDisabled, disabled, onPress, onClick, className, children, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
670
676
|
|
|
671
677
|
interface SeparatorProps extends Separator$1.Props {
|
|
672
678
|
orientation?: 'horizontal' | 'vertical';
|
|
@@ -1657,7 +1663,7 @@ interface TextFieldProps extends NativeFieldProps {
|
|
|
1657
1663
|
}
|
|
1658
1664
|
declare function TextField({ value, defaultValue, label, placeholder, allowCopy, asTextArea, resize, variant, onChange, isReadOnly, isDisabled, className, children: _children, ...props }: TextFieldProps): react_jsx_runtime.JSX.Element;
|
|
1659
1665
|
|
|
1660
|
-
interface ThemeButtonProps extends ButtonProps {
|
|
1666
|
+
interface ThemeButtonProps extends Omit<ButtonProps, 'target'> {
|
|
1661
1667
|
target?: RefObject<HTMLElement | null> | HTMLElement;
|
|
1662
1668
|
}
|
|
1663
1669
|
declare function ThemeButton({ className, variant, target, onPress, ...props }: ThemeButtonProps): react_jsx_runtime.JSX.Element;
|