@umami/react-zen 0.223.0 → 0.225.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 CHANGED
@@ -1,4 +1,4 @@
1
- import { DisclosureGroupProps, DisclosureProps, DialogProps as DialogProps$1, BreadcrumbProps, BreadcrumbsProps, ButtonProps as ButtonProps$1, CalendarProps as CalendarProps$1, CheckboxProps as CheckboxProps$1, ListBoxProps, ListBoxItemProps, SeparatorProps, ListBoxSectionProps, ComboBoxProps as ComboBoxProps$1, ListBoxRenderProps, PopoverProps as PopoverProps$1, TableProps, TooltipProps as TooltipProps$1, LabelProps as LabelProps$1, MenuProps as MenuProps$1, MenuItemProps as MenuItemProps$1, MenuSectionProps as MenuSectionProps$1, SubmenuTriggerProps as SubmenuTriggerProps$1, ModalOverlayProps, ModalRenderProps, TextFieldProps as TextFieldProps$1, ProgressBarProps as ProgressBarProps$1, RadioGroupProps as RadioGroupProps$1, RadioProps, SearchFieldProps as SearchFieldProps$1, SelectProps as SelectProps$1, SelectValueRenderProps, SliderProps as SliderProps$1, SwitchProps as SwitchProps$1, TableHeaderProps, TableBodyProps, RowProps as RowProps$1, ColumnProps as ColumnProps$1, CellProps, TabsProps, TabListProps, TabProps, TabPanelProps, ToggleButtonProps, TagGroupProps, TagProps } from 'react-aria-components';
1
+ import { DisclosureGroupProps, DisclosureProps, DialogProps as DialogProps$1, BreadcrumbProps, BreadcrumbsProps, ButtonProps as ButtonProps$1, CalendarProps as CalendarProps$1, CheckboxProps as CheckboxProps$1, ListBoxProps, ListBoxItemProps, SeparatorProps, ListBoxSectionProps, ComboBoxProps as ComboBoxProps$1, ListBoxRenderProps, PopoverProps as PopoverProps$1, TableProps, TooltipProps as TooltipProps$1, MenuProps as MenuProps$1, MenuItemProps as MenuItemProps$1, MenuSectionProps as MenuSectionProps$1, SubmenuTriggerProps as SubmenuTriggerProps$1, ModalOverlayProps, ModalRenderProps, TextFieldProps as TextFieldProps$1, ProgressBarProps as ProgressBarProps$1, RadioGroupProps as RadioGroupProps$1, RadioProps, SearchFieldProps as SearchFieldProps$1, SelectProps as SelectProps$1, SelectValueRenderProps, SliderProps as SliderProps$1, SwitchProps as SwitchProps$1, TableHeaderProps, TableBodyProps, RowProps as RowProps$1, ColumnProps as ColumnProps$1, CellProps, TabsProps, TabListProps, TabProps, TabPanelProps, ToggleButtonProps, TagGroupProps, TagProps } from 'react-aria-components';
2
2
  export { BreadcrumbProps, BreadcrumbsProps, DialogTrigger, FileTrigger, Focusable, MenuTrigger, Pressable, RadioProps, RouterProvider, Selection, SubmenuTrigger, TabListProps, TabPanelProps, TabProps, TableBodyProps, TabsProps, TooltipTrigger } from 'react-aria-components';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import * as react from 'react';
@@ -9,14 +9,14 @@ import { UseFormProps, SubmitHandler, UseFormReturn, ControllerProps, Controller
9
9
  import * as zustand from 'zustand';
10
10
 
11
11
  interface AccordionProps extends DisclosureGroupProps {
12
- type: 'single' | 'multiple';
12
+ type?: 'single' | 'multiple';
13
13
  className?: string;
14
14
  children?: ReactNode;
15
15
  }
16
16
  interface AccordionItemProps extends DisclosureProps {
17
17
  }
18
18
  declare function Accordion({ className, children, ...props }: AccordionProps): react_jsx_runtime.JSX.Element;
19
- declare function AccordionItem({ defaultExpanded, className, children, ...props }: AccordionItemProps): react_jsx_runtime.JSX.Element;
19
+ declare function AccordionItem({ className, children, ...props }: AccordionItemProps): react_jsx_runtime.JSX.Element;
20
20
 
21
21
  interface AlertBannerProps {
22
22
  title?: ReactNode;
@@ -55,7 +55,7 @@ type Responsive<T> = T | Partial<Record<Breakpoint, T>>;
55
55
  type ColorName = 'gray' | 'slate' | 'zinc' | 'neutral' | 'stone' | 'red' | 'orange' | 'amber' | 'yellow' | 'lime' | 'green' | 'emerald' | 'teal' | 'cyan' | 'sky' | 'blue' | 'indigo' | 'violet' | 'purple' | 'fuchsia' | 'pink' | 'rose';
56
56
  type ColorShade = '50' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900' | '950';
57
57
  type TailwindColor = `${ColorName}-${ColorShade}`;
58
- type SemanticColor = 'primary' | 'muted' | 'disabled' | 'transparent';
58
+ type SemanticColor = 'primary' | 'secondary' | 'muted' | 'strong' | 'inverted' | 'disabled' | 'transparent';
59
59
  type SurfaceColor = 'surface-base' | 'surface-raised' | 'surface-sunken' | 'surface-overlay' | 'surface-inverted' | 'surface-disabled';
60
60
  type FontColor = SemanticColor | ColorName | TailwindColor | true;
61
61
  type BackgroundColor = SemanticColor | SurfaceColor | ColorName | TailwindColor | true;
@@ -165,6 +165,7 @@ interface TextRenderProps {
165
165
  declare function Text({ color, size, weight, align, spacing, lineHeight, wrap, whitespace, wordBreak, transform, indent, verticalAlign, truncate, italic, underline, strikethrough, decorationStyle, decorationColor, as, render, className, children, ...props }: TextProps): react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
166
166
 
167
167
  interface BlockquoteProps extends Omit<TextProps, 'as'> {
168
+ children?: ReactNode;
168
169
  }
169
170
  declare function Blockquote({ className, children, ...props }: BlockquoteProps): react_jsx_runtime.JSX.Element;
170
171
 
@@ -314,6 +315,7 @@ interface CheckboxProps extends CheckboxProps$1 {
314
315
  declare function Checkbox({ label, className, children, ...props }: CheckboxProps): react_jsx_runtime.JSX.Element;
315
316
 
316
317
  interface CodeProps extends Omit<TextProps, 'as'> {
318
+ children?: ReactNode;
317
319
  }
318
320
  declare function Code({ className, children, ...props }: CodeProps): react_jsx_runtime.JSX.Element;
319
321
 
@@ -332,6 +334,7 @@ interface FlexboxProps extends Omit<BoxProps, 'display' | 'gap'> {
332
334
  declare function Flexbox({ display, direction, wrap, justifyContent, justifyItems, alignContent, alignItems, gap, gapX, gapY, className, children, ...props }: FlexboxProps): react_jsx_runtime.JSX.Element;
333
335
 
334
336
  interface ColumnProps extends FlexboxProps {
337
+ children?: ReactNode;
335
338
  reverse?: boolean;
336
339
  }
337
340
  declare function Column({ reverse, children, ...props }: ColumnProps): react_jsx_runtime.JSX.Element;
@@ -434,6 +437,7 @@ interface DotsProps extends HTMLAttributes<HTMLDivElement> {
434
437
  declare function Dots({ size, className, color: _color, ...props }: DotsProps): react_jsx_runtime.JSX.Element;
435
438
 
436
439
  interface TooltipProps extends TooltipProps$1 {
440
+ children?: ReactNode;
437
441
  showArrow?: boolean;
438
442
  }
439
443
  declare function Tooltip({ children, className, showArrow, ...props }: TooltipProps): react_jsx_runtime.JSX.Element;
@@ -456,6 +460,7 @@ interface FormProps extends UseFormProps, Omit<HTMLAttributes<HTMLFormElement>,
456
460
  declare function Form({ autoComplete, onSubmit, error, preventSubmit, mode, disabled, reValidateMode, defaultValues, values, errors, resetOptions, resolver, context, shouldFocusError, shouldUnregister, shouldUseNativeValidation, progressive, criteriaMode, delayError, className, children, ...props }: FormProps): react_jsx_runtime.JSX.Element;
457
461
 
458
462
  interface RowProps extends FlexboxProps {
463
+ children?: ReactNode;
459
464
  reverse?: boolean;
460
465
  }
461
466
  declare function Row({ reverse, children, ...props }: RowProps): react_jsx_runtime.JSX.Element;
@@ -510,6 +515,7 @@ declare function FormSubmitButton({ variant, isDisabled, isLoading, children, ..
510
515
 
511
516
  type HeadingElement = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
512
517
  interface HeadingProps extends Omit<TextProps, 'as' | 'size'> {
518
+ children?: ReactNode;
513
519
  size?: Responsive<HeadingSize>;
514
520
  as?: HeadingElement;
515
521
  }
@@ -597,10 +603,10 @@ interface ImageProps extends HTMLAttributes<HTMLImageElement> {
597
603
  }
598
604
  declare function Image({ src, alt, objectFit, isCentered, borderRadius, shadow, className, ...props }: ImageProps): react_jsx_runtime.JSX.Element;
599
605
 
600
- interface LabelProps extends LabelProps$1 {
601
- className?: string;
606
+ interface LabelProps extends Omit<TextProps, 'as' | 'render'> {
607
+ htmlFor?: string;
602
608
  }
603
- declare function Label({ className, ...props }: LabelProps): react_jsx_runtime.JSX.Element;
609
+ declare function Label({ size, weight, ...props }: LabelProps): react_jsx_runtime.JSX.Element;
604
610
 
605
611
  interface LoadingProps extends BoxProps {
606
612
  size?: 'sm' | 'md' | 'lg';
@@ -770,7 +776,7 @@ declare function Spinner(props: SpinnerProps): react_jsx_runtime.JSX.Element;
770
776
 
771
777
  interface StatusLightProps {
772
778
  color?: string;
773
- variant?: 'success' | 'warning' | 'error' | 'active' | 'inactive' | 'none';
779
+ variant?: 'info' | 'success' | 'warning' | 'error' | 'active' | 'inactive' | 'none';
774
780
  className?: string;
775
781
  children?: ReactNode;
776
782
  }
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { DisclosureGroupProps, DisclosureProps, DialogProps as DialogProps$1, BreadcrumbProps, BreadcrumbsProps, ButtonProps as ButtonProps$1, CalendarProps as CalendarProps$1, CheckboxProps as CheckboxProps$1, ListBoxProps, ListBoxItemProps, SeparatorProps, ListBoxSectionProps, ComboBoxProps as ComboBoxProps$1, ListBoxRenderProps, PopoverProps as PopoverProps$1, TableProps, TooltipProps as TooltipProps$1, LabelProps as LabelProps$1, MenuProps as MenuProps$1, MenuItemProps as MenuItemProps$1, MenuSectionProps as MenuSectionProps$1, SubmenuTriggerProps as SubmenuTriggerProps$1, ModalOverlayProps, ModalRenderProps, TextFieldProps as TextFieldProps$1, ProgressBarProps as ProgressBarProps$1, RadioGroupProps as RadioGroupProps$1, RadioProps, SearchFieldProps as SearchFieldProps$1, SelectProps as SelectProps$1, SelectValueRenderProps, SliderProps as SliderProps$1, SwitchProps as SwitchProps$1, TableHeaderProps, TableBodyProps, RowProps as RowProps$1, ColumnProps as ColumnProps$1, CellProps, TabsProps, TabListProps, TabProps, TabPanelProps, ToggleButtonProps, TagGroupProps, TagProps } from 'react-aria-components';
1
+ import { DisclosureGroupProps, DisclosureProps, DialogProps as DialogProps$1, BreadcrumbProps, BreadcrumbsProps, ButtonProps as ButtonProps$1, CalendarProps as CalendarProps$1, CheckboxProps as CheckboxProps$1, ListBoxProps, ListBoxItemProps, SeparatorProps, ListBoxSectionProps, ComboBoxProps as ComboBoxProps$1, ListBoxRenderProps, PopoverProps as PopoverProps$1, TableProps, TooltipProps as TooltipProps$1, MenuProps as MenuProps$1, MenuItemProps as MenuItemProps$1, MenuSectionProps as MenuSectionProps$1, SubmenuTriggerProps as SubmenuTriggerProps$1, ModalOverlayProps, ModalRenderProps, TextFieldProps as TextFieldProps$1, ProgressBarProps as ProgressBarProps$1, RadioGroupProps as RadioGroupProps$1, RadioProps, SearchFieldProps as SearchFieldProps$1, SelectProps as SelectProps$1, SelectValueRenderProps, SliderProps as SliderProps$1, SwitchProps as SwitchProps$1, TableHeaderProps, TableBodyProps, RowProps as RowProps$1, ColumnProps as ColumnProps$1, CellProps, TabsProps, TabListProps, TabProps, TabPanelProps, ToggleButtonProps, TagGroupProps, TagProps } from 'react-aria-components';
2
2
  export { BreadcrumbProps, BreadcrumbsProps, DialogTrigger, FileTrigger, Focusable, MenuTrigger, Pressable, RadioProps, RouterProvider, Selection, SubmenuTrigger, TabListProps, TabPanelProps, TabProps, TableBodyProps, TabsProps, TooltipTrigger } from 'react-aria-components';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import * as react from 'react';
@@ -9,14 +9,14 @@ import { UseFormProps, SubmitHandler, UseFormReturn, ControllerProps, Controller
9
9
  import * as zustand from 'zustand';
10
10
 
11
11
  interface AccordionProps extends DisclosureGroupProps {
12
- type: 'single' | 'multiple';
12
+ type?: 'single' | 'multiple';
13
13
  className?: string;
14
14
  children?: ReactNode;
15
15
  }
16
16
  interface AccordionItemProps extends DisclosureProps {
17
17
  }
18
18
  declare function Accordion({ className, children, ...props }: AccordionProps): react_jsx_runtime.JSX.Element;
19
- declare function AccordionItem({ defaultExpanded, className, children, ...props }: AccordionItemProps): react_jsx_runtime.JSX.Element;
19
+ declare function AccordionItem({ className, children, ...props }: AccordionItemProps): react_jsx_runtime.JSX.Element;
20
20
 
21
21
  interface AlertBannerProps {
22
22
  title?: ReactNode;
@@ -55,7 +55,7 @@ type Responsive<T> = T | Partial<Record<Breakpoint, T>>;
55
55
  type ColorName = 'gray' | 'slate' | 'zinc' | 'neutral' | 'stone' | 'red' | 'orange' | 'amber' | 'yellow' | 'lime' | 'green' | 'emerald' | 'teal' | 'cyan' | 'sky' | 'blue' | 'indigo' | 'violet' | 'purple' | 'fuchsia' | 'pink' | 'rose';
56
56
  type ColorShade = '50' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900' | '950';
57
57
  type TailwindColor = `${ColorName}-${ColorShade}`;
58
- type SemanticColor = 'primary' | 'muted' | 'disabled' | 'transparent';
58
+ type SemanticColor = 'primary' | 'secondary' | 'muted' | 'strong' | 'inverted' | 'disabled' | 'transparent';
59
59
  type SurfaceColor = 'surface-base' | 'surface-raised' | 'surface-sunken' | 'surface-overlay' | 'surface-inverted' | 'surface-disabled';
60
60
  type FontColor = SemanticColor | ColorName | TailwindColor | true;
61
61
  type BackgroundColor = SemanticColor | SurfaceColor | ColorName | TailwindColor | true;
@@ -165,6 +165,7 @@ interface TextRenderProps {
165
165
  declare function Text({ color, size, weight, align, spacing, lineHeight, wrap, whitespace, wordBreak, transform, indent, verticalAlign, truncate, italic, underline, strikethrough, decorationStyle, decorationColor, as, render, className, children, ...props }: TextProps): react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
166
166
 
167
167
  interface BlockquoteProps extends Omit<TextProps, 'as'> {
168
+ children?: ReactNode;
168
169
  }
169
170
  declare function Blockquote({ className, children, ...props }: BlockquoteProps): react_jsx_runtime.JSX.Element;
170
171
 
@@ -314,6 +315,7 @@ interface CheckboxProps extends CheckboxProps$1 {
314
315
  declare function Checkbox({ label, className, children, ...props }: CheckboxProps): react_jsx_runtime.JSX.Element;
315
316
 
316
317
  interface CodeProps extends Omit<TextProps, 'as'> {
318
+ children?: ReactNode;
317
319
  }
318
320
  declare function Code({ className, children, ...props }: CodeProps): react_jsx_runtime.JSX.Element;
319
321
 
@@ -332,6 +334,7 @@ interface FlexboxProps extends Omit<BoxProps, 'display' | 'gap'> {
332
334
  declare function Flexbox({ display, direction, wrap, justifyContent, justifyItems, alignContent, alignItems, gap, gapX, gapY, className, children, ...props }: FlexboxProps): react_jsx_runtime.JSX.Element;
333
335
 
334
336
  interface ColumnProps extends FlexboxProps {
337
+ children?: ReactNode;
335
338
  reverse?: boolean;
336
339
  }
337
340
  declare function Column({ reverse, children, ...props }: ColumnProps): react_jsx_runtime.JSX.Element;
@@ -434,6 +437,7 @@ interface DotsProps extends HTMLAttributes<HTMLDivElement> {
434
437
  declare function Dots({ size, className, color: _color, ...props }: DotsProps): react_jsx_runtime.JSX.Element;
435
438
 
436
439
  interface TooltipProps extends TooltipProps$1 {
440
+ children?: ReactNode;
437
441
  showArrow?: boolean;
438
442
  }
439
443
  declare function Tooltip({ children, className, showArrow, ...props }: TooltipProps): react_jsx_runtime.JSX.Element;
@@ -456,6 +460,7 @@ interface FormProps extends UseFormProps, Omit<HTMLAttributes<HTMLFormElement>,
456
460
  declare function Form({ autoComplete, onSubmit, error, preventSubmit, mode, disabled, reValidateMode, defaultValues, values, errors, resetOptions, resolver, context, shouldFocusError, shouldUnregister, shouldUseNativeValidation, progressive, criteriaMode, delayError, className, children, ...props }: FormProps): react_jsx_runtime.JSX.Element;
457
461
 
458
462
  interface RowProps extends FlexboxProps {
463
+ children?: ReactNode;
459
464
  reverse?: boolean;
460
465
  }
461
466
  declare function Row({ reverse, children, ...props }: RowProps): react_jsx_runtime.JSX.Element;
@@ -510,6 +515,7 @@ declare function FormSubmitButton({ variant, isDisabled, isLoading, children, ..
510
515
 
511
516
  type HeadingElement = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
512
517
  interface HeadingProps extends Omit<TextProps, 'as' | 'size'> {
518
+ children?: ReactNode;
513
519
  size?: Responsive<HeadingSize>;
514
520
  as?: HeadingElement;
515
521
  }
@@ -597,10 +603,10 @@ interface ImageProps extends HTMLAttributes<HTMLImageElement> {
597
603
  }
598
604
  declare function Image({ src, alt, objectFit, isCentered, borderRadius, shadow, className, ...props }: ImageProps): react_jsx_runtime.JSX.Element;
599
605
 
600
- interface LabelProps extends LabelProps$1 {
601
- className?: string;
606
+ interface LabelProps extends Omit<TextProps, 'as' | 'render'> {
607
+ htmlFor?: string;
602
608
  }
603
- declare function Label({ className, ...props }: LabelProps): react_jsx_runtime.JSX.Element;
609
+ declare function Label({ size, weight, ...props }: LabelProps): react_jsx_runtime.JSX.Element;
604
610
 
605
611
  interface LoadingProps extends BoxProps {
606
612
  size?: 'sm' | 'md' | 'lg';
@@ -770,7 +776,7 @@ declare function Spinner(props: SpinnerProps): react_jsx_runtime.JSX.Element;
770
776
 
771
777
  interface StatusLightProps {
772
778
  color?: string;
773
- variant?: 'success' | 'warning' | 'error' | 'active' | 'inactive' | 'none';
779
+ variant?: 'info' | 'success' | 'warning' | 'error' | 'active' | 'inactive' | 'none';
774
780
  className?: string;
775
781
  children?: ReactNode;
776
782
  }