@umami/react-zen 0.57.0 → 0.58.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 +716 -743
- package/dist/index.d.ts +14 -12
- package/dist/index.js +371 -362
- package/dist/index.mjs +325 -316
- package/package.json +2 -2
- package/styles.css +821 -809
package/dist/index.d.ts
CHANGED
|
@@ -170,11 +170,11 @@ declare module '@umami/react-zen/hooks/useDebounce' {
|
|
|
170
170
|
|
|
171
171
|
declare module '@umami/react-zen/hooks/useTheme' {
|
|
172
172
|
function setTheme(theme: string): void;
|
|
173
|
-
function useTheme(): {
|
|
173
|
+
export function useTheme(defaultTheme?: string): {
|
|
174
174
|
theme: string;
|
|
175
175
|
setTheme: typeof setTheme;
|
|
176
176
|
};
|
|
177
|
-
export {
|
|
177
|
+
export {};
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
declare module '@umami/react-zen/hooks/useToast' {
|
|
@@ -260,11 +260,11 @@ declare module '@umami/react-zen/Blockquote' {
|
|
|
260
260
|
|
|
261
261
|
declare module '@umami/react-zen/Box' {
|
|
262
262
|
import { HTMLAttributes } from 'react';
|
|
263
|
-
import { BackgroundColor, BorderSize, BorderRadius, BoxShadow, Spacing, Responsive, Position, Display, TextAlign, FlexGrow, FlexShrink, Top, Right, Bottom, Left, Overflow, AlignSelf, JustifySelf,
|
|
263
|
+
import { BackgroundColor, BorderSize, BorderRadius, BoxShadow, Spacing, Responsive, Position, Display, TextAlign, FlexGrow, FlexShrink, Top, Right, Bottom, Left, Overflow, AlignSelf, JustifySelf, FontColor } from '@/lib/types';
|
|
264
264
|
interface BoxProps extends HTMLAttributes<HTMLElement> {
|
|
265
265
|
display?: Responsive<Display>;
|
|
266
|
-
color?:
|
|
267
|
-
backgroundColor?: BackgroundColor
|
|
266
|
+
color?: FontColor;
|
|
267
|
+
backgroundColor?: BackgroundColor;
|
|
268
268
|
borderSize?: Responsive<BorderSize>;
|
|
269
269
|
borderRadius?: Responsive<BorderRadius>;
|
|
270
270
|
shadow?: Responsive<BoxShadow>;
|
|
@@ -512,14 +512,16 @@ declare module '@umami/react-zen/Icon' {
|
|
|
512
512
|
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
513
513
|
variant?: 'input';
|
|
514
514
|
rotate?: number;
|
|
515
|
+
strokeColor?: string;
|
|
516
|
+
fillColor?: string;
|
|
515
517
|
}
|
|
516
|
-
export function Icon({ size, variant, rotate, style, className, children, ...props }: IconProps & HTMLAttributes<HTMLElement>): import("react").JSX.Element;
|
|
518
|
+
export function Icon({ size, variant, rotate, strokeColor, fillColor, style, className, children, ...props }: IconProps & HTMLAttributes<HTMLElement>): import("react").JSX.Element;
|
|
517
519
|
}
|
|
518
520
|
|
|
519
521
|
declare module '@umami/react-zen/Icons' {
|
|
520
522
|
export const Icons: {
|
|
521
|
-
Moon:
|
|
522
|
-
Sun:
|
|
523
|
+
Moon: import("react-icons/lib").IconType;
|
|
524
|
+
Sun: import("react-icons/lib").IconType;
|
|
523
525
|
Alert: import("react-icons/lib").IconType;
|
|
524
526
|
Arrow: import("react-icons/lib").IconType;
|
|
525
527
|
Check: import("react-icons/lib").IconType;
|
|
@@ -730,6 +732,7 @@ declare module '@umami/react-zen/SearchField' {
|
|
|
730
732
|
import { SearchFieldProps as AriaSearchFieldProps } from 'react-aria-components';
|
|
731
733
|
interface SearchFieldProps extends AriaSearchFieldProps {
|
|
732
734
|
label?: string;
|
|
735
|
+
placeholder?: string;
|
|
733
736
|
value?: string;
|
|
734
737
|
delay?: number;
|
|
735
738
|
onSearch?: (value: string) => void;
|
|
@@ -854,9 +857,9 @@ declare module '@umami/react-zen/Tabs' {
|
|
|
854
857
|
|
|
855
858
|
declare module '@umami/react-zen/Text' {
|
|
856
859
|
import { HTMLAttributes } from 'react';
|
|
857
|
-
import { Responsive, TextAlign, FontWeight, LetterSpacing, FontSize, TextWrap,
|
|
860
|
+
import { Responsive, TextAlign, FontWeight, LetterSpacing, FontSize, TextWrap, FontColor } from '@/lib/types';
|
|
858
861
|
export interface TextProps extends HTMLAttributes<HTMLElement> {
|
|
859
|
-
color?:
|
|
862
|
+
color?: FontColor;
|
|
860
863
|
size?: Responsive<FontSize>;
|
|
861
864
|
spacing?: Responsive<LetterSpacing>;
|
|
862
865
|
weight?: Responsive<FontWeight>;
|
|
@@ -900,8 +903,7 @@ declare module '@umami/react-zen/ThemeButton' {
|
|
|
900
903
|
export interface ThemeButtonProps extends ButtonProps {
|
|
901
904
|
defaultTheme?: string;
|
|
902
905
|
}
|
|
903
|
-
export function ThemeButton({
|
|
904
|
-
export default ThemeButton;
|
|
906
|
+
export function ThemeButton({ className, variant, defaultTheme, onPress, ...props }: ThemeButtonProps): import("react").JSX.Element;
|
|
905
907
|
}
|
|
906
908
|
|
|
907
909
|
declare module '@umami/react-zen/Toggle' {
|