@umami/react-zen 0.97.0 → 0.98.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 +70 -50
- package/dist/index.d.ts +27 -28
- package/dist/index.js +1009 -1001
- package/dist/index.mjs +1028 -1020
- package/package.json +13 -13
- package/styles.css +70 -50
package/dist/index.css
CHANGED
|
@@ -3955,23 +3955,25 @@ body a.Button_button__NDYwM {
|
|
|
3955
3955
|
}
|
|
3956
3956
|
|
|
3957
3957
|
/* virtual-css:css:0fb02723d81c5960ed149d3d9f58f1ba */
|
|
3958
|
-
.
|
|
3958
|
+
.List_list__NzVmN {
|
|
3959
|
+
display: grid;
|
|
3959
3960
|
min-width: 100px;
|
|
3960
3961
|
outline: none;
|
|
3961
3962
|
overflow: auto;
|
|
3963
|
+
gap: var(--spacing-1);
|
|
3962
3964
|
}
|
|
3963
|
-
.
|
|
3965
|
+
.List_separator__M2U0O {
|
|
3964
3966
|
border-bottom: var(--border);
|
|
3965
3967
|
}
|
|
3966
|
-
.
|
|
3968
|
+
.List_section__Y2Q0Z:not(:last-child) {
|
|
3967
3969
|
margin-bottom: var(--spacing-4);
|
|
3968
3970
|
}
|
|
3969
|
-
.
|
|
3971
|
+
.List_header__M2ZhY {
|
|
3970
3972
|
font-size: var(--font-size-2);
|
|
3971
3973
|
font-weight: var(--font-weight-bold);
|
|
3972
3974
|
padding: var(--padding);
|
|
3973
3975
|
}
|
|
3974
|
-
.
|
|
3976
|
+
.List_item__YmFjO {
|
|
3975
3977
|
display: flex;
|
|
3976
3978
|
align-items: center;
|
|
3977
3979
|
justify-content: space-between;
|
|
@@ -3984,25 +3986,43 @@ body a.Button_button__NDYwM {
|
|
|
3984
3986
|
outline: none;
|
|
3985
3987
|
border-radius: var(--border-radius);
|
|
3986
3988
|
}
|
|
3987
|
-
.
|
|
3989
|
+
.List_item__YmFjO[data-disabled] {
|
|
3988
3990
|
color: var(--font-color-disabled);
|
|
3989
3991
|
}
|
|
3990
|
-
.
|
|
3991
|
-
.
|
|
3992
|
+
.List_item__YmFjO[data-focus],
|
|
3993
|
+
.List_item__YmFjO[data-focus-visible] {
|
|
3992
3994
|
background: var(--highlight-color);
|
|
3993
3995
|
}
|
|
3994
|
-
.
|
|
3996
|
+
.List_item__YmFjO:hover {
|
|
3995
3997
|
background: var(--highlight-color);
|
|
3996
3998
|
}
|
|
3997
|
-
.
|
|
3999
|
+
.List_item__YmFjO[data-selected] {
|
|
3998
4000
|
font-weight: bold;
|
|
4001
|
+
& .List_check__NjUwZ {
|
|
4002
|
+
display: flex;
|
|
4003
|
+
justify-content: flex-end;
|
|
4004
|
+
flex: 1;
|
|
4005
|
+
}
|
|
3999
4006
|
}
|
|
4000
|
-
.
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4007
|
+
.List_variant-1__MGY0O {
|
|
4008
|
+
& .List_item__YmFjO:hover,
|
|
4009
|
+
.List_item__YmFjO[data-selected] {
|
|
4010
|
+
background: var(--base-color-2);
|
|
4011
|
+
}
|
|
4012
|
+
}
|
|
4013
|
+
.List_variant-2__NTJlM {
|
|
4014
|
+
& .List_item__YmFjO:hover,
|
|
4015
|
+
.List_item__YmFjO[data-selected] {
|
|
4016
|
+
background: var(--base-color-3);
|
|
4017
|
+
}
|
|
4018
|
+
}
|
|
4019
|
+
.List_variant-3__NTEyY {
|
|
4020
|
+
& .List_item__YmFjO:hover,
|
|
4021
|
+
.List_item__YmFjO[data-selected] {
|
|
4022
|
+
background: var(--base-color-4);
|
|
4023
|
+
}
|
|
4004
4024
|
}
|
|
4005
|
-
.
|
|
4025
|
+
.List_check__NjUwZ {
|
|
4006
4026
|
display: none;
|
|
4007
4027
|
}
|
|
4008
4028
|
|
|
@@ -4227,15 +4247,15 @@ body a.Button_button__NDYwM {
|
|
|
4227
4247
|
}
|
|
4228
4248
|
}
|
|
4229
4249
|
|
|
4230
|
-
/* virtual-css:css:
|
|
4231
|
-
.
|
|
4250
|
+
/* virtual-css:css:4a4829d96e3dd3519c018c8edddc2d35 */
|
|
4251
|
+
.Navbar_nav__ZjEwM {
|
|
4232
4252
|
display: flex;
|
|
4233
4253
|
align-items: center;
|
|
4234
4254
|
font-size: var(--font-size);
|
|
4235
4255
|
color: var(--font-color);
|
|
4236
4256
|
gap: var(--gap-lg);
|
|
4237
4257
|
}
|
|
4238
|
-
.
|
|
4258
|
+
.Navbar_item__MWVhZ {
|
|
4239
4259
|
display: flex;
|
|
4240
4260
|
align-items: center;
|
|
4241
4261
|
gap: var(--gap);
|
|
@@ -4244,15 +4264,15 @@ body a.Button_button__NDYwM {
|
|
|
4244
4264
|
font-weight: 700;
|
|
4245
4265
|
cursor: default;
|
|
4246
4266
|
}
|
|
4247
|
-
.
|
|
4267
|
+
.Navbar_item__MWVhZ:hover {
|
|
4248
4268
|
background: var(--highlight-color);
|
|
4249
4269
|
}
|
|
4250
|
-
.
|
|
4251
|
-
.
|
|
4270
|
+
.Navbar_nav__ZjEwM .Navbar_item__MWVhZ > a,
|
|
4271
|
+
.Navbar_nav__ZjEwM .Navbar_item__MWVhZ > a:hover {
|
|
4252
4272
|
color: var(--font-color);
|
|
4253
4273
|
text-decoration: none;
|
|
4254
4274
|
}
|
|
4255
|
-
.
|
|
4275
|
+
.Navbar_icon__ZmM1N {
|
|
4256
4276
|
color: var(--font-color-muted);
|
|
4257
4277
|
}
|
|
4258
4278
|
|
|
@@ -4422,8 +4442,8 @@ body a.Button_button__NDYwM {
|
|
|
4422
4442
|
background: none;
|
|
4423
4443
|
}
|
|
4424
4444
|
|
|
4425
|
-
/* virtual-css:css:
|
|
4426
|
-
.
|
|
4445
|
+
/* virtual-css:css:844962527a8f0e375161b58db0fc39ed */
|
|
4446
|
+
.Sidebar_sidenav__ODc2Z {
|
|
4427
4447
|
height: 100%;
|
|
4428
4448
|
font-size: var(--font-size);
|
|
4429
4449
|
border-right: 1px solid var(--border-color);
|
|
@@ -4431,29 +4451,29 @@ body a.Button_button__NDYwM {
|
|
|
4431
4451
|
overflow: hidden;
|
|
4432
4452
|
transition: width 0.1s ease-out;
|
|
4433
4453
|
}
|
|
4434
|
-
.
|
|
4454
|
+
.Sidebar_header__YWI3N {
|
|
4435
4455
|
display: flex;
|
|
4436
4456
|
align-items: center;
|
|
4437
4457
|
gap: var(--gap);
|
|
4438
4458
|
padding: var(--padding);
|
|
4439
4459
|
}
|
|
4440
|
-
.
|
|
4460
|
+
.Sidebar_name__NThjO {
|
|
4441
4461
|
font-weight: var(--font-weight-bold);
|
|
4442
4462
|
}
|
|
4443
|
-
.
|
|
4463
|
+
.Sidebar_section__YzQwN {
|
|
4444
4464
|
padding: var(--spacing-3);
|
|
4445
4465
|
overflow: hidden;
|
|
4446
4466
|
}
|
|
4447
|
-
.
|
|
4467
|
+
.Sidebar_title__NDBlN {
|
|
4448
4468
|
font-weight: var(--font-weight-bold);
|
|
4449
4469
|
}
|
|
4450
|
-
.
|
|
4470
|
+
.Sidebar_content__NmUzM {
|
|
4451
4471
|
display: grid;
|
|
4452
4472
|
min-height: 40px;
|
|
4453
4473
|
gap: var(--gap);
|
|
4454
4474
|
overflow: hidden;
|
|
4455
4475
|
}
|
|
4456
|
-
.
|
|
4476
|
+
.Sidebar_item__ZjYxZ {
|
|
4457
4477
|
display: flex;
|
|
4458
4478
|
align-items: center;
|
|
4459
4479
|
justify-content: flex-start;
|
|
@@ -4467,62 +4487,62 @@ body a.Button_button__NDYwM {
|
|
|
4467
4487
|
white-space: nowrap;
|
|
4468
4488
|
overflow: hidden;
|
|
4469
4489
|
}
|
|
4470
|
-
.
|
|
4490
|
+
.Sidebar_item__ZjYxZ:hover {
|
|
4471
4491
|
color: var(--font-color);
|
|
4472
4492
|
}
|
|
4473
|
-
.
|
|
4493
|
+
.Sidebar_label__OTI3N {
|
|
4474
4494
|
opacity: 1;
|
|
4475
4495
|
width: 100%;
|
|
4476
4496
|
transition: all 0.3s;
|
|
4477
4497
|
}
|
|
4478
|
-
.
|
|
4498
|
+
.Sidebar_collapsed__NDY0N .Sidebar_label__OTI3N {
|
|
4479
4499
|
opacity: 0;
|
|
4480
4500
|
width: 0;
|
|
4481
4501
|
transition: all 0.3s;
|
|
4482
4502
|
}
|
|
4483
|
-
.
|
|
4503
|
+
.Sidebar_collapsed__NDY0N {
|
|
4484
4504
|
width: 68px;
|
|
4485
4505
|
transition: width 0.2s ease-in-out;
|
|
4486
4506
|
}
|
|
4487
|
-
.
|
|
4507
|
+
.Sidebar_muted__NjI0N .Sidebar_item__ZjYxZ {
|
|
4488
4508
|
color: var(--font-color-muted);
|
|
4489
4509
|
}
|
|
4490
|
-
.
|
|
4510
|
+
.Sidebar_muted__NjI0N .Sidebar_item__ZjYxZ:hover {
|
|
4491
4511
|
color: var(--font-color);
|
|
4492
4512
|
}
|
|
4493
|
-
.
|
|
4513
|
+
.Sidebar_muted__NjI0N .Sidebar_item__ZjYxZ.Sidebar_selected__N2RhZ {
|
|
4494
4514
|
color: var(--font-color);
|
|
4495
4515
|
}
|
|
4496
|
-
.
|
|
4516
|
+
.Sidebar_variant-quiet__ZjllN {
|
|
4497
4517
|
background: transparent;
|
|
4498
|
-
& .
|
|
4499
|
-
.
|
|
4518
|
+
& .Sidebar_item__ZjYxZ:hover,
|
|
4519
|
+
.Sidebar_selected__N2RhZ {
|
|
4500
4520
|
border: 1px solid var(--border-color);
|
|
4501
4521
|
border-radius: var(--border-radius);
|
|
4502
4522
|
}
|
|
4503
4523
|
}
|
|
4504
|
-
.
|
|
4524
|
+
.Sidebar_variant-1__NmFhM {
|
|
4505
4525
|
background: var(--base-color-1);
|
|
4506
|
-
& .
|
|
4507
|
-
.
|
|
4526
|
+
& .Sidebar_item__ZjYxZ:hover,
|
|
4527
|
+
.Sidebar_selected__N2RhZ {
|
|
4508
4528
|
background: var(--base-color-2);
|
|
4509
4529
|
}
|
|
4510
4530
|
}
|
|
4511
|
-
.
|
|
4531
|
+
.Sidebar_variant-2__OWYzZ {
|
|
4512
4532
|
background: var(--base-color-2);
|
|
4513
|
-
& .
|
|
4514
|
-
.
|
|
4533
|
+
& .Sidebar_item__ZjYxZ:hover,
|
|
4534
|
+
.Sidebar_selected__N2RhZ {
|
|
4515
4535
|
background: var(--base-color-3);
|
|
4516
4536
|
}
|
|
4517
4537
|
}
|
|
4518
|
-
.
|
|
4538
|
+
.Sidebar_variant-3__ODk2Y {
|
|
4519
4539
|
background: var(--base-color-3);
|
|
4520
|
-
& .
|
|
4521
|
-
.
|
|
4540
|
+
& .Sidebar_item__ZjYxZ:hover,
|
|
4541
|
+
.Sidebar_selected__N2RhZ {
|
|
4522
4542
|
background: var(--base-color-4);
|
|
4523
4543
|
}
|
|
4524
4544
|
}
|
|
4525
|
-
.
|
|
4545
|
+
.Sidebar_sidenav__ODc2Z.Sidebar_noborder__NTJlN {
|
|
4526
4546
|
border: 0;
|
|
4527
4547
|
}
|
|
4528
4548
|
|
package/dist/index.d.ts
CHANGED
|
@@ -54,7 +54,7 @@ declare module '@umami/react-zen' {
|
|
|
54
54
|
export { LoadingButton } from '@umami/react-zen/LoadingButton';
|
|
55
55
|
export { Menu, MenuItem, MenuSection, MenuSeparator } from '@umami/react-zen/Menu';
|
|
56
56
|
export { Modal } from '@umami/react-zen/Modal';
|
|
57
|
-
export {
|
|
57
|
+
export { Navbar, NavbarItem } from '@umami/react-zen/Navbar';
|
|
58
58
|
export { PasswordField } from '@umami/react-zen/PasswordField';
|
|
59
59
|
export { Popover } from '@umami/react-zen/Popover';
|
|
60
60
|
export { ProgressBar } from '@umami/react-zen/ProgressBar';
|
|
@@ -63,7 +63,7 @@ declare module '@umami/react-zen' {
|
|
|
63
63
|
export { Row } from '@umami/react-zen/Row';
|
|
64
64
|
export { SearchField } from '@umami/react-zen/SearchField';
|
|
65
65
|
export { Select } from '@umami/react-zen/Select';
|
|
66
|
-
export {
|
|
66
|
+
export { Sidebar, SidebarHeader, SidebarItem, SidebarSection } from '@umami/react-zen/Sidebar';
|
|
67
67
|
export { Slider } from '@umami/react-zen/Slider';
|
|
68
68
|
export { Slot } from '@umami/react-zen/Slot';
|
|
69
69
|
export { Spinner } from '@umami/react-zen/Spinner';
|
|
@@ -615,8 +615,9 @@ declare module '@umami/react-zen/List' {
|
|
|
615
615
|
idProperty?: string;
|
|
616
616
|
labelProperty?: string;
|
|
617
617
|
separatorProperty?: string;
|
|
618
|
+
variant?: '1' | '2' | '3';
|
|
618
619
|
}
|
|
619
|
-
export function List({ items, idProperty, labelProperty, separatorProperty, className, children, ...props }: ListProps): import("react").JSX.Element;
|
|
620
|
+
export function List({ items, idProperty, labelProperty, separatorProperty, variant, className, children, ...props }: ListProps): import("react").JSX.Element;
|
|
620
621
|
export function ListItem({ id, children, className, ...props }: ListBoxItemProps<any>): import("react").JSX.Element;
|
|
621
622
|
export function ListSeparator({ className, ...props }: SeparatorProps): import("react").JSX.Element;
|
|
622
623
|
export function ListSection({ title, className, children, ...props }: ListBoxSectionProps<any> & {
|
|
@@ -678,24 +679,22 @@ declare module '@umami/react-zen/Modal' {
|
|
|
678
679
|
export type { ModalProps };
|
|
679
680
|
}
|
|
680
681
|
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
children?: ReactNode;
|
|
695
|
-
}
|
|
696
|
-
export function NavBarItem({ label, children, className, ...props }: NavBarItemProps): import("react").JSX.Element;
|
|
697
|
-
export {};
|
|
682
|
+
import { HTMLAttributes, ReactNode, Dispatch, SetStateAction } from 'react';
|
|
683
|
+
type NavigationContext = {
|
|
684
|
+
activeMenu: string;
|
|
685
|
+
setActiveMenu: Dispatch<SetStateAction<string>>;
|
|
686
|
+
};
|
|
687
|
+
export declare const NavbarContext: import("react").Context<NavigationContext | undefined>;
|
|
688
|
+
export interface NavbarProps extends HTMLAttributes<HTMLElement> {
|
|
689
|
+
showArrow?: boolean;
|
|
690
|
+
}
|
|
691
|
+
export declare function Navbar({ showArrow, className, children, ...props }: NavbarProps): import("react").JSX.Element;
|
|
692
|
+
export interface NavbarItemProps extends HTMLAttributes<HTMLElement> {
|
|
693
|
+
label?: string;
|
|
694
|
+
children?: ReactNode;
|
|
698
695
|
}
|
|
696
|
+
export declare function NavbarItem({ label, children, className, ...props }: NavbarItemProps): import("react").JSX.Element;
|
|
697
|
+
export {};
|
|
699
698
|
|
|
700
699
|
declare module '@umami/react-zen/PasswordField' {
|
|
701
700
|
import { TextFieldProps } from 'react-aria-components';
|
|
@@ -794,34 +793,34 @@ declare module '@umami/react-zen/Select' {
|
|
|
794
793
|
export type { SelectProps };
|
|
795
794
|
}
|
|
796
795
|
|
|
797
|
-
declare module '@umami/react-zen/
|
|
796
|
+
declare module '@umami/react-zen/Sidebar' {
|
|
798
797
|
import { ReactNode } from 'react';
|
|
799
798
|
import { ColumnProps } from '@/components/Column';
|
|
800
799
|
import { RowProps } from '@/components/Row';
|
|
801
|
-
export interface
|
|
800
|
+
export interface SidebarProps extends ColumnProps {
|
|
802
801
|
variant?: '1' | '2' | '3' | 'quiet';
|
|
803
802
|
isCollapsed?: boolean;
|
|
804
803
|
muteItems?: boolean;
|
|
805
804
|
showBorder?: boolean;
|
|
806
805
|
children?: ReactNode;
|
|
807
806
|
}
|
|
808
|
-
export function
|
|
809
|
-
export function
|
|
807
|
+
export function Sidebar({ variant, isCollapsed, muteItems, showBorder, className, children, ...props }: SidebarProps): import("react").JSX.Element;
|
|
808
|
+
export function SidebarSection({ title, children, }: {
|
|
810
809
|
title?: string;
|
|
811
810
|
children: ReactNode;
|
|
812
811
|
} & ColumnProps): import("react").JSX.Element;
|
|
813
|
-
export function
|
|
812
|
+
export function SidebarHeader({ label, icon, className, children, ...props }: {
|
|
814
813
|
label: string;
|
|
815
814
|
icon?: ReactNode;
|
|
816
815
|
children?: ReactNode;
|
|
817
816
|
} & RowProps): import("react").JSX.Element;
|
|
818
|
-
export interface
|
|
817
|
+
export interface SidebarItemProps extends RowProps {
|
|
819
818
|
isSelected?: boolean;
|
|
820
819
|
}
|
|
821
|
-
export function
|
|
820
|
+
export function SidebarItem({ label, icon, isSelected, className, children, ...props }: {
|
|
822
821
|
label?: string;
|
|
823
822
|
icon?: ReactNode;
|
|
824
|
-
} &
|
|
823
|
+
} & SidebarItemProps): import("react").JSX.Element;
|
|
825
824
|
}
|
|
826
825
|
|
|
827
826
|
declare module '@umami/react-zen/Slider' {
|