@umami/react-zen 0.176.0 → 0.178.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
@@ -4170,7 +4170,7 @@ body a.Button_button__NGQyO {
4170
4170
  }
4171
4171
 
4172
4172
  /* virtual-css:css:685b6ac8ab5c6b43c34d2fc83c3b107d */
4173
- .Loading_loading__MzE0Y {
4173
+ .Loading_loading__M2YyY {
4174
4174
  position: relative;
4175
4175
  display: flex;
4176
4176
  justify-content: center;
@@ -4178,7 +4178,7 @@ body a.Button_button__NGQyO {
4178
4178
  flex: 1;
4179
4179
  pointer-events: none;
4180
4180
  }
4181
- .Loading_page__OWMxN {
4181
+ .Loading_absolute__N2IxN {
4182
4182
  position: absolute;
4183
4183
  top: 0;
4184
4184
  left: 0;
@@ -4186,15 +4186,15 @@ body a.Button_button__NGQyO {
4186
4186
  bottom: 0;
4187
4187
  margin: auto;
4188
4188
  }
4189
- .Loading_center__ZWRmO {
4189
+ .Loading_center__ZmUzM {
4190
4190
  margin: auto;
4191
4191
  }
4192
- .Loading_inline__NmJkY {
4192
+ .Loading_inline__MTFhM {
4193
4193
  display: inline-flex;
4194
4194
  }
4195
4195
 
4196
4196
  /* virtual-css:css:3130df15a3cfaee8cb812b182afb7ee1 */
4197
- .Menu_menu__NjQ5M {
4197
+ .Menu_menu__MDZlN {
4198
4198
  min-width: 200px;
4199
4199
  border: var(--border);
4200
4200
  border-radius: var(--border-radius);
@@ -4203,19 +4203,19 @@ body a.Button_button__NGQyO {
4203
4203
  background: var(--background-color);
4204
4204
  overflow: hidden;
4205
4205
  }
4206
- .Menu_separator__Mjg5Y {
4206
+ .Menu_separator__ZmMzZ {
4207
4207
  border-bottom: var(--border);
4208
4208
  margin: var(--spacing-2) calc(-1 * var(--spacing-3));
4209
4209
  }
4210
- .Menu_section__NThhN:not(:last-child) {
4210
+ .Menu_section__OGU4Y:not(:last-child) {
4211
4211
  margin-bottom: var(--spacing-4);
4212
4212
  }
4213
- .Menu_header__ZjQ0Z {
4213
+ .Menu_header__YmNkN {
4214
4214
  font-size: var(--font-size-3);
4215
4215
  font-weight: var(--font-weight-bold);
4216
4216
  padding: var(--padding);
4217
4217
  }
4218
- .Menu_item__MWVhY {
4218
+ .Menu_item__YjkxY {
4219
4219
  display: flex;
4220
4220
  align-items: center;
4221
4221
  justify-content: space-between;
@@ -4229,33 +4229,34 @@ body a.Button_button__NGQyO {
4229
4229
  outline: none;
4230
4230
  width: 100%;
4231
4231
  }
4232
- .Menu_item__MWVhY[data-disabled] {
4232
+ .Menu_item__YjkxY[data-disabled] {
4233
4233
  color: var(--font-color-disabled);
4234
4234
  }
4235
- .Menu_item__MWVhY[data-focus],
4236
- .Menu_item__MWVhY[data-focus-visible] {
4235
+ .Menu_item__YjkxY[data-focus],
4236
+ .Menu_item__YjkxY[data-focus-visible] {
4237
4237
  outline: var(--outline);
4238
4238
  background: var(--highlight-color);
4239
4239
  }
4240
- .Menu_item__MWVhY:hover {
4240
+ .Menu_item__YjkxY:hover {
4241
4241
  background: var(--highlight-color);
4242
4242
  }
4243
- .Menu_item__MWVhY[data-selected] {
4243
+ .Menu_item__YjkxY[data-selected] {
4244
4244
  font-weight: bold;
4245
- & .Menu_checkmark__ZWVlY {
4245
+ & .Menu_checkmark__OTM5Y {
4246
4246
  display: flex;
4247
4247
  justify-content: flex-end;
4248
4248
  }
4249
4249
  }
4250
- .Menu_checkmark__ZWVlY {
4250
+ .Menu_checkmark__OTM5Y {
4251
4251
  display: none;
4252
4252
  }
4253
- .Menu_hideCheckmark__MDQxM .Menu_checkmark__ZWVlY {
4253
+ .Menu_hideCheckmark__NWJjY .Menu_checkmark__OTM5Y {
4254
4254
  display: none;
4255
4255
  }
4256
- .Menu_label__NGU5Z {
4256
+ .Menu_label__YjgwY {
4257
4257
  display: flex;
4258
4258
  flex-direction: row;
4259
+ align-items: center;
4259
4260
  gap: var(--gap);
4260
4261
  }
4261
4262
 
@@ -4968,14 +4969,14 @@ body a.Button_button__NGQyO {
4968
4969
  }
4969
4970
 
4970
4971
  /* virtual-css:css:c0d584d0daeaec1be71f8a50d43bf66c */
4971
- .ThemeButton_button__Zjc5N {
4972
- width: 50px;
4972
+ .ThemeButton_button__MDUzN {
4973
+ width: 42px;
4973
4974
  display: flex;
4974
4975
  justify-content: center;
4975
4976
  align-items: center;
4976
4977
  cursor: pointer;
4977
4978
  }
4978
- .ThemeButton_button__Zjc5N > div {
4979
+ .ThemeButton_button__MDUzN > div {
4979
4980
  display: flex;
4980
4981
  justify-content: center;
4981
4982
  align-items: center;
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
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, 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';
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
2
  export { BreadcrumbProps, BreadcrumbsProps, DialogTrigger, FileTrigger, Focusable, MenuTrigger, PopoverProps, 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';
@@ -471,10 +471,10 @@ declare function Label({ className, ...props }: LabelProps): react.JSX.Element;
471
471
  interface LoadingProps {
472
472
  size?: 'sm' | 'md' | 'lg';
473
473
  icon?: 'dots' | 'spinner';
474
- position?: 'page' | 'center' | 'inline';
474
+ placement?: 'absolute' | 'center' | 'inline';
475
475
  className?: string;
476
476
  }
477
- declare function Loading(props: LoadingProps): react.JSX.Element;
477
+ declare function Loading({ size, placement, icon, className, ...props }: LoadingProps): react.JSX.Element;
478
478
 
479
479
  interface MenuProps extends MenuProps$1<any> {
480
480
  className?: string;
@@ -490,6 +490,9 @@ interface MenuSectionProps extends MenuSectionProps$1<any> {
490
490
  title?: string;
491
491
  }
492
492
  declare function MenuSection({ title, className, children, ...props }: MenuSectionProps): react.JSX.Element;
493
+ interface SubmenuTriggerProps extends SubmenuTriggerProps$1 {
494
+ }
495
+ declare function SubMenuTrigger({ children, ...props }: SubmenuTriggerProps): react.JSX.Element;
493
496
 
494
497
  interface ModalProps extends ModalOverlayProps {
495
498
  position?: 'center' | 'top' | 'bottom' | 'left' | 'right' | 'fullscreen';
@@ -720,4 +723,4 @@ interface ZenProviderProps {
720
723
  }
721
724
  declare function ZenProvider({ children, ...props }: ZenProviderProps): react.JSX.Element;
722
725
 
723
- export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, AlertBanner, type AlertBannerProps, AlertDialog, type AlertDialogProps, Blockquote, type BlockquoteProps, Box, type BoxProps, Breadcrumb, Breadcrumbs, Button, type ButtonProps, Calendar, type CalendarProps, Checkbox, type CheckboxProps, Code, type CodeProps, Column, type ColumnProps, ComboBox, type ComboBoxProps, ConfirmationDialog, type ConfirmationDialogProps, Container, type ContainerProps, 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, 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, Switch, type SwitchProps, Tab, TabList, TabPanel, Table, TableBody, TableCell, type TableCellProps, TableColumn, type TableColumnProps, TableHeader, TableRow, Tabs, Text, TextField, type TextFieldProps, type TextProps, ThemeButton, type ThemeButtonProps, 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, useDebounce, useNavigationContext, useTheme, useToast };
726
+ export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, AlertBanner, type AlertBannerProps, AlertDialog, type AlertDialogProps, Blockquote, type BlockquoteProps, Box, type BoxProps, Breadcrumb, Breadcrumbs, Button, type ButtonProps, Calendar, type CalendarProps, Checkbox, type CheckboxProps, Code, type CodeProps, Column, type ColumnProps, ComboBox, type ComboBoxProps, ConfirmationDialog, type ConfirmationDialogProps, Container, type ContainerProps, 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, 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, type ThemeButtonProps, 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, useDebounce, useNavigationContext, useTheme, useToast };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
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, 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';
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
2
  export { BreadcrumbProps, BreadcrumbsProps, DialogTrigger, FileTrigger, Focusable, MenuTrigger, PopoverProps, 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';
@@ -471,10 +471,10 @@ declare function Label({ className, ...props }: LabelProps): react.JSX.Element;
471
471
  interface LoadingProps {
472
472
  size?: 'sm' | 'md' | 'lg';
473
473
  icon?: 'dots' | 'spinner';
474
- position?: 'page' | 'center' | 'inline';
474
+ placement?: 'absolute' | 'center' | 'inline';
475
475
  className?: string;
476
476
  }
477
- declare function Loading(props: LoadingProps): react.JSX.Element;
477
+ declare function Loading({ size, placement, icon, className, ...props }: LoadingProps): react.JSX.Element;
478
478
 
479
479
  interface MenuProps extends MenuProps$1<any> {
480
480
  className?: string;
@@ -490,6 +490,9 @@ interface MenuSectionProps extends MenuSectionProps$1<any> {
490
490
  title?: string;
491
491
  }
492
492
  declare function MenuSection({ title, className, children, ...props }: MenuSectionProps): react.JSX.Element;
493
+ interface SubmenuTriggerProps extends SubmenuTriggerProps$1 {
494
+ }
495
+ declare function SubMenuTrigger({ children, ...props }: SubmenuTriggerProps): react.JSX.Element;
493
496
 
494
497
  interface ModalProps extends ModalOverlayProps {
495
498
  position?: 'center' | 'top' | 'bottom' | 'left' | 'right' | 'fullscreen';
@@ -720,4 +723,4 @@ interface ZenProviderProps {
720
723
  }
721
724
  declare function ZenProvider({ children, ...props }: ZenProviderProps): react.JSX.Element;
722
725
 
723
- export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, AlertBanner, type AlertBannerProps, AlertDialog, type AlertDialogProps, Blockquote, type BlockquoteProps, Box, type BoxProps, Breadcrumb, Breadcrumbs, Button, type ButtonProps, Calendar, type CalendarProps, Checkbox, type CheckboxProps, Code, type CodeProps, Column, type ColumnProps, ComboBox, type ComboBoxProps, ConfirmationDialog, type ConfirmationDialogProps, Container, type ContainerProps, 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, 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, Switch, type SwitchProps, Tab, TabList, TabPanel, Table, TableBody, TableCell, type TableCellProps, TableColumn, type TableColumnProps, TableHeader, TableRow, Tabs, Text, TextField, type TextFieldProps, type TextProps, ThemeButton, type ThemeButtonProps, 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, useDebounce, useNavigationContext, useTheme, useToast };
726
+ export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, AlertBanner, type AlertBannerProps, AlertDialog, type AlertDialogProps, Blockquote, type BlockquoteProps, Box, type BoxProps, Breadcrumb, Breadcrumbs, Button, type ButtonProps, Calendar, type CalendarProps, Checkbox, type CheckboxProps, Code, type CodeProps, Column, type ColumnProps, ComboBox, type ComboBoxProps, ConfirmationDialog, type ConfirmationDialogProps, Container, type ContainerProps, 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, 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, type ThemeButtonProps, 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, useDebounce, useNavigationContext, useTheme, useToast };
package/dist/index.js CHANGED
@@ -300,6 +300,7 @@ __export(index_exports, {
300
300
  Slot: () => Slot,
301
301
  Spinner: () => Spinner,
302
302
  StatusLight: () => StatusLight,
303
+ SubMenuTrigger: () => SubMenuTrigger,
303
304
  SubmenuTrigger: () => $3674c52c6b3c5bce$export$ecabc99eeffab7ca,
304
305
  Switch: () => Switch2,
305
306
  Tab: () => Tab,
@@ -33562,14 +33563,19 @@ function InlineEditField({
33562
33563
  var import_classnames35 = __toESM(require_classnames());
33563
33564
 
33564
33565
  // css-modules:E:\dev\umami-react-zen\src\components\Loading.module.css
33565
- var Loading_default = { "loading": "Loading_loading__MzE0Y", "page": "Loading_page__OWMxN", "center": "Loading_center__ZWRmO", "inline": "Loading_inline__NmJkY" };
33566
+ var Loading_default = { "loading": "Loading_loading__M2YyY", "absolute": "Loading_absolute__N2IxN", "center": "Loading_center__ZmUzM", "inline": "Loading_inline__MTFhM" };
33566
33567
 
33567
33568
  // src/components/Loading.tsx
33568
33569
  var import_jsx_runtime50 = require("react/jsx-runtime");
33569
- function Loading(props) {
33570
- const { size, position = "inline", icon = "spinner", className, ...domProps } = props;
33571
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { ...domProps, className: (0, import_classnames35.default)(Loading_default.loading, className, Loading_default[position]), children: [
33572
- icon === "dots" && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Dots, {}),
33570
+ function Loading({
33571
+ size,
33572
+ placement = "inline",
33573
+ icon = "spinner",
33574
+ className,
33575
+ ...props
33576
+ }) {
33577
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { ...props, className: (0, import_classnames35.default)(Loading_default.loading, className, Loading_default[placement]), children: [
33578
+ icon === "dots" && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Dots, { size }),
33573
33579
  icon === "spinner" && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Spinner, { size })
33574
33580
  ] });
33575
33581
  }
@@ -33578,7 +33584,7 @@ function Loading(props) {
33578
33584
  var import_classnames36 = __toESM(require_classnames());
33579
33585
 
33580
33586
  // css-modules:E:\dev\umami-react-zen\src\components\Menu.module.css
33581
- var Menu_default = { "menu": "Menu_menu__NjQ5M", "separator": "Menu_separator__Mjg5Y", "section": "Menu_section__NThhN", "header": "Menu_header__ZjQ0Z", "item": "Menu_item__MWVhY", "checkmark": "Menu_checkmark__ZWVlY", "hideCheckmark": "Menu_hideCheckmark__MDQxM", "label": "Menu_label__NGU5Z" };
33587
+ var Menu_default = { "menu": "Menu_menu__MDZlN", "separator": "Menu_separator__ZmMzZ", "section": "Menu_section__OGU4Y", "header": "Menu_header__YmNkN", "item": "Menu_item__YjkxY", "checkmark": "Menu_checkmark__OTM5Y", "hideCheckmark": "Menu_hideCheckmark__NWJjY", "label": "Menu_label__YjgwY" };
33582
33588
 
33583
33589
  // src/components/Menu.tsx
33584
33590
  var import_jsx_runtime51 = require("react/jsx-runtime");
@@ -33600,6 +33606,9 @@ function MenuSection({ title, className, children, ...props }) {
33600
33606
  children
33601
33607
  ] });
33602
33608
  }
33609
+ function SubMenuTrigger({ children, ...props }) {
33610
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)($3674c52c6b3c5bce$export$ecabc99eeffab7ca, { ...props, children });
33611
+ }
33603
33612
 
33604
33613
  // src/components/Modal.tsx
33605
33614
  var import_classnames37 = __toESM(require_classnames());
@@ -33983,7 +33992,7 @@ function Select2({
33983
33992
  autoFocus: true
33984
33993
  }
33985
33994
  ),
33986
- isLoading && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Loading, { icon: "dots", position: "center", size: "sm" }),
33995
+ isLoading && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Loading, { icon: "dots", placement: "center", size: "sm" }),
33987
33996
  /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
33988
33997
  List,
33989
33998
  {
@@ -34179,7 +34188,7 @@ function TabPanel2({ children, ...props }) {
34179
34188
  var import_classnames51 = __toESM(require_classnames());
34180
34189
 
34181
34190
  // css-modules:E:\dev\umami-react-zen\src\components\ThemeButton.module.css
34182
- var ThemeButton_default = { "button": "ThemeButton_button__Zjc5N" };
34191
+ var ThemeButton_default = { "button": "ThemeButton_button__MDUzN" };
34183
34192
 
34184
34193
  // src/components/ThemeButton.tsx
34185
34194
  var import_jsx_runtime67 = require("react/jsx-runtime");
package/dist/index.mjs CHANGED
@@ -33445,14 +33445,19 @@ function InlineEditField({
33445
33445
  var import_classnames35 = __toESM(require_classnames());
33446
33446
 
33447
33447
  // css-modules:E:\dev\umami-react-zen\src\components\Loading.module.css
33448
- var Loading_default = { "loading": "Loading_loading__MzE0Y", "page": "Loading_page__OWMxN", "center": "Loading_center__ZWRmO", "inline": "Loading_inline__NmJkY" };
33448
+ var Loading_default = { "loading": "Loading_loading__M2YyY", "absolute": "Loading_absolute__N2IxN", "center": "Loading_center__ZmUzM", "inline": "Loading_inline__MTFhM" };
33449
33449
 
33450
33450
  // src/components/Loading.tsx
33451
33451
  import { jsx as jsx50, jsxs as jsxs27 } from "react/jsx-runtime";
33452
- function Loading(props) {
33453
- const { size, position = "inline", icon = "spinner", className, ...domProps } = props;
33454
- return /* @__PURE__ */ jsxs27("div", { ...domProps, className: (0, import_classnames35.default)(Loading_default.loading, className, Loading_default[position]), children: [
33455
- icon === "dots" && /* @__PURE__ */ jsx50(Dots, {}),
33452
+ function Loading({
33453
+ size,
33454
+ placement = "inline",
33455
+ icon = "spinner",
33456
+ className,
33457
+ ...props
33458
+ }) {
33459
+ return /* @__PURE__ */ jsxs27("div", { ...props, className: (0, import_classnames35.default)(Loading_default.loading, className, Loading_default[placement]), children: [
33460
+ icon === "dots" && /* @__PURE__ */ jsx50(Dots, { size }),
33456
33461
  icon === "spinner" && /* @__PURE__ */ jsx50(Spinner, { size })
33457
33462
  ] });
33458
33463
  }
@@ -33461,7 +33466,7 @@ function Loading(props) {
33461
33466
  var import_classnames36 = __toESM(require_classnames());
33462
33467
 
33463
33468
  // css-modules:E:\dev\umami-react-zen\src\components\Menu.module.css
33464
- var Menu_default = { "menu": "Menu_menu__NjQ5M", "separator": "Menu_separator__Mjg5Y", "section": "Menu_section__NThhN", "header": "Menu_header__ZjQ0Z", "item": "Menu_item__MWVhY", "checkmark": "Menu_checkmark__ZWVlY", "hideCheckmark": "Menu_hideCheckmark__MDQxM", "label": "Menu_label__NGU5Z" };
33469
+ var Menu_default = { "menu": "Menu_menu__MDZlN", "separator": "Menu_separator__ZmMzZ", "section": "Menu_section__OGU4Y", "header": "Menu_header__YmNkN", "item": "Menu_item__YjkxY", "checkmark": "Menu_checkmark__OTM5Y", "hideCheckmark": "Menu_hideCheckmark__NWJjY", "label": "Menu_label__YjgwY" };
33465
33470
 
33466
33471
  // src/components/Menu.tsx
33467
33472
  import { jsx as jsx51, jsxs as jsxs28 } from "react/jsx-runtime";
@@ -33483,6 +33488,9 @@ function MenuSection({ title, className, children, ...props }) {
33483
33488
  children
33484
33489
  ] });
33485
33490
  }
33491
+ function SubMenuTrigger({ children, ...props }) {
33492
+ return /* @__PURE__ */ jsx51($3674c52c6b3c5bce$export$ecabc99eeffab7ca, { ...props, children });
33493
+ }
33486
33494
 
33487
33495
  // src/components/Modal.tsx
33488
33496
  var import_classnames37 = __toESM(require_classnames());
@@ -33870,7 +33878,7 @@ function Select2({
33870
33878
  autoFocus: true
33871
33879
  }
33872
33880
  ),
33873
- isLoading && /* @__PURE__ */ jsx61(Loading, { icon: "dots", position: "center", size: "sm" }),
33881
+ isLoading && /* @__PURE__ */ jsx61(Loading, { icon: "dots", placement: "center", size: "sm" }),
33874
33882
  /* @__PURE__ */ jsx61(
33875
33883
  List,
33876
33884
  {
@@ -34066,7 +34074,7 @@ function TabPanel2({ children, ...props }) {
34066
34074
  var import_classnames51 = __toESM(require_classnames());
34067
34075
 
34068
34076
  // css-modules:E:\dev\umami-react-zen\src\components\ThemeButton.module.css
34069
- var ThemeButton_default = { "button": "ThemeButton_button__Zjc5N" };
34077
+ var ThemeButton_default = { "button": "ThemeButton_button__MDUzN" };
34070
34078
 
34071
34079
  // src/components/ThemeButton.tsx
34072
34080
  import { jsx as jsx67, jsxs as jsxs41 } from "react/jsx-runtime";
@@ -34268,6 +34276,7 @@ export {
34268
34276
  Slot,
34269
34277
  Spinner,
34270
34278
  StatusLight,
34279
+ SubMenuTrigger,
34271
34280
  $3674c52c6b3c5bce$export$ecabc99eeffab7ca as SubmenuTrigger,
34272
34281
  Switch2 as Switch,
34273
34282
  Tab,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umami/react-zen",
3
- "version": "0.176.0",
3
+ "version": "0.178.0",
4
4
  "description": "Modern, minimalist React component library",
5
5
  "author": "Umami <hello@umami.is>",
6
6
  "license": "MIT",
package/styles.css CHANGED
@@ -4488,7 +4488,7 @@ body a.Button_button__NGQyO {
4488
4488
  }
4489
4489
 
4490
4490
  /* virtual-css:css:685b6ac8ab5c6b43c34d2fc83c3b107d */
4491
- .Loading_loading__MzE0Y {
4491
+ .Loading_loading__M2YyY {
4492
4492
  position: relative;
4493
4493
  display: flex;
4494
4494
  justify-content: center;
@@ -4496,7 +4496,7 @@ body a.Button_button__NGQyO {
4496
4496
  flex: 1;
4497
4497
  pointer-events: none;
4498
4498
  }
4499
- .Loading_page__OWMxN {
4499
+ .Loading_absolute__N2IxN {
4500
4500
  position: absolute;
4501
4501
  top: 0;
4502
4502
  left: 0;
@@ -4504,15 +4504,15 @@ body a.Button_button__NGQyO {
4504
4504
  bottom: 0;
4505
4505
  margin: auto;
4506
4506
  }
4507
- .Loading_center__ZWRmO {
4507
+ .Loading_center__ZmUzM {
4508
4508
  margin: auto;
4509
4509
  }
4510
- .Loading_inline__NmJkY {
4510
+ .Loading_inline__MTFhM {
4511
4511
  display: inline-flex;
4512
4512
  }
4513
4513
 
4514
4514
  /* virtual-css:css:3130df15a3cfaee8cb812b182afb7ee1 */
4515
- .Menu_menu__NjQ5M {
4515
+ .Menu_menu__MDZlN {
4516
4516
  min-width: 200px;
4517
4517
  border: var(--border);
4518
4518
  border-radius: var(--border-radius);
@@ -4521,19 +4521,19 @@ body a.Button_button__NGQyO {
4521
4521
  background: var(--background-color);
4522
4522
  overflow: hidden;
4523
4523
  }
4524
- .Menu_separator__Mjg5Y {
4524
+ .Menu_separator__ZmMzZ {
4525
4525
  border-bottom: var(--border);
4526
4526
  margin: var(--spacing-2) calc(-1 * var(--spacing-3));
4527
4527
  }
4528
- .Menu_section__NThhN:not(:last-child) {
4528
+ .Menu_section__OGU4Y:not(:last-child) {
4529
4529
  margin-bottom: var(--spacing-4);
4530
4530
  }
4531
- .Menu_header__ZjQ0Z {
4531
+ .Menu_header__YmNkN {
4532
4532
  font-size: var(--font-size-3);
4533
4533
  font-weight: var(--font-weight-bold);
4534
4534
  padding: var(--padding);
4535
4535
  }
4536
- .Menu_item__MWVhY {
4536
+ .Menu_item__YjkxY {
4537
4537
  display: flex;
4538
4538
  align-items: center;
4539
4539
  justify-content: space-between;
@@ -4547,33 +4547,34 @@ body a.Button_button__NGQyO {
4547
4547
  outline: none;
4548
4548
  width: 100%;
4549
4549
  }
4550
- .Menu_item__MWVhY[data-disabled] {
4550
+ .Menu_item__YjkxY[data-disabled] {
4551
4551
  color: var(--font-color-disabled);
4552
4552
  }
4553
- .Menu_item__MWVhY[data-focus],
4554
- .Menu_item__MWVhY[data-focus-visible] {
4553
+ .Menu_item__YjkxY[data-focus],
4554
+ .Menu_item__YjkxY[data-focus-visible] {
4555
4555
  outline: var(--outline);
4556
4556
  background: var(--highlight-color);
4557
4557
  }
4558
- .Menu_item__MWVhY:hover {
4558
+ .Menu_item__YjkxY:hover {
4559
4559
  background: var(--highlight-color);
4560
4560
  }
4561
- .Menu_item__MWVhY[data-selected] {
4561
+ .Menu_item__YjkxY[data-selected] {
4562
4562
  font-weight: bold;
4563
- & .Menu_checkmark__ZWVlY {
4563
+ & .Menu_checkmark__OTM5Y {
4564
4564
  display: flex;
4565
4565
  justify-content: flex-end;
4566
4566
  }
4567
4567
  }
4568
- .Menu_checkmark__ZWVlY {
4568
+ .Menu_checkmark__OTM5Y {
4569
4569
  display: none;
4570
4570
  }
4571
- .Menu_hideCheckmark__MDQxM .Menu_checkmark__ZWVlY {
4571
+ .Menu_hideCheckmark__NWJjY .Menu_checkmark__OTM5Y {
4572
4572
  display: none;
4573
4573
  }
4574
- .Menu_label__NGU5Z {
4574
+ .Menu_label__YjgwY {
4575
4575
  display: flex;
4576
4576
  flex-direction: row;
4577
+ align-items: center;
4577
4578
  gap: var(--gap);
4578
4579
  }
4579
4580
 
@@ -5286,14 +5287,14 @@ body a.Button_button__NGQyO {
5286
5287
  }
5287
5288
 
5288
5289
  /* virtual-css:css:c0d584d0daeaec1be71f8a50d43bf66c */
5289
- .ThemeButton_button__Zjc5N {
5290
- width: 50px;
5290
+ .ThemeButton_button__MDUzN {
5291
+ width: 42px;
5291
5292
  display: flex;
5292
5293
  justify-content: center;
5293
5294
  align-items: center;
5294
5295
  cursor: pointer;
5295
5296
  }
5296
- .ThemeButton_button__Zjc5N > div {
5297
+ .ThemeButton_button__MDUzN > div {
5297
5298
  display: flex;
5298
5299
  justify-content: center;
5299
5300
  align-items: center;