@umami/react-zen 0.97.0 → 0.99.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.
Files changed (6) hide show
  1. package/dist/index.css +1024 -1004
  2. package/dist/index.d.ts +29 -32
  3. package/dist/index.js +1016 -1005
  4. package/dist/index.mjs +1035 -1024
  5. package/package.json +13 -13
  6. package/styles.css +1024 -1004
package/dist/index.d.ts CHANGED
@@ -54,7 +54,7 @@ declare module '@umami/react-zen' {
54
54
  export { LoadingButton } from '@umami/react-zen/LoadingButton';
55
55
  export { Menu, MenuItem, MenuSection, MenuSeparator } from '@umami/react-zen/Menu';
56
56
  export { Modal } from '@umami/react-zen/Modal';
57
- export { NavBar, NavBarItem } from '@umami/react-zen/NavBar';
57
+ export { Navbar, NavbarItem } from '@umami/react-zen/Navbar';
58
58
  export { PasswordField } from '@umami/react-zen/PasswordField';
59
59
  export { Popover } from '@umami/react-zen/Popover';
60
60
  export { ProgressBar } from '@umami/react-zen/ProgressBar';
@@ -63,7 +63,7 @@ declare module '@umami/react-zen' {
63
63
  export { Row } from '@umami/react-zen/Row';
64
64
  export { SearchField } from '@umami/react-zen/SearchField';
65
65
  export { Select } from '@umami/react-zen/Select';
66
- export { SideNav, SideNavHeader, SideNavItem, SideNavSection } from '@umami/react-zen/SideNav';
66
+ export { Sidebar, SidebarHeader, SidebarItem, SidebarSection } from '@umami/react-zen/Sidebar';
67
67
  export { Slider } from '@umami/react-zen/Slider';
68
68
  export { Slot } from '@umami/react-zen/Slot';
69
69
  export { Spinner } from '@umami/react-zen/Spinner';
@@ -271,7 +271,7 @@ declare module '@umami/react-zen/Blockquote' {
271
271
 
272
272
  declare module '@umami/react-zen/Box' {
273
273
  import { HTMLAttributes } from 'react';
274
- 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';
274
+ 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';
275
275
  export interface BoxProps extends Omit<HTMLAttributes<HTMLElement>, 'color'> {
276
276
  display?: Responsive<Display>;
277
277
  color?: FontColor;
@@ -279,8 +279,6 @@ declare module '@umami/react-zen/Box' {
279
279
  hoverColor?: HoverColor;
280
280
  hoverBackgroundColor?: HoverColor;
281
281
  hoverBorderColor?: HoverColor;
282
- fillColor?: FillColor;
283
- strokeColor?: StrokeColor;
284
282
  fontSize?: Responsive<FontSize>;
285
283
  fontWeight?: Responsive<FontWeight>;
286
284
  border?: Responsive<BorderPosition>;
@@ -329,7 +327,7 @@ declare module '@umami/react-zen/Box' {
329
327
  as?: string;
330
328
  asChild?: boolean;
331
329
  }
332
- 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;
330
+ 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, width, minWidth, maxWidth, height, minHeight, maxHeight, position, align, top, right, bottom, left, overflow, overflowX, overflowY, alignSelf, justifySelf, flexBasis, flexGrow, flexShrink, gridArea, gridRow, gridColumn, order, theme, as, asChild, className, style, children, ...props }: BoxProps): import("react").JSX.Element;
333
331
  }
334
332
 
335
333
  declare module '@umami/react-zen/Breadcrumbs' {
@@ -615,8 +613,9 @@ declare module '@umami/react-zen/List' {
615
613
  idProperty?: string;
616
614
  labelProperty?: string;
617
615
  separatorProperty?: string;
616
+ variant?: '1' | '2' | '3';
618
617
  }
619
- export function List({ items, idProperty, labelProperty, separatorProperty, className, children, ...props }: ListProps): import("react").JSX.Element;
618
+ export function List({ items, idProperty, labelProperty, separatorProperty, variant, className, children, ...props }: ListProps): import("react").JSX.Element;
620
619
  export function ListItem({ id, children, className, ...props }: ListBoxItemProps<any>): import("react").JSX.Element;
621
620
  export function ListSeparator({ className, ...props }: SeparatorProps): import("react").JSX.Element;
622
621
  export function ListSection({ title, className, children, ...props }: ListBoxSectionProps<any> & {
@@ -678,24 +677,22 @@ declare module '@umami/react-zen/Modal' {
678
677
  export type { ModalProps };
679
678
  }
680
679
 
681
- declare module '@umami/react-zen/NavBar' {
682
- import { HTMLAttributes, ReactNode, Dispatch, SetStateAction } from 'react';
683
- type NavigationContext = {
684
- activeMenu: string;
685
- setActiveMenu: Dispatch<SetStateAction<string>>;
686
- };
687
- export const NavBarContext: import("react").Context<NavigationContext | undefined>;
688
- export interface NavBarProps extends HTMLAttributes<HTMLElement> {
689
- showArrow?: boolean;
690
- }
691
- export function NavBar({ showArrow, className, children, ...props }: NavBarProps): import("react").JSX.Element;
692
- export interface NavBarItemProps extends HTMLAttributes<HTMLElement> {
693
- label?: string;
694
- children?: ReactNode;
695
- }
696
- export function NavBarItem({ label, children, className, ...props }: NavBarItemProps): import("react").JSX.Element;
697
- export {};
680
+ import { HTMLAttributes, ReactNode, Dispatch, SetStateAction } from 'react';
681
+ type NavigationContext = {
682
+ activeMenu: string;
683
+ setActiveMenu: Dispatch<SetStateAction<string>>;
684
+ };
685
+ export declare const NavbarContext: import("react").Context<NavigationContext | undefined>;
686
+ export interface NavbarProps extends HTMLAttributes<HTMLElement> {
687
+ showArrow?: boolean;
688
+ }
689
+ export declare function Navbar({ showArrow, className, children, ...props }: NavbarProps): import("react").JSX.Element;
690
+ export interface NavbarItemProps extends HTMLAttributes<HTMLElement> {
691
+ label?: string;
692
+ children?: ReactNode;
698
693
  }
694
+ export declare function NavbarItem({ label, children, className, ...props }: NavbarItemProps): import("react").JSX.Element;
695
+ export {};
699
696
 
700
697
  declare module '@umami/react-zen/PasswordField' {
701
698
  import { TextFieldProps } from 'react-aria-components';
@@ -794,34 +791,34 @@ declare module '@umami/react-zen/Select' {
794
791
  export type { SelectProps };
795
792
  }
796
793
 
797
- declare module '@umami/react-zen/SideNav' {
794
+ declare module '@umami/react-zen/Sidebar' {
798
795
  import { ReactNode } from 'react';
799
796
  import { ColumnProps } from '@/components/Column';
800
797
  import { RowProps } from '@/components/Row';
801
- export interface SideNavProps extends ColumnProps {
798
+ export interface SidebarProps extends ColumnProps {
802
799
  variant?: '1' | '2' | '3' | 'quiet';
803
800
  isCollapsed?: boolean;
804
801
  muteItems?: boolean;
805
802
  showBorder?: boolean;
806
803
  children?: ReactNode;
807
804
  }
808
- export function SideNav({ variant, isCollapsed, muteItems, showBorder, className, children, ...props }: SideNavProps): import("react").JSX.Element;
809
- export function SideNavSection({ title, children, }: {
805
+ export function Sidebar({ variant, isCollapsed, muteItems, showBorder, className, children, ...props }: SidebarProps): import("react").JSX.Element;
806
+ export function SidebarSection({ title, children, }: {
810
807
  title?: string;
811
808
  children: ReactNode;
812
809
  } & ColumnProps): import("react").JSX.Element;
813
- export function SideNavHeader({ label, icon, className, children, ...props }: {
810
+ export function SidebarHeader({ label, icon, className, children, ...props }: {
814
811
  label: string;
815
812
  icon?: ReactNode;
816
813
  children?: ReactNode;
817
814
  } & RowProps): import("react").JSX.Element;
818
- export interface SideNavItemProps extends RowProps {
815
+ export interface SidebarItemProps extends RowProps {
819
816
  isSelected?: boolean;
820
817
  }
821
- export function SideNavItem({ label, icon, isSelected, className, children, ...props }: {
818
+ export function SidebarItem({ label, icon, isSelected, className, children, ...props }: {
822
819
  label?: string;
823
820
  icon?: ReactNode;
824
- } & SideNavItemProps): import("react").JSX.Element;
821
+ } & SidebarItemProps): import("react").JSX.Element;
825
822
  }
826
823
 
827
824
  declare module '@umami/react-zen/Slider' {