@umami/react-zen 0.96.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 +95 -67
- package/dist/index.d.ts +27 -28
- package/dist/index.js +1011 -1003
- package/dist/index.mjs +1030 -1022
- package/package.json +13 -13
- package/styles.css +95 -67
package/dist/index.css
CHANGED
|
@@ -3714,59 +3714,67 @@ body a.Button_button__NDYwM {
|
|
|
3714
3714
|
}
|
|
3715
3715
|
|
|
3716
3716
|
/* virtual-css:css:eedba9fc7e3d8030bbd07387da49f358 */
|
|
3717
|
-
.
|
|
3717
|
+
.Table_table__YjllN {
|
|
3718
3718
|
font-size: var(--font-size);
|
|
3719
3719
|
color: var(--font-color);
|
|
3720
3720
|
border-collapse: collapse;
|
|
3721
3721
|
width: 100%;
|
|
3722
3722
|
position: relative;
|
|
3723
3723
|
}
|
|
3724
|
-
.
|
|
3725
|
-
.
|
|
3724
|
+
.Table_table__YjllN th,
|
|
3725
|
+
.Table_table__YjllN td {
|
|
3726
3726
|
min-width: 0;
|
|
3727
3727
|
}
|
|
3728
|
-
.
|
|
3729
|
-
.
|
|
3728
|
+
.Table_header__NmE0Y,
|
|
3729
|
+
.Table_body__ZWYwN {
|
|
3730
3730
|
display: contents;
|
|
3731
3731
|
}
|
|
3732
|
-
.
|
|
3732
|
+
.Table_header__NmE0Y {
|
|
3733
3733
|
display: grid;
|
|
3734
3734
|
border-bottom: 1px solid var(--border-color);
|
|
3735
3735
|
}
|
|
3736
|
-
.
|
|
3736
|
+
.Table_header__NmE0Y tr {
|
|
3737
3737
|
display: contents;
|
|
3738
3738
|
}
|
|
3739
|
-
.
|
|
3739
|
+
.Table_row__Y2M0Y {
|
|
3740
3740
|
display: grid;
|
|
3741
3741
|
border-bottom: 1px solid color-mix(in srgb, var(--border-color), 50% transparent);
|
|
3742
3742
|
}
|
|
3743
|
-
.
|
|
3744
|
-
.
|
|
3743
|
+
.Table_header__NmE0Y .Table_column__ZGY2M:first-child,
|
|
3744
|
+
.Table_row__Y2M0Y .Table_cell__MmZjM:first-child {
|
|
3745
3745
|
padding-left: 0;
|
|
3746
3746
|
}
|
|
3747
|
-
.
|
|
3748
|
-
.
|
|
3747
|
+
.Table_header__NmE0Y .Table_column__ZGY2M:last-child,
|
|
3748
|
+
.Table_row__Y2M0Y .Table_cell__MmZjM:last-child {
|
|
3749
3749
|
padding-right: 0;
|
|
3750
3750
|
}
|
|
3751
|
-
.
|
|
3751
|
+
.Table_column__ZGY2M {
|
|
3752
3752
|
display: flex;
|
|
3753
3753
|
padding: var(--padding);
|
|
3754
3754
|
text-align: left;
|
|
3755
3755
|
font-weight: 700;
|
|
3756
3756
|
flex: 1;
|
|
3757
3757
|
}
|
|
3758
|
-
.
|
|
3758
|
+
.Table_cell__MmZjM {
|
|
3759
3759
|
display: flex;
|
|
3760
3760
|
padding: var(--padding);
|
|
3761
3761
|
flex: 1;
|
|
3762
3762
|
}
|
|
3763
|
-
.
|
|
3763
|
+
.Table_row__Y2M0Y .Table_cell__MmZjM a {
|
|
3764
|
+
font-weight: 500;
|
|
3765
|
+
text-decoration: underline var(--base-color-6);
|
|
3766
|
+
text-underline-offset: 4px;
|
|
3767
|
+
}
|
|
3768
|
+
.Table_row__Y2M0Y .Table_cell__MmZjM a:hover {
|
|
3769
|
+
text-decoration: underline var(--base-color-10);
|
|
3770
|
+
}
|
|
3771
|
+
.Table_start__NGFiN {
|
|
3764
3772
|
justify-content: flex-start;
|
|
3765
3773
|
}
|
|
3766
|
-
.
|
|
3774
|
+
.Table_center__NzFjM {
|
|
3767
3775
|
justify-content: center;
|
|
3768
3776
|
}
|
|
3769
|
-
.
|
|
3777
|
+
.Table_end__NmQyY {
|
|
3770
3778
|
justify-content: flex-end;
|
|
3771
3779
|
}
|
|
3772
3780
|
|
|
@@ -3947,23 +3955,25 @@ body a.Button_button__NDYwM {
|
|
|
3947
3955
|
}
|
|
3948
3956
|
|
|
3949
3957
|
/* virtual-css:css:0fb02723d81c5960ed149d3d9f58f1ba */
|
|
3950
|
-
.
|
|
3958
|
+
.List_list__NzVmN {
|
|
3959
|
+
display: grid;
|
|
3951
3960
|
min-width: 100px;
|
|
3952
3961
|
outline: none;
|
|
3953
3962
|
overflow: auto;
|
|
3963
|
+
gap: var(--spacing-1);
|
|
3954
3964
|
}
|
|
3955
|
-
.
|
|
3965
|
+
.List_separator__M2U0O {
|
|
3956
3966
|
border-bottom: var(--border);
|
|
3957
3967
|
}
|
|
3958
|
-
.
|
|
3968
|
+
.List_section__Y2Q0Z:not(:last-child) {
|
|
3959
3969
|
margin-bottom: var(--spacing-4);
|
|
3960
3970
|
}
|
|
3961
|
-
.
|
|
3971
|
+
.List_header__M2ZhY {
|
|
3962
3972
|
font-size: var(--font-size-2);
|
|
3963
3973
|
font-weight: var(--font-weight-bold);
|
|
3964
3974
|
padding: var(--padding);
|
|
3965
3975
|
}
|
|
3966
|
-
.
|
|
3976
|
+
.List_item__YmFjO {
|
|
3967
3977
|
display: flex;
|
|
3968
3978
|
align-items: center;
|
|
3969
3979
|
justify-content: space-between;
|
|
@@ -3976,25 +3986,43 @@ body a.Button_button__NDYwM {
|
|
|
3976
3986
|
outline: none;
|
|
3977
3987
|
border-radius: var(--border-radius);
|
|
3978
3988
|
}
|
|
3979
|
-
.
|
|
3989
|
+
.List_item__YmFjO[data-disabled] {
|
|
3980
3990
|
color: var(--font-color-disabled);
|
|
3981
3991
|
}
|
|
3982
|
-
.
|
|
3983
|
-
.
|
|
3992
|
+
.List_item__YmFjO[data-focus],
|
|
3993
|
+
.List_item__YmFjO[data-focus-visible] {
|
|
3984
3994
|
background: var(--highlight-color);
|
|
3985
3995
|
}
|
|
3986
|
-
.
|
|
3996
|
+
.List_item__YmFjO:hover {
|
|
3987
3997
|
background: var(--highlight-color);
|
|
3988
3998
|
}
|
|
3989
|
-
.
|
|
3999
|
+
.List_item__YmFjO[data-selected] {
|
|
3990
4000
|
font-weight: bold;
|
|
4001
|
+
& .List_check__NjUwZ {
|
|
4002
|
+
display: flex;
|
|
4003
|
+
justify-content: flex-end;
|
|
4004
|
+
flex: 1;
|
|
4005
|
+
}
|
|
3991
4006
|
}
|
|
3992
|
-
.
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
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
|
+
}
|
|
3996
4024
|
}
|
|
3997
|
-
.
|
|
4025
|
+
.List_check__NjUwZ {
|
|
3998
4026
|
display: none;
|
|
3999
4027
|
}
|
|
4000
4028
|
|
|
@@ -4219,15 +4247,15 @@ body a.Button_button__NDYwM {
|
|
|
4219
4247
|
}
|
|
4220
4248
|
}
|
|
4221
4249
|
|
|
4222
|
-
/* virtual-css:css:
|
|
4223
|
-
.
|
|
4250
|
+
/* virtual-css:css:4a4829d96e3dd3519c018c8edddc2d35 */
|
|
4251
|
+
.Navbar_nav__ZjEwM {
|
|
4224
4252
|
display: flex;
|
|
4225
4253
|
align-items: center;
|
|
4226
4254
|
font-size: var(--font-size);
|
|
4227
4255
|
color: var(--font-color);
|
|
4228
4256
|
gap: var(--gap-lg);
|
|
4229
4257
|
}
|
|
4230
|
-
.
|
|
4258
|
+
.Navbar_item__MWVhZ {
|
|
4231
4259
|
display: flex;
|
|
4232
4260
|
align-items: center;
|
|
4233
4261
|
gap: var(--gap);
|
|
@@ -4236,15 +4264,15 @@ body a.Button_button__NDYwM {
|
|
|
4236
4264
|
font-weight: 700;
|
|
4237
4265
|
cursor: default;
|
|
4238
4266
|
}
|
|
4239
|
-
.
|
|
4267
|
+
.Navbar_item__MWVhZ:hover {
|
|
4240
4268
|
background: var(--highlight-color);
|
|
4241
4269
|
}
|
|
4242
|
-
.
|
|
4243
|
-
.
|
|
4270
|
+
.Navbar_nav__ZjEwM .Navbar_item__MWVhZ > a,
|
|
4271
|
+
.Navbar_nav__ZjEwM .Navbar_item__MWVhZ > a:hover {
|
|
4244
4272
|
color: var(--font-color);
|
|
4245
4273
|
text-decoration: none;
|
|
4246
4274
|
}
|
|
4247
|
-
.
|
|
4275
|
+
.Navbar_icon__ZmM1N {
|
|
4248
4276
|
color: var(--font-color-muted);
|
|
4249
4277
|
}
|
|
4250
4278
|
|
|
@@ -4414,8 +4442,8 @@ body a.Button_button__NDYwM {
|
|
|
4414
4442
|
background: none;
|
|
4415
4443
|
}
|
|
4416
4444
|
|
|
4417
|
-
/* virtual-css:css:
|
|
4418
|
-
.
|
|
4445
|
+
/* virtual-css:css:844962527a8f0e375161b58db0fc39ed */
|
|
4446
|
+
.Sidebar_sidenav__ODc2Z {
|
|
4419
4447
|
height: 100%;
|
|
4420
4448
|
font-size: var(--font-size);
|
|
4421
4449
|
border-right: 1px solid var(--border-color);
|
|
@@ -4423,29 +4451,29 @@ body a.Button_button__NDYwM {
|
|
|
4423
4451
|
overflow: hidden;
|
|
4424
4452
|
transition: width 0.1s ease-out;
|
|
4425
4453
|
}
|
|
4426
|
-
.
|
|
4454
|
+
.Sidebar_header__YWI3N {
|
|
4427
4455
|
display: flex;
|
|
4428
4456
|
align-items: center;
|
|
4429
4457
|
gap: var(--gap);
|
|
4430
4458
|
padding: var(--padding);
|
|
4431
4459
|
}
|
|
4432
|
-
.
|
|
4460
|
+
.Sidebar_name__NThjO {
|
|
4433
4461
|
font-weight: var(--font-weight-bold);
|
|
4434
4462
|
}
|
|
4435
|
-
.
|
|
4463
|
+
.Sidebar_section__YzQwN {
|
|
4436
4464
|
padding: var(--spacing-3);
|
|
4437
4465
|
overflow: hidden;
|
|
4438
4466
|
}
|
|
4439
|
-
.
|
|
4467
|
+
.Sidebar_title__NDBlN {
|
|
4440
4468
|
font-weight: var(--font-weight-bold);
|
|
4441
4469
|
}
|
|
4442
|
-
.
|
|
4470
|
+
.Sidebar_content__NmUzM {
|
|
4443
4471
|
display: grid;
|
|
4444
4472
|
min-height: 40px;
|
|
4445
4473
|
gap: var(--gap);
|
|
4446
4474
|
overflow: hidden;
|
|
4447
4475
|
}
|
|
4448
|
-
.
|
|
4476
|
+
.Sidebar_item__ZjYxZ {
|
|
4449
4477
|
display: flex;
|
|
4450
4478
|
align-items: center;
|
|
4451
4479
|
justify-content: flex-start;
|
|
@@ -4459,62 +4487,62 @@ body a.Button_button__NDYwM {
|
|
|
4459
4487
|
white-space: nowrap;
|
|
4460
4488
|
overflow: hidden;
|
|
4461
4489
|
}
|
|
4462
|
-
.
|
|
4490
|
+
.Sidebar_item__ZjYxZ:hover {
|
|
4463
4491
|
color: var(--font-color);
|
|
4464
4492
|
}
|
|
4465
|
-
.
|
|
4493
|
+
.Sidebar_label__OTI3N {
|
|
4466
4494
|
opacity: 1;
|
|
4467
4495
|
width: 100%;
|
|
4468
4496
|
transition: all 0.3s;
|
|
4469
4497
|
}
|
|
4470
|
-
.
|
|
4498
|
+
.Sidebar_collapsed__NDY0N .Sidebar_label__OTI3N {
|
|
4471
4499
|
opacity: 0;
|
|
4472
4500
|
width: 0;
|
|
4473
4501
|
transition: all 0.3s;
|
|
4474
4502
|
}
|
|
4475
|
-
.
|
|
4503
|
+
.Sidebar_collapsed__NDY0N {
|
|
4476
4504
|
width: 68px;
|
|
4477
4505
|
transition: width 0.2s ease-in-out;
|
|
4478
4506
|
}
|
|
4479
|
-
.
|
|
4507
|
+
.Sidebar_muted__NjI0N .Sidebar_item__ZjYxZ {
|
|
4480
4508
|
color: var(--font-color-muted);
|
|
4481
4509
|
}
|
|
4482
|
-
.
|
|
4510
|
+
.Sidebar_muted__NjI0N .Sidebar_item__ZjYxZ:hover {
|
|
4483
4511
|
color: var(--font-color);
|
|
4484
4512
|
}
|
|
4485
|
-
.
|
|
4513
|
+
.Sidebar_muted__NjI0N .Sidebar_item__ZjYxZ.Sidebar_selected__N2RhZ {
|
|
4486
4514
|
color: var(--font-color);
|
|
4487
4515
|
}
|
|
4488
|
-
.
|
|
4516
|
+
.Sidebar_variant-quiet__ZjllN {
|
|
4489
4517
|
background: transparent;
|
|
4490
|
-
& .
|
|
4491
|
-
.
|
|
4518
|
+
& .Sidebar_item__ZjYxZ:hover,
|
|
4519
|
+
.Sidebar_selected__N2RhZ {
|
|
4492
4520
|
border: 1px solid var(--border-color);
|
|
4493
4521
|
border-radius: var(--border-radius);
|
|
4494
4522
|
}
|
|
4495
4523
|
}
|
|
4496
|
-
.
|
|
4524
|
+
.Sidebar_variant-1__NmFhM {
|
|
4497
4525
|
background: var(--base-color-1);
|
|
4498
|
-
& .
|
|
4499
|
-
.
|
|
4526
|
+
& .Sidebar_item__ZjYxZ:hover,
|
|
4527
|
+
.Sidebar_selected__N2RhZ {
|
|
4500
4528
|
background: var(--base-color-2);
|
|
4501
4529
|
}
|
|
4502
4530
|
}
|
|
4503
|
-
.
|
|
4531
|
+
.Sidebar_variant-2__OWYzZ {
|
|
4504
4532
|
background: var(--base-color-2);
|
|
4505
|
-
& .
|
|
4506
|
-
.
|
|
4533
|
+
& .Sidebar_item__ZjYxZ:hover,
|
|
4534
|
+
.Sidebar_selected__N2RhZ {
|
|
4507
4535
|
background: var(--base-color-3);
|
|
4508
4536
|
}
|
|
4509
4537
|
}
|
|
4510
|
-
.
|
|
4538
|
+
.Sidebar_variant-3__ODk2Y {
|
|
4511
4539
|
background: var(--base-color-3);
|
|
4512
|
-
& .
|
|
4513
|
-
.
|
|
4540
|
+
& .Sidebar_item__ZjYxZ:hover,
|
|
4541
|
+
.Sidebar_selected__N2RhZ {
|
|
4514
4542
|
background: var(--base-color-4);
|
|
4515
4543
|
}
|
|
4516
4544
|
}
|
|
4517
|
-
.
|
|
4545
|
+
.Sidebar_sidenav__ODc2Z.Sidebar_noborder__NTJlN {
|
|
4518
4546
|
border: 0;
|
|
4519
4547
|
}
|
|
4520
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' {
|