@umami/react-zen 0.56.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 +789 -777
- package/dist/index.d.ts +53 -20
- package/dist/index.js +428 -381
- package/dist/index.mjs +383 -332
- package/package.json +6 -5
- package/styles.css +894 -843
- package/dist/styles.css +0 -4064
package/dist/index.d.ts
CHANGED
|
@@ -49,7 +49,7 @@ declare module '@umami/react-zen' {
|
|
|
49
49
|
import { LoadingButton } from '@umami/react-zen/LoadingButton';
|
|
50
50
|
import { Menu, MenuItem, MenuSection, MenuSeparator } from '@umami/react-zen/Menu';
|
|
51
51
|
import { Modal } from '@umami/react-zen/Modal';
|
|
52
|
-
import {
|
|
52
|
+
import { NavBar, NavBarItem } from '@umami/react-zen/NavBar';
|
|
53
53
|
import { PasswordField } from '@umami/react-zen/PasswordField';
|
|
54
54
|
import { Popover } from '@umami/react-zen/Popover';
|
|
55
55
|
import { ProgressBar } from '@umami/react-zen/ProgressBar';
|
|
@@ -58,6 +58,7 @@ declare module '@umami/react-zen' {
|
|
|
58
58
|
import { Row } from '@umami/react-zen/Row';
|
|
59
59
|
import { SearchField } from '@umami/react-zen/SearchField';
|
|
60
60
|
import { Select } from '@umami/react-zen/Select';
|
|
61
|
+
import { SideNav, SideNavHeader, SideNavItem, SideNavSection } from '@umami/react-zen/SideNav';
|
|
61
62
|
import { Slider } from '@umami/react-zen/Slider';
|
|
62
63
|
import { Slot } from '@umami/react-zen/Slot';
|
|
63
64
|
import { Spinner } from '@umami/react-zen/Spinner';
|
|
@@ -73,7 +74,7 @@ declare module '@umami/react-zen' {
|
|
|
73
74
|
import { ToggleGroup, ToggleGroupItem } from '@umami/react-zen/ToggleGroup';
|
|
74
75
|
import { Tooltip } from '@umami/react-zen/Tooltip';
|
|
75
76
|
import { ZenProvider } from '@umami/react-zen/ZenProvider';
|
|
76
|
-
export { Form, FormField, FormResetButton, FormSubmitButton, Toast, Toaster, ToastProvider, useDebounce, useTheme, useToast, Accordion, AccordionItem, AlertBanner, AlertDialog, Blockquote, Box, Breadcrumb, Breadcrumbs, Button, Calendar, Checkbox, Code, Column, Combobox, Container, ConfirmationDialog, DataTable, DataColumn, Dialog, DialogTrigger, Dots, FileTrigger, Flexbox, Grid, Heading, HoverTrigger, Icon, Icons, Image, InlineEditField, Label, List, ListItem, ListSection, ListSeparator, Loading, LoadingButton, Menu, MenuItem, MenuSection, MenuSeparator, MenuTrigger, Modal,
|
|
77
|
+
export { Form, FormField, FormResetButton, FormSubmitButton, Toast, Toaster, ToastProvider, useDebounce, useTheme, useToast, Accordion, AccordionItem, AlertBanner, AlertDialog, Blockquote, Box, Breadcrumb, Breadcrumbs, Button, Calendar, Checkbox, Code, Column, Combobox, Container, ConfirmationDialog, DataTable, DataColumn, Dialog, DialogTrigger, Dots, FileTrigger, Flexbox, Grid, NavBar, NavBarItem, Heading, HoverTrigger, Icon, Icons, Image, InlineEditField, Label, List, ListItem, ListSection, ListSeparator, Loading, LoadingButton, Menu, MenuItem, MenuSection, MenuSeparator, MenuTrigger, Modal, PasswordField, Popover, ProgressBar, ProgressCircle, Radio, RadioGroup, Row, SearchField, Select, SideNav, SideNavHeader, SideNavItem, SideNavSection, Slider, Slot, Spinner, StatusLight, SubmenuTrigger, Switch, Table, TableHeader, TableBody, TableRow, TableColumn, TableCell, Tab, Tabs, TabList, TabPanel, Text, TextField, TextArea, ThemeButton, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipTrigger, ZenProvider, };
|
|
77
78
|
}
|
|
78
79
|
|
|
79
80
|
declare module '@umami/react-zen/forms/Form' {
|
|
@@ -169,11 +170,11 @@ declare module '@umami/react-zen/hooks/useDebounce' {
|
|
|
169
170
|
|
|
170
171
|
declare module '@umami/react-zen/hooks/useTheme' {
|
|
171
172
|
function setTheme(theme: string): void;
|
|
172
|
-
function useTheme(): {
|
|
173
|
+
export function useTheme(defaultTheme?: string): {
|
|
173
174
|
theme: string;
|
|
174
175
|
setTheme: typeof setTheme;
|
|
175
176
|
};
|
|
176
|
-
export {
|
|
177
|
+
export {};
|
|
177
178
|
}
|
|
178
179
|
|
|
179
180
|
declare module '@umami/react-zen/hooks/useToast' {
|
|
@@ -259,11 +260,11 @@ declare module '@umami/react-zen/Blockquote' {
|
|
|
259
260
|
|
|
260
261
|
declare module '@umami/react-zen/Box' {
|
|
261
262
|
import { HTMLAttributes } from 'react';
|
|
262
|
-
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';
|
|
263
264
|
interface BoxProps extends HTMLAttributes<HTMLElement> {
|
|
264
265
|
display?: Responsive<Display>;
|
|
265
|
-
color?:
|
|
266
|
-
backgroundColor?: BackgroundColor
|
|
266
|
+
color?: FontColor;
|
|
267
|
+
backgroundColor?: BackgroundColor;
|
|
267
268
|
borderSize?: Responsive<BorderSize>;
|
|
268
269
|
borderRadius?: Responsive<BorderRadius>;
|
|
269
270
|
shadow?: Responsive<BoxShadow>;
|
|
@@ -511,14 +512,16 @@ declare module '@umami/react-zen/Icon' {
|
|
|
511
512
|
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
512
513
|
variant?: 'input';
|
|
513
514
|
rotate?: number;
|
|
515
|
+
strokeColor?: string;
|
|
516
|
+
fillColor?: string;
|
|
514
517
|
}
|
|
515
|
-
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;
|
|
516
519
|
}
|
|
517
520
|
|
|
518
521
|
declare module '@umami/react-zen/Icons' {
|
|
519
522
|
export const Icons: {
|
|
520
|
-
Moon:
|
|
521
|
-
Sun:
|
|
523
|
+
Moon: import("react-icons/lib").IconType;
|
|
524
|
+
Sun: import("react-icons/lib").IconType;
|
|
522
525
|
Alert: import("react-icons/lib").IconType;
|
|
523
526
|
Arrow: import("react-icons/lib").IconType;
|
|
524
527
|
Check: import("react-icons/lib").IconType;
|
|
@@ -651,17 +654,23 @@ declare module '@umami/react-zen/Modal' {
|
|
|
651
654
|
export type { ModalProps };
|
|
652
655
|
}
|
|
653
656
|
|
|
654
|
-
declare module '@umami/react-zen/
|
|
655
|
-
import { HTMLAttributes, ReactNode } from 'react';
|
|
656
|
-
|
|
657
|
+
declare module '@umami/react-zen/NavBar' {
|
|
658
|
+
import { HTMLAttributes, ReactNode, Dispatch, SetStateAction } from 'react';
|
|
659
|
+
type NavigationContext = {
|
|
660
|
+
activeMenu: string;
|
|
661
|
+
setActiveMenu: Dispatch<SetStateAction<string>>;
|
|
662
|
+
};
|
|
663
|
+
export const NavBarContext: import("react").Context<NavigationContext | undefined>;
|
|
664
|
+
export interface NavBarProps extends HTMLAttributes<HTMLElement> {
|
|
657
665
|
showArrow?: boolean;
|
|
658
666
|
}
|
|
659
|
-
export function
|
|
660
|
-
export interface
|
|
667
|
+
export function NavBar({ showArrow, className, children, ...props }: NavBarProps): import("react").JSX.Element;
|
|
668
|
+
export interface NavBarItemProps extends HTMLAttributes<HTMLElement> {
|
|
661
669
|
label?: string;
|
|
662
670
|
children?: ReactNode;
|
|
663
671
|
}
|
|
664
|
-
export function
|
|
672
|
+
export function NavBarItem({ label, children, className, ...props }: NavBarItemProps): import("react").JSX.Element;
|
|
673
|
+
export {};
|
|
665
674
|
}
|
|
666
675
|
|
|
667
676
|
declare module '@umami/react-zen/PasswordField' {
|
|
@@ -723,6 +732,7 @@ declare module '@umami/react-zen/SearchField' {
|
|
|
723
732
|
import { SearchFieldProps as AriaSearchFieldProps } from 'react-aria-components';
|
|
724
733
|
interface SearchFieldProps extends AriaSearchFieldProps {
|
|
725
734
|
label?: string;
|
|
735
|
+
placeholder?: string;
|
|
726
736
|
value?: string;
|
|
727
737
|
delay?: number;
|
|
728
738
|
onSearch?: (value: string) => void;
|
|
@@ -745,6 +755,27 @@ declare module '@umami/react-zen/Select' {
|
|
|
745
755
|
export type { SelectProps };
|
|
746
756
|
}
|
|
747
757
|
|
|
758
|
+
declare module '@umami/react-zen/SideNav' {
|
|
759
|
+
import React, { ReactNode } from 'react';
|
|
760
|
+
export function SideNav({ children }: {
|
|
761
|
+
children: ReactNode;
|
|
762
|
+
}): React.JSX.Element;
|
|
763
|
+
export function SideNavHeader({ name, icon, children, }: {
|
|
764
|
+
name: string;
|
|
765
|
+
icon?: ReactNode;
|
|
766
|
+
children?: ReactNode;
|
|
767
|
+
}): React.JSX.Element;
|
|
768
|
+
export function SideNavSection({ title, children }: {
|
|
769
|
+
title?: string;
|
|
770
|
+
children: ReactNode;
|
|
771
|
+
}): React.JSX.Element;
|
|
772
|
+
export function SideNavItem({ label, icon, children, }: {
|
|
773
|
+
label: string;
|
|
774
|
+
icon: ReactNode;
|
|
775
|
+
children?: ReactNode;
|
|
776
|
+
}): React.JSX.Element;
|
|
777
|
+
}
|
|
778
|
+
|
|
748
779
|
declare module '@umami/react-zen/Slider' {
|
|
749
780
|
import { ReactNode } from 'react';
|
|
750
781
|
import { SliderProps as AriaSliderProps } from 'react-aria-components';
|
|
@@ -826,9 +857,9 @@ declare module '@umami/react-zen/Tabs' {
|
|
|
826
857
|
|
|
827
858
|
declare module '@umami/react-zen/Text' {
|
|
828
859
|
import { HTMLAttributes } from 'react';
|
|
829
|
-
import { Responsive, TextAlign, FontWeight, LetterSpacing, FontSize, TextWrap,
|
|
860
|
+
import { Responsive, TextAlign, FontWeight, LetterSpacing, FontSize, TextWrap, FontColor } from '@/lib/types';
|
|
830
861
|
export interface TextProps extends HTMLAttributes<HTMLElement> {
|
|
831
|
-
color?:
|
|
862
|
+
color?: FontColor;
|
|
832
863
|
size?: Responsive<FontSize>;
|
|
833
864
|
spacing?: Responsive<LetterSpacing>;
|
|
834
865
|
weight?: Responsive<FontWeight>;
|
|
@@ -869,8 +900,10 @@ declare module '@umami/react-zen/TextArea' {
|
|
|
869
900
|
|
|
870
901
|
declare module '@umami/react-zen/ThemeButton' {
|
|
871
902
|
import { ButtonProps } from '@umami/react-zen/Button';
|
|
872
|
-
export
|
|
873
|
-
|
|
903
|
+
export interface ThemeButtonProps extends ButtonProps {
|
|
904
|
+
defaultTheme?: string;
|
|
905
|
+
}
|
|
906
|
+
export function ThemeButton({ className, variant, defaultTheme, onPress, ...props }: ThemeButtonProps): import("react").JSX.Element;
|
|
874
907
|
}
|
|
875
908
|
|
|
876
909
|
declare module '@umami/react-zen/Toggle' {
|