@umami/react-zen 0.200.0 → 0.201.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 CHANGED
@@ -3720,24 +3720,24 @@ body a.Button_button__NGQyO {
3720
3720
  }
3721
3721
 
3722
3722
  /* virtual-css:css:0fb02723d81c5960ed149d3d9f58f1ba */
3723
- .List_list__ZTRlN {
3723
+ .List_list__Yzk2Y {
3724
3724
  display: grid;
3725
3725
  outline: none;
3726
3726
  overflow: auto;
3727
3727
  gap: var(--spacing-1);
3728
3728
  }
3729
- .List_separator__ODIwN {
3729
+ .List_separator__ODZiZ {
3730
3730
  border-bottom: var(--border);
3731
3731
  }
3732
- .List_section__MzJmN:not(:last-child) {
3732
+ .List_section__NTI0O:not(:last-child) {
3733
3733
  margin-bottom: var(--spacing-4);
3734
3734
  }
3735
- .List_header__MzRmM {
3735
+ .List_header__MjE1Y {
3736
3736
  font-size: var(--font-size-3);
3737
3737
  font-weight: var(--font-weight-bold);
3738
3738
  padding: var(--padding);
3739
3739
  }
3740
- .List_item__ODM4N {
3740
+ .List_item__MzU5Y {
3741
3741
  display: flex;
3742
3742
  align-items: center;
3743
3743
  justify-content: space-between;
@@ -3750,29 +3750,40 @@ body a.Button_button__NGQyO {
3750
3750
  outline: none;
3751
3751
  border-radius: var(--border-radius);
3752
3752
  }
3753
- .List_item__ODM4N[data-disabled] {
3753
+ .List_item__MzU5Y[data-disabled] {
3754
3754
  color: var(--font-color-disabled);
3755
3755
  }
3756
- .List_item__ODM4N[data-focus],
3757
- .List_item__ODM4N[data-focus-visible] {
3756
+ .List_item__MzU5Y[data-focus],
3757
+ .List_item__MzU5Y[data-focus-visible] {
3758
3758
  background: var(--highlight-color);
3759
3759
  }
3760
- .List_item__ODM4N:hover {
3760
+ .List_item__MzU5Y:hover {
3761
3761
  background: var(--highlight-color);
3762
3762
  }
3763
- .List_item__ODM4N[data-selected] {
3763
+ .List_item__MzU5Y[data-selected] {
3764
3764
  font-weight: bold;
3765
- & .List_checkmark__NzY1N {
3765
+ & .List_checkmark__YzRiZ {
3766
3766
  display: flex;
3767
3767
  justify-content: flex-end;
3768
3768
  }
3769
3769
  }
3770
- .List_checkmark__NzY1N {
3770
+ .List_checkmark__YzRiZ {
3771
3771
  display: none;
3772
3772
  }
3773
- .List_hideCheckmark__NDhmN .List_checkmark__NzY1N {
3773
+ .List_hideCheckmark__NDlhN .List_checkmark__YzRiZ {
3774
3774
  display: none;
3775
3775
  }
3776
+ .List_fullscreen__NWMyY {
3777
+ display: block;
3778
+ padding: var(--spacing-3);
3779
+ border: 0;
3780
+ border-radius: 0;
3781
+ position: fixed;
3782
+ inset: 0;
3783
+ overflow: auto;
3784
+ z-index: 9999;
3785
+ background: var(--background-color);
3786
+ }
3776
3787
 
3777
3788
  /* virtual-css:css:8ac5a8adaf8e8de9ae56ee4600f2cfaa */
3778
3789
  .ComboBox_combobox__ZDYxZ {
@@ -4516,25 +4527,25 @@ body a.Button_button__NGQyO {
4516
4527
  }
4517
4528
 
4518
4529
  /* virtual-css:css:f94974973c639ccc39a8a6465cbebeb2 */
4519
- .Popover_popover__YmFhM[data-placement=top] {
4530
+ .Popover_popover__ZDgwN[data-placement=top] {
4520
4531
  --origin: translateY(8px);
4521
4532
  }
4522
- .Popover_popover__YmFhM[data-placement=bottom] {
4533
+ .Popover_popover__ZDgwN[data-placement=bottom] {
4523
4534
  --origin: translateY(-8px);
4524
4535
  }
4525
- .Popover_popover__YmFhM[data-placement=right] {
4536
+ .Popover_popover__ZDgwN[data-placement=right] {
4526
4537
  --origin: translateX(-8px);
4527
4538
  }
4528
- .Popover_popover__YmFhM[data-placement=left] {
4539
+ .Popover_popover__ZDgwN[data-placement=left] {
4529
4540
  --origin: translateX(8px);
4530
4541
  }
4531
- .Popover_popover__YmFhM[data-entering] {
4532
- animation: Popover_popover-slide__OGZjY 200ms;
4542
+ .Popover_popover__ZDgwN[data-entering] {
4543
+ animation: Popover_popover-slide__NGU0N 200ms;
4533
4544
  }
4534
- .Popover_popover__YmFhM[data-exiting] {
4535
- animation: Popover_popover-slide__OGZjY 200ms reverse ease-in;
4545
+ .Popover_popover__ZDgwN[data-exiting] {
4546
+ animation: Popover_popover-slide__NGU0N 200ms reverse ease-in;
4536
4547
  }
4537
- @keyframes Popover_popover-slide__OGZjY {
4548
+ @keyframes Popover_popover-slide__NGU0N {
4538
4549
  from {
4539
4550
  transform: var(--origin);
4540
4551
  opacity: 0;
@@ -4544,6 +4555,15 @@ body a.Button_button__NGQyO {
4544
4555
  opacity: 1;
4545
4556
  }
4546
4557
  }
4558
+ .Popover_fullscreen__MTcxY {
4559
+ display: block;
4560
+ border: 0;
4561
+ border-radius: 0;
4562
+ position: fixed;
4563
+ inset: 0;
4564
+ overflow: auto;
4565
+ z-index: 9999;
4566
+ }
4547
4567
 
4548
4568
  /* virtual-css:css:0e892dc2f62a700ee33f11aa6f8910ef */
4549
4569
  .ProgressBar_progressbar__YzdlO {
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { ButtonProps as ButtonProps$1, DisclosureGroupProps, DisclosureProps, DialogProps as DialogProps$1, BreadcrumbsProps, BreadcrumbProps, CalendarProps as CalendarProps$1, CheckboxProps as CheckboxProps$1, ListBoxProps, ListBoxItemProps, SeparatorProps, ListBoxSectionProps, ComboBoxProps as ComboBoxProps$1, ListBoxRenderProps, PopoverProps, 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, RadioProps, RadioGroupProps as RadioGroupProps$1, 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
- export { BreadcrumbProps, BreadcrumbsProps, DialogTrigger, FileTrigger, Focusable, MenuTrigger, PopoverProps, Pressable, RadioProps, RouterProvider, Selection, SubmenuTrigger, TabListProps, TabPanelProps, TabProps, TableBodyProps, TabsProps, TooltipTrigger } from 'react-aria-components';
1
+ import { ButtonProps as ButtonProps$1, DisclosureGroupProps, DisclosureProps, DialogProps as DialogProps$1, BreadcrumbProps, BreadcrumbsProps, 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';
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 from 'react';
4
4
  import { HTMLAttributes, ReactNode, ReactElement, Dispatch, SetStateAction } from 'react';
5
5
  import { UseFormProps, SubmitHandler, UseFormReturn, ControllerProps, ControllerRenderProps, FieldValues, ControllerFieldState, UseFormStateReturn, RegisterOptions } from 'react-hook-form';
@@ -219,6 +219,7 @@ declare function Toaster({ duration, position }: ToasterProps): react.JSX.Elemen
219
219
  interface ToastProviderProps extends ToasterProps {
220
220
  children: ReactNode;
221
221
  }
222
+ declare const ToastContext: react.Context<{}>;
222
223
  declare function ToastProvider({ children, ...props }: ToastProviderProps): react.JSX.Element;
223
224
 
224
225
  declare function useDebounce(value: string, delay: number): string;
@@ -230,6 +231,7 @@ interface ThemeState {
230
231
  initTheme: (preferred?: Theme, colorScheme?: 'light' | 'dark' | 'system') => void;
231
232
  }
232
233
  declare const useTheme: zustand.UseBoundStore<zustand.StoreApi<ThemeState>>;
234
+ declare function useInitTheme(preferred?: Theme, colorScheme?: 'light' | 'dark' | 'system'): void;
233
235
 
234
236
  type ToastVariant = 'success' | 'error';
235
237
  interface ToastOptions {
@@ -245,6 +247,7 @@ interface ToastState extends ToastOptions {
245
247
  message: string;
246
248
  timestamp: number;
247
249
  }
250
+ declare function removeToast(id: string): void;
248
251
  declare function useToast(): {
249
252
  toast: (message: string, options?: ToastOptions) => void;
250
253
  toasts: ToastState[];
@@ -332,11 +335,12 @@ interface ListProps extends ListBoxProps<any> {
332
335
  separatorProperty?: string;
333
336
  highlightColor?: string;
334
337
  showCheckmark?: boolean;
338
+ isFullscreen?: boolean;
335
339
  label?: string;
336
340
  value?: string[];
337
341
  onChange?: (value: string[]) => void;
338
342
  }
339
- declare function List({ id, items, idProperty, labelProperty, separatorProperty, highlightColor, showCheckmark, label, value, onChange, className, selectedKeys, defaultSelectedKeys, onSelectionChange, style, children, ...props }: ListProps): react.JSX.Element;
343
+ declare function List({ id, items, idProperty, labelProperty, separatorProperty, highlightColor, showCheckmark, isFullscreen, label, value, onChange, className, selectedKeys, defaultSelectedKeys, onSelectionChange, style, children, ...props }: ListProps): react.JSX.Element;
340
344
  interface ListItemProps extends ListBoxItemProps<any> {
341
345
  showCheckmark?: boolean;
342
346
  }
@@ -351,7 +355,7 @@ interface ComboBoxProps extends ComboBoxProps$1<any> {
351
355
  items?: any[];
352
356
  renderEmptyState?: (props: ListBoxRenderProps) => ReactNode;
353
357
  listProps?: ListProps;
354
- popoverProps?: PopoverProps;
358
+ popoverProps?: PopoverProps$1;
355
359
  }
356
360
  declare function ComboBox({ items, className, renderEmptyState, listProps, popoverProps, children, ...props }: ComboBoxProps): react.JSX.Element;
357
361
 
@@ -602,7 +606,10 @@ interface PasswordFieldProps extends TextFieldProps$1 {
602
606
  }
603
607
  declare function PasswordField({ label, className, ...props }: PasswordFieldProps): react.JSX.Element;
604
608
 
605
- declare function Popover({ children, className, ...props }: PopoverProps): react.JSX.Element;
609
+ interface PopoverProps extends PopoverProps$1 {
610
+ isFullscreen?: boolean;
611
+ }
612
+ declare function Popover({ children, isFullscreen, className, ...props }: PopoverProps): react.JSX.Element;
606
613
 
607
614
  interface ProgressBarProps extends ProgressBarProps$1 {
608
615
  showPercentage?: boolean;
@@ -642,16 +649,17 @@ interface SelectProps extends SelectProps$1<HTMLSelectElement> {
642
649
  allowSearch?: boolean;
643
650
  searchValue?: string;
644
651
  searchDelay?: number;
652
+ isFullscreen?: boolean;
645
653
  onSearch?: (value: string) => void;
646
654
  onChange?: (e: any) => void;
647
655
  buttonProps?: ButtonProps;
648
656
  listProps?: ListProps;
649
- popoverProps?: PopoverProps;
657
+ popoverProps?: PopoverProps$1;
650
658
  renderValue?: ReactNode | ((values: SelectValueRenderProps<object> & {
651
659
  defaultChildren: ReactNode;
652
660
  }) => ReactNode);
653
661
  }
654
- declare function Select({ items, value, defaultValue, label, isLoading, allowSearch, searchValue, searchDelay, onSearch, onSelectionChange, onChange, buttonProps, listProps, popoverProps, renderValue, className, children, ...props }: SelectProps): react.JSX.Element;
662
+ declare function Select({ items, value, defaultValue, label, isLoading, allowSearch, searchValue, searchDelay, isFullscreen, onSearch, onChange, buttonProps, listProps, popoverProps, renderValue, className, children, ...props }: SelectProps): react.JSX.Element;
655
663
 
656
664
  interface SidebarProps extends ColumnProps {
657
665
  itemBackgroundColor?: string;
@@ -764,4 +772,4 @@ interface ZenProviderProps {
764
772
  }
765
773
  declare function ZenProvider({ children, theme, colorScheme, toast, }: ZenProviderProps): react.JSX.Element;
766
774
 
767
- export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, AlertBanner, type AlertBannerProps, AlertDialog, type AlertDialogProps, Blockquote, type BlockquoteProps, Box, type BoxProps, Breadcrumb, Breadcrumbs, type BreakpointKey, Button, type ButtonProps, Calendar, type CalendarProps, Checkbox, type CheckboxProps, Code, type CodeProps, Column, type ColumnProps, ComboBox, type ComboBoxProps, ConfirmationDialog, type ConfirmationDialogProps, Container, type ContainerProps, CopyButton, DataCard, DataColumn, type DataColumnProps, DataTable, type DataTableProps, Dialog, type DialogProps, Dots, type DotsProps, Flexbox, type FlexboxProps, FloatingTooltip, type FloatingTooltipProps, Form, FormButtons, type FormButtonsProps, FormController, type FormControllerProps, FormField, FormFieldArray, type FormFieldArrayProps, type FormFieldProps, type FormProps, FormResetButton, type FormResetButtonProps, FormSubmitButton, Grid, type GridProps, Heading, type HeadingProps, type HoverButtonProps, HoverTrigger, Icon, IconLabel, type IconLabelProps, type IconProps, Image, type ImageProps, InlineEditField, type InlineEditFieldProps, Label, type LabelProps, List, ListItem, type ListItemProps, type ListProps, ListSection, type ListSectionProps, ListSeparator, Loading, LoadingButton, type LoadingButtonProps, type LoadingProps, Menu, MenuItem, type MenuItemProps, type MenuProps, MenuSection, type MenuSectionProps, MenuSeparator, Modal, type ModalProps, NavMenu, NavMenuGroup, type NavMenuGroupProps, NavMenuItem, type NavMenuItemProps, type NavMenuProps, Navbar, NavbarContext, NavbarItem, type NavbarItemProps, type NavbarProps, type NavigationContext, PasswordField, type PasswordFieldProps, Popover, ProgressBar, type ProgressBarProps, ProgressCircle, type ProgressCircleProps, Radio, RadioGroup, type RadioGroupProps, Row, type RowProps, SearchField, type SearchFieldProps, Select, type SelectProps, Sidebar, SidebarHeader, SidebarItem, type SidebarItemProps, type SidebarProps, SidebarSection, Slider, type SliderProps, Slot, Spinner, type SpinnerProps, StatusLight, type StatusLightProps, SubMenuTrigger, type SubmenuTriggerProps, Switch, type SwitchProps, Tab, TabList, TabPanel, Table, TableBody, TableCell, type TableCellProps, TableColumn, type TableColumnProps, TableHeader, TableRow, Tabs, Text, TextField, type TextFieldProps, type TextProps, ThemeButton, Toast, type ToastOptions, type ToastProps, ToastProvider, type ToastProviderProps, type ToastState, type ToastVariant, Toaster, type ToasterProps, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupProps, type ToggleProps, Tooltip, TooltipBubble, type TooltipBubbleProps, type TooltipProps, ZenProvider, type ZenProviderProps, useBreakpoint, useDebounce, useNavigationContext, useTheme, useToast };
775
+ export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, AlertBanner, type AlertBannerProps, AlertDialog, type AlertDialogProps, Blockquote, type BlockquoteProps, Box, type BoxProps, Breadcrumb, Breadcrumbs, type BreakpointKey, Button, type ButtonProps, Calendar, type CalendarProps, Checkbox, type CheckboxProps, Code, type CodeProps, Column, type ColumnProps, ComboBox, type ComboBoxProps, ConfirmationDialog, type ConfirmationDialogProps, Container, type ContainerProps, CopyButton, type CopyButtonProps, DataCard, type DataCardProps, DataColumn, type DataColumnProps, DataTable, type DataTableProps, Dialog, type DialogProps, Dots, type DotsProps, Flexbox, type FlexboxProps, FloatingTooltip, type FloatingTooltipProps, Form, FormButtons, type FormButtonsProps, FormController, type FormControllerProps, FormField, FormFieldArray, type FormFieldArrayProps, type FormFieldProps, type FormProps, FormResetButton, type FormResetButtonProps, FormSubmitButton, Grid, type GridProps, Heading, type HeadingProps, type HoverButtonProps, HoverTrigger, Icon, IconLabel, type IconLabelProps, type IconProps, Image, type ImageProps, InlineEditField, type InlineEditFieldProps, Label, type LabelProps, List, ListItem, type ListItemProps, type ListProps, ListSection, type ListSectionProps, ListSeparator, Loading, LoadingButton, type LoadingButtonProps, type LoadingProps, Menu, MenuItem, type MenuItemProps, type MenuProps, MenuSection, type MenuSectionProps, MenuSeparator, Modal, type ModalProps, NavMenu, NavMenuGroup, type NavMenuGroupProps, NavMenuItem, type NavMenuItemProps, type NavMenuProps, Navbar, NavbarContext, NavbarItem, type NavbarItemProps, type NavbarProps, type NavigationContext, PasswordField, type PasswordFieldProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, ProgressCircle, type ProgressCircleProps, Radio, RadioGroup, type RadioGroupProps, Row, type RowProps, SearchField, type SearchFieldProps, Select, type SelectProps, Sidebar, SidebarHeader, SidebarItem, type SidebarItemProps, type SidebarProps, SidebarSection, Slider, type SliderProps, Slot, Spinner, type SpinnerProps, StatusLight, type StatusLightProps, SubMenuTrigger, type SubmenuTriggerProps, Switch, type SwitchProps, Tab, TabList, TabPanel, Table, TableBody, TableCell, type TableCellProps, TableColumn, type TableColumnProps, TableHeader, TableRow, Tabs, Text, TextField, type TextFieldProps, type TextProps, type Theme, ThemeButton, Toast, ToastContext, type ToastOptions, type ToastPosition, type ToastProps, ToastProvider, type ToastProviderProps, type ToastState, type ToastVariant, Toaster, type ToasterProps, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupProps, type ToggleProps, Tooltip, TooltipBubble, type TooltipBubbleProps, type TooltipProps, ZenProvider, type ZenProviderProps, removeToast, useBreakpoint, useDebounce, useInitTheme, useNavigationContext, useTheme, useToast };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { ButtonProps as ButtonProps$1, DisclosureGroupProps, DisclosureProps, DialogProps as DialogProps$1, BreadcrumbsProps, BreadcrumbProps, CalendarProps as CalendarProps$1, CheckboxProps as CheckboxProps$1, ListBoxProps, ListBoxItemProps, SeparatorProps, ListBoxSectionProps, ComboBoxProps as ComboBoxProps$1, ListBoxRenderProps, PopoverProps, 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, RadioProps, RadioGroupProps as RadioGroupProps$1, 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
- export { BreadcrumbProps, BreadcrumbsProps, DialogTrigger, FileTrigger, Focusable, MenuTrigger, PopoverProps, Pressable, RadioProps, RouterProvider, Selection, SubmenuTrigger, TabListProps, TabPanelProps, TabProps, TableBodyProps, TabsProps, TooltipTrigger } from 'react-aria-components';
1
+ import { ButtonProps as ButtonProps$1, DisclosureGroupProps, DisclosureProps, DialogProps as DialogProps$1, BreadcrumbProps, BreadcrumbsProps, 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';
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 from 'react';
4
4
  import { HTMLAttributes, ReactNode, ReactElement, Dispatch, SetStateAction } from 'react';
5
5
  import { UseFormProps, SubmitHandler, UseFormReturn, ControllerProps, ControllerRenderProps, FieldValues, ControllerFieldState, UseFormStateReturn, RegisterOptions } from 'react-hook-form';
@@ -219,6 +219,7 @@ declare function Toaster({ duration, position }: ToasterProps): react.JSX.Elemen
219
219
  interface ToastProviderProps extends ToasterProps {
220
220
  children: ReactNode;
221
221
  }
222
+ declare const ToastContext: react.Context<{}>;
222
223
  declare function ToastProvider({ children, ...props }: ToastProviderProps): react.JSX.Element;
223
224
 
224
225
  declare function useDebounce(value: string, delay: number): string;
@@ -230,6 +231,7 @@ interface ThemeState {
230
231
  initTheme: (preferred?: Theme, colorScheme?: 'light' | 'dark' | 'system') => void;
231
232
  }
232
233
  declare const useTheme: zustand.UseBoundStore<zustand.StoreApi<ThemeState>>;
234
+ declare function useInitTheme(preferred?: Theme, colorScheme?: 'light' | 'dark' | 'system'): void;
233
235
 
234
236
  type ToastVariant = 'success' | 'error';
235
237
  interface ToastOptions {
@@ -245,6 +247,7 @@ interface ToastState extends ToastOptions {
245
247
  message: string;
246
248
  timestamp: number;
247
249
  }
250
+ declare function removeToast(id: string): void;
248
251
  declare function useToast(): {
249
252
  toast: (message: string, options?: ToastOptions) => void;
250
253
  toasts: ToastState[];
@@ -332,11 +335,12 @@ interface ListProps extends ListBoxProps<any> {
332
335
  separatorProperty?: string;
333
336
  highlightColor?: string;
334
337
  showCheckmark?: boolean;
338
+ isFullscreen?: boolean;
335
339
  label?: string;
336
340
  value?: string[];
337
341
  onChange?: (value: string[]) => void;
338
342
  }
339
- declare function List({ id, items, idProperty, labelProperty, separatorProperty, highlightColor, showCheckmark, label, value, onChange, className, selectedKeys, defaultSelectedKeys, onSelectionChange, style, children, ...props }: ListProps): react.JSX.Element;
343
+ declare function List({ id, items, idProperty, labelProperty, separatorProperty, highlightColor, showCheckmark, isFullscreen, label, value, onChange, className, selectedKeys, defaultSelectedKeys, onSelectionChange, style, children, ...props }: ListProps): react.JSX.Element;
340
344
  interface ListItemProps extends ListBoxItemProps<any> {
341
345
  showCheckmark?: boolean;
342
346
  }
@@ -351,7 +355,7 @@ interface ComboBoxProps extends ComboBoxProps$1<any> {
351
355
  items?: any[];
352
356
  renderEmptyState?: (props: ListBoxRenderProps) => ReactNode;
353
357
  listProps?: ListProps;
354
- popoverProps?: PopoverProps;
358
+ popoverProps?: PopoverProps$1;
355
359
  }
356
360
  declare function ComboBox({ items, className, renderEmptyState, listProps, popoverProps, children, ...props }: ComboBoxProps): react.JSX.Element;
357
361
 
@@ -602,7 +606,10 @@ interface PasswordFieldProps extends TextFieldProps$1 {
602
606
  }
603
607
  declare function PasswordField({ label, className, ...props }: PasswordFieldProps): react.JSX.Element;
604
608
 
605
- declare function Popover({ children, className, ...props }: PopoverProps): react.JSX.Element;
609
+ interface PopoverProps extends PopoverProps$1 {
610
+ isFullscreen?: boolean;
611
+ }
612
+ declare function Popover({ children, isFullscreen, className, ...props }: PopoverProps): react.JSX.Element;
606
613
 
607
614
  interface ProgressBarProps extends ProgressBarProps$1 {
608
615
  showPercentage?: boolean;
@@ -642,16 +649,17 @@ interface SelectProps extends SelectProps$1<HTMLSelectElement> {
642
649
  allowSearch?: boolean;
643
650
  searchValue?: string;
644
651
  searchDelay?: number;
652
+ isFullscreen?: boolean;
645
653
  onSearch?: (value: string) => void;
646
654
  onChange?: (e: any) => void;
647
655
  buttonProps?: ButtonProps;
648
656
  listProps?: ListProps;
649
- popoverProps?: PopoverProps;
657
+ popoverProps?: PopoverProps$1;
650
658
  renderValue?: ReactNode | ((values: SelectValueRenderProps<object> & {
651
659
  defaultChildren: ReactNode;
652
660
  }) => ReactNode);
653
661
  }
654
- declare function Select({ items, value, defaultValue, label, isLoading, allowSearch, searchValue, searchDelay, onSearch, onSelectionChange, onChange, buttonProps, listProps, popoverProps, renderValue, className, children, ...props }: SelectProps): react.JSX.Element;
662
+ declare function Select({ items, value, defaultValue, label, isLoading, allowSearch, searchValue, searchDelay, isFullscreen, onSearch, onChange, buttonProps, listProps, popoverProps, renderValue, className, children, ...props }: SelectProps): react.JSX.Element;
655
663
 
656
664
  interface SidebarProps extends ColumnProps {
657
665
  itemBackgroundColor?: string;
@@ -764,4 +772,4 @@ interface ZenProviderProps {
764
772
  }
765
773
  declare function ZenProvider({ children, theme, colorScheme, toast, }: ZenProviderProps): react.JSX.Element;
766
774
 
767
- export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, AlertBanner, type AlertBannerProps, AlertDialog, type AlertDialogProps, Blockquote, type BlockquoteProps, Box, type BoxProps, Breadcrumb, Breadcrumbs, type BreakpointKey, Button, type ButtonProps, Calendar, type CalendarProps, Checkbox, type CheckboxProps, Code, type CodeProps, Column, type ColumnProps, ComboBox, type ComboBoxProps, ConfirmationDialog, type ConfirmationDialogProps, Container, type ContainerProps, CopyButton, DataCard, DataColumn, type DataColumnProps, DataTable, type DataTableProps, Dialog, type DialogProps, Dots, type DotsProps, Flexbox, type FlexboxProps, FloatingTooltip, type FloatingTooltipProps, Form, FormButtons, type FormButtonsProps, FormController, type FormControllerProps, FormField, FormFieldArray, type FormFieldArrayProps, type FormFieldProps, type FormProps, FormResetButton, type FormResetButtonProps, FormSubmitButton, Grid, type GridProps, Heading, type HeadingProps, type HoverButtonProps, HoverTrigger, Icon, IconLabel, type IconLabelProps, type IconProps, Image, type ImageProps, InlineEditField, type InlineEditFieldProps, Label, type LabelProps, List, ListItem, type ListItemProps, type ListProps, ListSection, type ListSectionProps, ListSeparator, Loading, LoadingButton, type LoadingButtonProps, type LoadingProps, Menu, MenuItem, type MenuItemProps, type MenuProps, MenuSection, type MenuSectionProps, MenuSeparator, Modal, type ModalProps, NavMenu, NavMenuGroup, type NavMenuGroupProps, NavMenuItem, type NavMenuItemProps, type NavMenuProps, Navbar, NavbarContext, NavbarItem, type NavbarItemProps, type NavbarProps, type NavigationContext, PasswordField, type PasswordFieldProps, Popover, ProgressBar, type ProgressBarProps, ProgressCircle, type ProgressCircleProps, Radio, RadioGroup, type RadioGroupProps, Row, type RowProps, SearchField, type SearchFieldProps, Select, type SelectProps, Sidebar, SidebarHeader, SidebarItem, type SidebarItemProps, type SidebarProps, SidebarSection, Slider, type SliderProps, Slot, Spinner, type SpinnerProps, StatusLight, type StatusLightProps, SubMenuTrigger, type SubmenuTriggerProps, Switch, type SwitchProps, Tab, TabList, TabPanel, Table, TableBody, TableCell, type TableCellProps, TableColumn, type TableColumnProps, TableHeader, TableRow, Tabs, Text, TextField, type TextFieldProps, type TextProps, ThemeButton, Toast, type ToastOptions, type ToastProps, ToastProvider, type ToastProviderProps, type ToastState, type ToastVariant, Toaster, type ToasterProps, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupProps, type ToggleProps, Tooltip, TooltipBubble, type TooltipBubbleProps, type TooltipProps, ZenProvider, type ZenProviderProps, useBreakpoint, useDebounce, useNavigationContext, useTheme, useToast };
775
+ export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, AlertBanner, type AlertBannerProps, AlertDialog, type AlertDialogProps, Blockquote, type BlockquoteProps, Box, type BoxProps, Breadcrumb, Breadcrumbs, type BreakpointKey, Button, type ButtonProps, Calendar, type CalendarProps, Checkbox, type CheckboxProps, Code, type CodeProps, Column, type ColumnProps, ComboBox, type ComboBoxProps, ConfirmationDialog, type ConfirmationDialogProps, Container, type ContainerProps, CopyButton, type CopyButtonProps, DataCard, type DataCardProps, DataColumn, type DataColumnProps, DataTable, type DataTableProps, Dialog, type DialogProps, Dots, type DotsProps, Flexbox, type FlexboxProps, FloatingTooltip, type FloatingTooltipProps, Form, FormButtons, type FormButtonsProps, FormController, type FormControllerProps, FormField, FormFieldArray, type FormFieldArrayProps, type FormFieldProps, type FormProps, FormResetButton, type FormResetButtonProps, FormSubmitButton, Grid, type GridProps, Heading, type HeadingProps, type HoverButtonProps, HoverTrigger, Icon, IconLabel, type IconLabelProps, type IconProps, Image, type ImageProps, InlineEditField, type InlineEditFieldProps, Label, type LabelProps, List, ListItem, type ListItemProps, type ListProps, ListSection, type ListSectionProps, ListSeparator, Loading, LoadingButton, type LoadingButtonProps, type LoadingProps, Menu, MenuItem, type MenuItemProps, type MenuProps, MenuSection, type MenuSectionProps, MenuSeparator, Modal, type ModalProps, NavMenu, NavMenuGroup, type NavMenuGroupProps, NavMenuItem, type NavMenuItemProps, type NavMenuProps, Navbar, NavbarContext, NavbarItem, type NavbarItemProps, type NavbarProps, type NavigationContext, PasswordField, type PasswordFieldProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, ProgressCircle, type ProgressCircleProps, Radio, RadioGroup, type RadioGroupProps, Row, type RowProps, SearchField, type SearchFieldProps, Select, type SelectProps, Sidebar, SidebarHeader, SidebarItem, type SidebarItemProps, type SidebarProps, SidebarSection, Slider, type SliderProps, Slot, Spinner, type SpinnerProps, StatusLight, type StatusLightProps, SubMenuTrigger, type SubmenuTriggerProps, Switch, type SwitchProps, Tab, TabList, TabPanel, Table, TableBody, TableCell, type TableCellProps, TableColumn, type TableColumnProps, TableHeader, TableRow, Tabs, Text, TextField, type TextFieldProps, type TextProps, type Theme, ThemeButton, Toast, ToastContext, type ToastOptions, type ToastPosition, type ToastProps, ToastProvider, type ToastProviderProps, type ToastState, type ToastVariant, Toaster, type ToasterProps, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupProps, type ToggleProps, Tooltip, TooltipBubble, type TooltipBubbleProps, type TooltipProps, ZenProvider, type ZenProviderProps, removeToast, useBreakpoint, useDebounce, useInitTheme, useNavigationContext, useTheme, useToast };
package/dist/index.js CHANGED
@@ -320,6 +320,7 @@ __export(index_exports, {
320
320
  TextField: () => TextField2,
321
321
  ThemeButton: () => ThemeButton,
322
322
  Toast: () => Toast,
323
+ ToastContext: () => ToastContext,
323
324
  ToastProvider: () => ToastProvider,
324
325
  Toaster: () => Toaster,
325
326
  Toggle: () => Toggle,
@@ -329,8 +330,10 @@ __export(index_exports, {
329
330
  TooltipBubble: () => TooltipBubble,
330
331
  TooltipTrigger: () => $4e3b923658d69c60$export$8c610744efcf8a1d,
331
332
  ZenProvider: () => ZenProvider,
333
+ removeToast: () => removeToast,
332
334
  useBreakpoint: () => useBreakpoint,
333
335
  useDebounce: () => useDebounce,
336
+ useInitTheme: () => useInitTheme,
334
337
  useNavigationContext: () => useNavigationContext,
335
338
  useTheme: () => useTheme,
336
339
  useToast: () => useToast
@@ -33346,7 +33349,7 @@ function getHighlightColor(color) {
33346
33349
  }
33347
33350
 
33348
33351
  // css-modules:E:\dev\umami-react-zen\src\components\List.module.css
33349
- var List_default = { "list": "List_list__ZTRlN", "separator": "List_separator__ODIwN", "section": "List_section__MzJmN", "header": "List_header__MzRmM", "item": "List_item__ODM4N", "checkmark": "List_checkmark__NzY1N", "hideCheckmark": "List_hideCheckmark__NDhmN" };
33352
+ var List_default = { "list": "List_list__Yzk2Y", "separator": "List_separator__ODZiZ", "section": "List_section__NTI0O", "header": "List_header__MjE1Y", "item": "List_item__MzU5Y", "checkmark": "List_checkmark__YzRiZ", "hideCheckmark": "List_hideCheckmark__NDlhN", "fullscreen": "List_fullscreen__NWMyY" };
33350
33353
 
33351
33354
  // src/components/List.tsx
33352
33355
  var import_jsx_runtime34 = require("react/jsx-runtime");
@@ -33355,9 +33358,10 @@ function List({
33355
33358
  items = [],
33356
33359
  idProperty = "id",
33357
33360
  labelProperty = "label",
33358
- separatorProperty = "separatpr",
33361
+ separatorProperty = "separator",
33359
33362
  highlightColor,
33360
33363
  showCheckmark = true,
33364
+ isFullscreen,
33361
33365
  label,
33362
33366
  value,
33363
33367
  onChange,
@@ -33387,7 +33391,12 @@ function List({
33387
33391
  selectedKeys: value || selectedKeys,
33388
33392
  defaultSelectedKeys: value || defaultSelectedKeys,
33389
33393
  items,
33390
- className: (0, import_classnames21.default)(List_default.list, className, !showCheckmark && List_default.hideCheckmark),
33394
+ className: (0, import_classnames21.default)(
33395
+ List_default.list,
33396
+ className,
33397
+ !showCheckmark && List_default.hideCheckmark,
33398
+ isFullscreen && List_default.fullscreen
33399
+ ),
33391
33400
  onSelectionChange: handleSelectionChange,
33392
33401
  style: { ...style, ...getHighlightColor(highlightColor) },
33393
33402
  children: children || items?.map((item) => {
@@ -34305,12 +34314,19 @@ function PasswordField({ label, className, ...props }) {
34305
34314
  var import_classnames41 = __toESM(require_classnames());
34306
34315
 
34307
34316
  // css-modules:E:\dev\umami-react-zen\src\components\Popover.module.css
34308
- var Popover_default = { "popover": "Popover_popover__YmFhM", "popover-slide": "Popover_popover-slide__OGZjY" };
34317
+ var Popover_default = { "popover": "Popover_popover__ZDgwN", "popover-slide": "Popover_popover-slide__NGU0N", "fullscreen": "Popover_fullscreen__MTcxY" };
34309
34318
 
34310
34319
  // src/components/Popover.tsx
34311
34320
  var import_jsx_runtime58 = require("react/jsx-runtime");
34312
- function Popover2({ children, className, ...props }) {
34313
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)($07b14b47974efb58$export$5b6b19405a83ff9d, { ...props, className: (0, import_classnames41.default)(Popover_default.popover, className), children });
34321
+ function Popover2({ children, isFullscreen, className, ...props }) {
34322
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
34323
+ $07b14b47974efb58$export$5b6b19405a83ff9d,
34324
+ {
34325
+ ...props,
34326
+ className: (0, import_classnames41.default)(Popover_default.popover, isFullscreen && Popover_default.fullscreen, className),
34327
+ children
34328
+ }
34329
+ );
34314
34330
  }
34315
34331
 
34316
34332
  // src/components/ProgressBar.tsx
@@ -34466,8 +34482,8 @@ function Select2({
34466
34482
  allowSearch,
34467
34483
  searchValue,
34468
34484
  searchDelay,
34485
+ isFullscreen,
34469
34486
  onSearch,
34470
- onSelectionChange,
34471
34487
  onChange,
34472
34488
  buttonProps,
34473
34489
  listProps,
@@ -34479,7 +34495,6 @@ function Select2({
34479
34495
  }) {
34480
34496
  const [search, setSearch] = (0, import_react201.useState)("");
34481
34497
  const handleChange = (e) => {
34482
- onSelectionChange?.(e);
34483
34498
  onChange?.(e);
34484
34499
  };
34485
34500
  const handleSearch = (value2) => {
@@ -34496,9 +34511,9 @@ function Select2({
34496
34511
  "aria-label": "Select",
34497
34512
  ...props,
34498
34513
  className: (0, import_classnames46.default)(Select_default.select, className),
34499
- selectedKey: value,
34500
- defaultSelectedKey: defaultValue,
34501
- onSelectionChange: handleChange,
34514
+ value,
34515
+ defaultValue,
34516
+ onChange: handleChange,
34502
34517
  children: [
34503
34518
  label && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Label2, { children: label }),
34504
34519
  /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
@@ -34513,7 +34528,7 @@ function Select2({
34513
34528
  ] })
34514
34529
  }
34515
34530
  ),
34516
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Popover2, { ...popoverProps, onOpenChange: handleOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: Select_default.list, children: [
34531
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Popover2, { ...popoverProps, onOpenChange: handleOpenChange, isFullscreen, children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: Select_default.list, children: [
34517
34532
  allowSearch && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
34518
34533
  SearchField2,
34519
34534
  {
@@ -34531,6 +34546,7 @@ function Select2({
34531
34546
  {
34532
34547
  ...listProps,
34533
34548
  items,
34549
+ isFullscreen,
34534
34550
  style: { ...listProps?.style, display: isLoading ? "none" : void 0 },
34535
34551
  children
34536
34552
  }
package/dist/index.mjs CHANGED
@@ -33224,7 +33224,7 @@ function getHighlightColor(color) {
33224
33224
  }
33225
33225
 
33226
33226
  // css-modules:E:\dev\umami-react-zen\src\components\List.module.css
33227
- var List_default = { "list": "List_list__ZTRlN", "separator": "List_separator__ODIwN", "section": "List_section__MzJmN", "header": "List_header__MzRmM", "item": "List_item__ODM4N", "checkmark": "List_checkmark__NzY1N", "hideCheckmark": "List_hideCheckmark__NDhmN" };
33227
+ var List_default = { "list": "List_list__Yzk2Y", "separator": "List_separator__ODZiZ", "section": "List_section__NTI0O", "header": "List_header__MjE1Y", "item": "List_item__MzU5Y", "checkmark": "List_checkmark__YzRiZ", "hideCheckmark": "List_hideCheckmark__NDlhN", "fullscreen": "List_fullscreen__NWMyY" };
33228
33228
 
33229
33229
  // src/components/List.tsx
33230
33230
  import { Fragment as Fragment4, jsx as jsx34, jsxs as jsxs18 } from "react/jsx-runtime";
@@ -33233,9 +33233,10 @@ function List({
33233
33233
  items = [],
33234
33234
  idProperty = "id",
33235
33235
  labelProperty = "label",
33236
- separatorProperty = "separatpr",
33236
+ separatorProperty = "separator",
33237
33237
  highlightColor,
33238
33238
  showCheckmark = true,
33239
+ isFullscreen,
33239
33240
  label,
33240
33241
  value,
33241
33242
  onChange,
@@ -33265,7 +33266,12 @@ function List({
33265
33266
  selectedKeys: value || selectedKeys,
33266
33267
  defaultSelectedKeys: value || defaultSelectedKeys,
33267
33268
  items,
33268
- className: (0, import_classnames21.default)(List_default.list, className, !showCheckmark && List_default.hideCheckmark),
33269
+ className: (0, import_classnames21.default)(
33270
+ List_default.list,
33271
+ className,
33272
+ !showCheckmark && List_default.hideCheckmark,
33273
+ isFullscreen && List_default.fullscreen
33274
+ ),
33269
33275
  onSelectionChange: handleSelectionChange,
33270
33276
  style: { ...style, ...getHighlightColor(highlightColor) },
33271
33277
  children: children || items?.map((item) => {
@@ -34187,12 +34193,19 @@ function PasswordField({ label, className, ...props }) {
34187
34193
  var import_classnames41 = __toESM(require_classnames());
34188
34194
 
34189
34195
  // css-modules:E:\dev\umami-react-zen\src\components\Popover.module.css
34190
- var Popover_default = { "popover": "Popover_popover__YmFhM", "popover-slide": "Popover_popover-slide__OGZjY" };
34196
+ var Popover_default = { "popover": "Popover_popover__ZDgwN", "popover-slide": "Popover_popover-slide__NGU0N", "fullscreen": "Popover_fullscreen__MTcxY" };
34191
34197
 
34192
34198
  // src/components/Popover.tsx
34193
34199
  import { jsx as jsx58 } from "react/jsx-runtime";
34194
- function Popover2({ children, className, ...props }) {
34195
- return /* @__PURE__ */ jsx58($07b14b47974efb58$export$5b6b19405a83ff9d, { ...props, className: (0, import_classnames41.default)(Popover_default.popover, className), children });
34200
+ function Popover2({ children, isFullscreen, className, ...props }) {
34201
+ return /* @__PURE__ */ jsx58(
34202
+ $07b14b47974efb58$export$5b6b19405a83ff9d,
34203
+ {
34204
+ ...props,
34205
+ className: (0, import_classnames41.default)(Popover_default.popover, isFullscreen && Popover_default.fullscreen, className),
34206
+ children
34207
+ }
34208
+ );
34196
34209
  }
34197
34210
 
34198
34211
  // src/components/ProgressBar.tsx
@@ -34348,8 +34361,8 @@ function Select2({
34348
34361
  allowSearch,
34349
34362
  searchValue,
34350
34363
  searchDelay,
34364
+ isFullscreen,
34351
34365
  onSearch,
34352
- onSelectionChange,
34353
34366
  onChange,
34354
34367
  buttonProps,
34355
34368
  listProps,
@@ -34361,7 +34374,6 @@ function Select2({
34361
34374
  }) {
34362
34375
  const [search, setSearch] = useState19("");
34363
34376
  const handleChange = (e) => {
34364
- onSelectionChange?.(e);
34365
34377
  onChange?.(e);
34366
34378
  };
34367
34379
  const handleSearch = (value2) => {
@@ -34378,9 +34390,9 @@ function Select2({
34378
34390
  "aria-label": "Select",
34379
34391
  ...props,
34380
34392
  className: (0, import_classnames46.default)(Select_default.select, className),
34381
- selectedKey: value,
34382
- defaultSelectedKey: defaultValue,
34383
- onSelectionChange: handleChange,
34393
+ value,
34394
+ defaultValue,
34395
+ onChange: handleChange,
34384
34396
  children: [
34385
34397
  label && /* @__PURE__ */ jsx63(Label2, { children: label }),
34386
34398
  /* @__PURE__ */ jsx63(
@@ -34395,7 +34407,7 @@ function Select2({
34395
34407
  ] })
34396
34408
  }
34397
34409
  ),
34398
- /* @__PURE__ */ jsx63(Popover2, { ...popoverProps, onOpenChange: handleOpenChange, children: /* @__PURE__ */ jsxs38("div", { className: Select_default.list, children: [
34410
+ /* @__PURE__ */ jsx63(Popover2, { ...popoverProps, onOpenChange: handleOpenChange, isFullscreen, children: /* @__PURE__ */ jsxs38("div", { className: Select_default.list, children: [
34399
34411
  allowSearch && /* @__PURE__ */ jsx63(
34400
34412
  SearchField2,
34401
34413
  {
@@ -34413,6 +34425,7 @@ function Select2({
34413
34425
  {
34414
34426
  ...listProps,
34415
34427
  items,
34428
+ isFullscreen,
34416
34429
  style: { ...listProps?.style, display: isLoading ? "none" : void 0 },
34417
34430
  children
34418
34431
  }
@@ -34823,6 +34836,7 @@ export {
34823
34836
  TextField2 as TextField,
34824
34837
  ThemeButton,
34825
34838
  Toast,
34839
+ ToastContext,
34826
34840
  ToastProvider,
34827
34841
  Toaster,
34828
34842
  Toggle,
@@ -34832,8 +34846,10 @@ export {
34832
34846
  TooltipBubble,
34833
34847
  $4e3b923658d69c60$export$8c610744efcf8a1d as TooltipTrigger,
34834
34848
  ZenProvider,
34849
+ removeToast,
34835
34850
  useBreakpoint,
34836
34851
  useDebounce,
34852
+ useInitTheme,
34837
34853
  useNavigationContext,
34838
34854
  useTheme,
34839
34855
  useToast
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umami/react-zen",
3
- "version": "0.200.0",
3
+ "version": "0.201.0",
4
4
  "description": "Modern, minimalist React component library",
5
5
  "author": "Umami <hello@umami.is>",
6
6
  "license": "MIT",
package/styles.css CHANGED
@@ -4038,24 +4038,24 @@ body a.Button_button__NGQyO {
4038
4038
  }
4039
4039
 
4040
4040
  /* virtual-css:css:0fb02723d81c5960ed149d3d9f58f1ba */
4041
- .List_list__ZTRlN {
4041
+ .List_list__Yzk2Y {
4042
4042
  display: grid;
4043
4043
  outline: none;
4044
4044
  overflow: auto;
4045
4045
  gap: var(--spacing-1);
4046
4046
  }
4047
- .List_separator__ODIwN {
4047
+ .List_separator__ODZiZ {
4048
4048
  border-bottom: var(--border);
4049
4049
  }
4050
- .List_section__MzJmN:not(:last-child) {
4050
+ .List_section__NTI0O:not(:last-child) {
4051
4051
  margin-bottom: var(--spacing-4);
4052
4052
  }
4053
- .List_header__MzRmM {
4053
+ .List_header__MjE1Y {
4054
4054
  font-size: var(--font-size-3);
4055
4055
  font-weight: var(--font-weight-bold);
4056
4056
  padding: var(--padding);
4057
4057
  }
4058
- .List_item__ODM4N {
4058
+ .List_item__MzU5Y {
4059
4059
  display: flex;
4060
4060
  align-items: center;
4061
4061
  justify-content: space-between;
@@ -4068,29 +4068,40 @@ body a.Button_button__NGQyO {
4068
4068
  outline: none;
4069
4069
  border-radius: var(--border-radius);
4070
4070
  }
4071
- .List_item__ODM4N[data-disabled] {
4071
+ .List_item__MzU5Y[data-disabled] {
4072
4072
  color: var(--font-color-disabled);
4073
4073
  }
4074
- .List_item__ODM4N[data-focus],
4075
- .List_item__ODM4N[data-focus-visible] {
4074
+ .List_item__MzU5Y[data-focus],
4075
+ .List_item__MzU5Y[data-focus-visible] {
4076
4076
  background: var(--highlight-color);
4077
4077
  }
4078
- .List_item__ODM4N:hover {
4078
+ .List_item__MzU5Y:hover {
4079
4079
  background: var(--highlight-color);
4080
4080
  }
4081
- .List_item__ODM4N[data-selected] {
4081
+ .List_item__MzU5Y[data-selected] {
4082
4082
  font-weight: bold;
4083
- & .List_checkmark__NzY1N {
4083
+ & .List_checkmark__YzRiZ {
4084
4084
  display: flex;
4085
4085
  justify-content: flex-end;
4086
4086
  }
4087
4087
  }
4088
- .List_checkmark__NzY1N {
4088
+ .List_checkmark__YzRiZ {
4089
4089
  display: none;
4090
4090
  }
4091
- .List_hideCheckmark__NDhmN .List_checkmark__NzY1N {
4091
+ .List_hideCheckmark__NDlhN .List_checkmark__YzRiZ {
4092
4092
  display: none;
4093
4093
  }
4094
+ .List_fullscreen__NWMyY {
4095
+ display: block;
4096
+ padding: var(--spacing-3);
4097
+ border: 0;
4098
+ border-radius: 0;
4099
+ position: fixed;
4100
+ inset: 0;
4101
+ overflow: auto;
4102
+ z-index: 9999;
4103
+ background: var(--background-color);
4104
+ }
4094
4105
 
4095
4106
  /* virtual-css:css:8ac5a8adaf8e8de9ae56ee4600f2cfaa */
4096
4107
  .ComboBox_combobox__ZDYxZ {
@@ -4834,25 +4845,25 @@ body a.Button_button__NGQyO {
4834
4845
  }
4835
4846
 
4836
4847
  /* virtual-css:css:f94974973c639ccc39a8a6465cbebeb2 */
4837
- .Popover_popover__YmFhM[data-placement=top] {
4848
+ .Popover_popover__ZDgwN[data-placement=top] {
4838
4849
  --origin: translateY(8px);
4839
4850
  }
4840
- .Popover_popover__YmFhM[data-placement=bottom] {
4851
+ .Popover_popover__ZDgwN[data-placement=bottom] {
4841
4852
  --origin: translateY(-8px);
4842
4853
  }
4843
- .Popover_popover__YmFhM[data-placement=right] {
4854
+ .Popover_popover__ZDgwN[data-placement=right] {
4844
4855
  --origin: translateX(-8px);
4845
4856
  }
4846
- .Popover_popover__YmFhM[data-placement=left] {
4857
+ .Popover_popover__ZDgwN[data-placement=left] {
4847
4858
  --origin: translateX(8px);
4848
4859
  }
4849
- .Popover_popover__YmFhM[data-entering] {
4850
- animation: Popover_popover-slide__OGZjY 200ms;
4860
+ .Popover_popover__ZDgwN[data-entering] {
4861
+ animation: Popover_popover-slide__NGU0N 200ms;
4851
4862
  }
4852
- .Popover_popover__YmFhM[data-exiting] {
4853
- animation: Popover_popover-slide__OGZjY 200ms reverse ease-in;
4863
+ .Popover_popover__ZDgwN[data-exiting] {
4864
+ animation: Popover_popover-slide__NGU0N 200ms reverse ease-in;
4854
4865
  }
4855
- @keyframes Popover_popover-slide__OGZjY {
4866
+ @keyframes Popover_popover-slide__NGU0N {
4856
4867
  from {
4857
4868
  transform: var(--origin);
4858
4869
  opacity: 0;
@@ -4862,6 +4873,15 @@ body a.Button_button__NGQyO {
4862
4873
  opacity: 1;
4863
4874
  }
4864
4875
  }
4876
+ .Popover_fullscreen__MTcxY {
4877
+ display: block;
4878
+ border: 0;
4879
+ border-radius: 0;
4880
+ position: fixed;
4881
+ inset: 0;
4882
+ overflow: auto;
4883
+ z-index: 9999;
4884
+ }
4865
4885
 
4866
4886
  /* virtual-css:css:0e892dc2f62a700ee33f11aa6f8910ef */
4867
4887
  .ProgressBar_progressbar__YzdlO {