@umami/react-zen 0.102.0 → 0.104.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 +38 -29
- package/dist/index.d.ts +17 -2
- package/dist/index.js +198 -130
- package/dist/index.mjs +182 -114
- package/package.json +1 -1
- package/styles.css +40 -29
package/dist/index.css
CHANGED
|
@@ -3955,24 +3955,24 @@ body a.Button_button__NDYwM {
|
|
|
3955
3955
|
}
|
|
3956
3956
|
|
|
3957
3957
|
/* virtual-css:css:0fb02723d81c5960ed149d3d9f58f1ba */
|
|
3958
|
-
.
|
|
3958
|
+
.List_list__YjBiO {
|
|
3959
3959
|
display: grid;
|
|
3960
3960
|
outline: none;
|
|
3961
3961
|
overflow: auto;
|
|
3962
3962
|
gap: var(--spacing-1);
|
|
3963
3963
|
}
|
|
3964
|
-
.
|
|
3964
|
+
.List_separator__MjkwN {
|
|
3965
3965
|
border-bottom: var(--border);
|
|
3966
3966
|
}
|
|
3967
|
-
.
|
|
3967
|
+
.List_section__NmQzZ:not(:last-child) {
|
|
3968
3968
|
margin-bottom: var(--spacing-4);
|
|
3969
3969
|
}
|
|
3970
|
-
.
|
|
3970
|
+
.List_header__MjQ4N {
|
|
3971
3971
|
font-size: var(--font-size-2);
|
|
3972
3972
|
font-weight: var(--font-weight-bold);
|
|
3973
3973
|
padding: var(--padding);
|
|
3974
3974
|
}
|
|
3975
|
-
.
|
|
3975
|
+
.List_item__MWYwM {
|
|
3976
3976
|
display: flex;
|
|
3977
3977
|
align-items: center;
|
|
3978
3978
|
justify-content: space-between;
|
|
@@ -3985,43 +3985,28 @@ body a.Button_button__NDYwM {
|
|
|
3985
3985
|
outline: none;
|
|
3986
3986
|
border-radius: var(--border-radius);
|
|
3987
3987
|
}
|
|
3988
|
-
.
|
|
3988
|
+
.List_item__MWYwM[data-disabled] {
|
|
3989
3989
|
color: var(--font-color-disabled);
|
|
3990
3990
|
}
|
|
3991
|
-
.
|
|
3992
|
-
.
|
|
3991
|
+
.List_item__MWYwM[data-focus],
|
|
3992
|
+
.List_item__MWYwM[data-focus-visible] {
|
|
3993
3993
|
background: var(--highlight-color);
|
|
3994
3994
|
}
|
|
3995
|
-
.
|
|
3995
|
+
.List_item__MWYwM:hover {
|
|
3996
3996
|
background: var(--highlight-color);
|
|
3997
3997
|
}
|
|
3998
|
-
.
|
|
3998
|
+
.List_item__MWYwM[data-selected] {
|
|
3999
3999
|
font-weight: bold;
|
|
4000
|
-
& .
|
|
4000
|
+
& .List_checkmark__YjhhM {
|
|
4001
4001
|
display: flex;
|
|
4002
4002
|
justify-content: flex-end;
|
|
4003
4003
|
flex: 1;
|
|
4004
4004
|
}
|
|
4005
4005
|
}
|
|
4006
|
-
.
|
|
4007
|
-
|
|
4008
|
-
.List_item__YmJhM[data-selected] {
|
|
4009
|
-
background: var(--base-color-2);
|
|
4010
|
-
}
|
|
4011
|
-
}
|
|
4012
|
-
.List_variant-2__MGZhY {
|
|
4013
|
-
& .List_item__YmJhM:hover,
|
|
4014
|
-
.List_item__YmJhM[data-selected] {
|
|
4015
|
-
background: var(--base-color-3);
|
|
4016
|
-
}
|
|
4017
|
-
}
|
|
4018
|
-
.List_variant-3__MmJkZ {
|
|
4019
|
-
& .List_item__YmJhM:hover,
|
|
4020
|
-
.List_item__YmJhM[data-selected] {
|
|
4021
|
-
background: var(--base-color-4);
|
|
4022
|
-
}
|
|
4006
|
+
.List_checkmark__YjhhM {
|
|
4007
|
+
display: none;
|
|
4023
4008
|
}
|
|
4024
|
-
.
|
|
4009
|
+
.List_hideCheckmark__OTEyO .List_checkmark__YjhhM {
|
|
4025
4010
|
display: none;
|
|
4026
4011
|
}
|
|
4027
4012
|
|
|
@@ -4275,6 +4260,30 @@ body a.Button_button__NDYwM {
|
|
|
4275
4260
|
color: var(--font-color-muted);
|
|
4276
4261
|
}
|
|
4277
4262
|
|
|
4263
|
+
/* virtual-css:css:0c4c35b74d5f22edf919d952c580c0e6 */
|
|
4264
|
+
.NavMenu_navmenu__OTA1Y {
|
|
4265
|
+
font-size: var(--font-size);
|
|
4266
|
+
width: 100%;
|
|
4267
|
+
gap: var(--spacing-2);
|
|
4268
|
+
}
|
|
4269
|
+
.NavMenu_item__MjE3M {
|
|
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
|
+
}
|
|
4277
|
+
.NavMenu_item__MjE3M:hover {
|
|
4278
|
+
color: var(--font-color);
|
|
4279
|
+
background: var(--highlight-color);
|
|
4280
|
+
}
|
|
4281
|
+
.NavMenu_item__MjE3M.NavMenu_selected__YzUwN {
|
|
4282
|
+
color: var(--font-color);
|
|
4283
|
+
background: var(--highlight-color);
|
|
4284
|
+
font-weight: var(--font-weight-bold);
|
|
4285
|
+
}
|
|
4286
|
+
|
|
4278
4287
|
/* virtual-css:css:3547a441584a5024882cb71ab3ccf244 */
|
|
4279
4288
|
.PasswordField_icon__NTRlM {
|
|
4280
4289
|
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';
|
|
@@ -614,9 +615,10 @@ declare module '@umami/react-zen/List' {
|
|
|
614
615
|
idProperty?: string;
|
|
615
616
|
labelProperty?: string;
|
|
616
617
|
separatorProperty?: string;
|
|
617
|
-
|
|
618
|
+
highlightColor?: string;
|
|
619
|
+
showCheckmark?: boolean;
|
|
618
620
|
}
|
|
619
|
-
export function List({ items, idProperty, labelProperty, separatorProperty,
|
|
621
|
+
export function List({ items, idProperty, labelProperty, separatorProperty, highlightColor, showCheckmark, className, style, children, ...props }: ListProps): import("react").JSX.Element;
|
|
620
622
|
export interface ListItemProps extends ListBoxItemProps<any> {
|
|
621
623
|
showCheckmark?: boolean;
|
|
622
624
|
}
|
|
@@ -699,6 +701,19 @@ export interface NavbarItemProps extends HTMLAttributes<HTMLElement> {
|
|
|
699
701
|
export declare function NavbarItem({ label, children, className, ...props }: NavbarItemProps): import("react").JSX.Element;
|
|
700
702
|
export {};
|
|
701
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
|
+
|
|
702
717
|
declare module '@umami/react-zen/PasswordField' {
|
|
703
718
|
import { TextFieldProps } from 'react-aria-components';
|
|
704
719
|
interface PasswordFieldProps extends TextFieldProps {
|