@umami/react-zen 0.103.0 → 0.105.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 +25 -0
- package/dist/index.d.ts +15 -2
- package/dist/index.js +191 -132
- package/dist/index.mjs +175 -116
- package/package.json +1 -1
- package/styles.css +27 -0
package/dist/index.css
CHANGED
|
@@ -4260,6 +4260,31 @@ body a.Button_button__NDYwM {
|
|
|
4260
4260
|
color: var(--font-color-muted);
|
|
4261
4261
|
}
|
|
4262
4262
|
|
|
4263
|
+
/* virtual-css:css:0c4c35b74d5f22edf919d952c580c0e6 */
|
|
4264
|
+
.NavMenu_navmenu__OWVlM {
|
|
4265
|
+
font-size: var(--font-size);
|
|
4266
|
+
width: 100%;
|
|
4267
|
+
gap: var(--spacing-2);
|
|
4268
|
+
}
|
|
4269
|
+
.NavMenu_item__NGM0M {
|
|
4270
|
+
color: var(--font-color-muted);
|
|
4271
|
+
gap: var(--gap);
|
|
4272
|
+
padding: var(--padding);
|
|
4273
|
+
cursor: pointer;
|
|
4274
|
+
white-space: nowrap;
|
|
4275
|
+
overflow: hidden;
|
|
4276
|
+
transition: color 0.2s;
|
|
4277
|
+
}
|
|
4278
|
+
.NavMenu_item__NGM0M:hover {
|
|
4279
|
+
color: var(--font-color);
|
|
4280
|
+
background: var(--highlight-color);
|
|
4281
|
+
}
|
|
4282
|
+
.NavMenu_item__NGM0M.NavMenu_selected__MGRiN {
|
|
4283
|
+
color: var(--font-color);
|
|
4284
|
+
background: var(--highlight-color);
|
|
4285
|
+
font-weight: var(--font-weight-bold);
|
|
4286
|
+
}
|
|
4287
|
+
|
|
4263
4288
|
/* virtual-css:css:3547a441584a5024882cb71ab3ccf244 */
|
|
4264
4289
|
.PasswordField_icon__NTRlM {
|
|
4265
4290
|
position: absolute;
|
package/dist/index.d.ts
CHANGED
|
@@ -55,6 +55,7 @@ declare module '@umami/react-zen' {
|
|
|
55
55
|
export { Menu, MenuItem, MenuSection, MenuSeparator } from '@umami/react-zen/Menu';
|
|
56
56
|
export { Modal } from '@umami/react-zen/Modal';
|
|
57
57
|
export { Navbar, NavbarItem } from '@umami/react-zen/Navbar';
|
|
58
|
+
export { NavMenu, NavMenuItem } from '@umami/react-zen/NavMenu';
|
|
58
59
|
export { PasswordField } from '@umami/react-zen/PasswordField';
|
|
59
60
|
export { Popover } from '@umami/react-zen/Popover';
|
|
60
61
|
export { ProgressBar } from '@umami/react-zen/ProgressBar';
|
|
@@ -609,13 +610,12 @@ declare module '@umami/react-zen/Label' {
|
|
|
609
610
|
|
|
610
611
|
declare module '@umami/react-zen/List' {
|
|
611
612
|
import { ListBoxProps, SeparatorProps, ListBoxSectionProps, ListBoxItemProps } from 'react-aria-components';
|
|
612
|
-
import { HoverColor } from '@/lib/types';
|
|
613
613
|
export interface ListProps extends ListBoxProps<any> {
|
|
614
614
|
items?: any[];
|
|
615
615
|
idProperty?: string;
|
|
616
616
|
labelProperty?: string;
|
|
617
617
|
separatorProperty?: string;
|
|
618
|
-
highlightColor?:
|
|
618
|
+
highlightColor?: string;
|
|
619
619
|
showCheckmark?: boolean;
|
|
620
620
|
}
|
|
621
621
|
export function List({ items, idProperty, labelProperty, separatorProperty, highlightColor, showCheckmark, className, style, children, ...props }: ListProps): import("react").JSX.Element;
|
|
@@ -701,6 +701,19 @@ export interface NavbarItemProps extends HTMLAttributes<HTMLElement> {
|
|
|
701
701
|
export declare function NavbarItem({ label, children, className, ...props }: NavbarItemProps): import("react").JSX.Element;
|
|
702
702
|
export {};
|
|
703
703
|
|
|
704
|
+
declare module '@umami/react-zen/NavMenu' {
|
|
705
|
+
import { ColumnProps } from '@/components/Column';
|
|
706
|
+
import { RowProps } from '@/components/Row';
|
|
707
|
+
export interface NavMenuProps extends ColumnProps {
|
|
708
|
+
highlightColor?: string;
|
|
709
|
+
}
|
|
710
|
+
export function NavMenu({ highlightColor, className, style, children, ...props }: NavMenuProps): import("react").JSX.Element;
|
|
711
|
+
export interface NavMenuItemProps extends RowProps {
|
|
712
|
+
isSelected?: boolean;
|
|
713
|
+
}
|
|
714
|
+
export function NavMenuItem({ isSelected, className, children, ...props }: NavMenuItemProps): import("react").JSX.Element;
|
|
715
|
+
}
|
|
716
|
+
|
|
704
717
|
declare module '@umami/react-zen/PasswordField' {
|
|
705
718
|
import { TextFieldProps } from 'react-aria-components';
|
|
706
719
|
interface PasswordFieldProps extends TextFieldProps {
|