@rocket.chat/fuselage 0.93.0 → 0.94.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/components/Sidebar/SidebarCollapseGroup.d.ts +2 -1
- package/dist/components/Sidebar/SidebarCollapseGroup.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarGroupTitle.d.ts +2 -1
- package/dist/components/Sidebar/SidebarGroupTitle.d.ts.map +1 -1
- package/dist/fuselage.css +1 -1
- package/dist/fuselage.development.css +54 -29
- package/dist/fuselage.development.js +21 -13
- package/dist/fuselage.development.js.map +1 -1
- package/dist/fuselage.production.js +2 -2
- package/package.json +1 -1
|
@@ -5415,46 +5415,27 @@ a:where(:active):where(:not(.rcx-button)), .rcx-tag--clickable:where(:active), .
|
|
|
5415
5415
|
min-height: 1.5rem;
|
|
5416
5416
|
padding: calc(0.5rem - 1px) calc(1rem - 1px);
|
|
5417
5417
|
text-align: start;
|
|
5418
|
-
color: var(--rcx-color-font-default, #2f343d);
|
|
5419
5418
|
background-color: var(--rcx-sidebar-color-surface-default, var(--rcx-color-surface-sidebar, #e4e7ea));
|
|
5420
5419
|
-moz-column-gap: 0.25rem;
|
|
5421
5420
|
column-gap: 0.25rem;
|
|
5422
5421
|
}
|
|
5423
|
-
.rcx-sidebar-collapse-
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
-
|
|
5427
|
-
|
|
5428
|
-
|
|
5429
|
-
|
|
5430
|
-
.rcx-sidebar-collapse-group__bar[tabindex], .rcx-sidebar-accordion-item__bar[tabindex] {
|
|
5431
|
-
border-width: 1px;
|
|
5432
|
-
border-style: solid;
|
|
5433
|
-
border-color: transparent;
|
|
5434
|
-
}
|
|
5435
|
-
.rcx-sidebar-collapse-group__bar[tabindex]:focus-visible, .rcx-sidebar-collapse-group__bar[tabindex].focus.focus-visible, .rcx-sidebar-accordion-item__bar[tabindex]:focus-visible, .rcx-sidebar-accordion-item__bar[tabindex].focus.focus-visible {
|
|
5436
|
-
border-color: var(--rcx-color-stroke-highlight, #156ff5);
|
|
5437
|
-
border-radius: var(--rcx-border-radius-medium, 0.25rem);
|
|
5438
|
-
outline: 0;
|
|
5439
|
-
box-shadow: none;
|
|
5440
|
-
}
|
|
5441
|
-
.rcx-sidebar-collapse-group__bar[tabindex].hover, .rcx-sidebar-collapse-group__bar[tabindex]:hover, .rcx-sidebar-accordion-item__bar[tabindex].hover, .rcx-sidebar-accordion-item__bar[tabindex]:hover {
|
|
5442
|
-
background-color: var(--rcx-color-surface-tint, #f7f8fa);
|
|
5443
|
-
}
|
|
5444
|
-
.rcx-sidebar-collapse-group__bar--disabled, .rcx-sidebar-accordion-item__bar--disabled {
|
|
5445
|
-
cursor: not-allowed;
|
|
5446
|
-
color: var(--rcx-color-font-disabled, #cbced1);
|
|
5447
|
-
background-color: var(--rcx-color-surface-disabled, #f7f8fa);
|
|
5422
|
+
.rcx-sidebar-collapse-group__heading, .rcx-sidebar-accordion-item__heading {
|
|
5423
|
+
display: flex;
|
|
5424
|
+
align-items: center;
|
|
5425
|
+
flex: 1 1 0;
|
|
5426
|
+
min-width: 0;
|
|
5427
|
+
-moz-column-gap: 0.25rem;
|
|
5428
|
+
column-gap: 0.25rem;
|
|
5448
5429
|
}
|
|
5449
5430
|
.rcx-sidebar-collapse-group__title, .rcx-sidebar-accordion-item__title {
|
|
5450
|
-
flex:
|
|
5431
|
+
flex: 0 1 auto;
|
|
5451
5432
|
margin: 0;
|
|
5452
5433
|
white-space: nowrap;
|
|
5453
5434
|
overflow: hidden;
|
|
5454
5435
|
text-overflow: ellipsis;
|
|
5455
5436
|
letter-spacing: 0rem;
|
|
5456
5437
|
font-size: 0.75rem;
|
|
5457
|
-
font-weight:
|
|
5438
|
+
font-weight: 400;
|
|
5458
5439
|
line-height: 1rem;
|
|
5459
5440
|
}
|
|
5460
5441
|
.rcx-sidebar-collapse-group__menu-wrapper, .rcx-sidebar-accordion-item__menu-wrapper {
|
|
@@ -5463,10 +5444,12 @@ a:where(:active):where(:not(.rcx-button)), .rcx-tag--clickable:where(:active), .
|
|
|
5463
5444
|
flex-shrink: 0;
|
|
5464
5445
|
width: 0;
|
|
5465
5446
|
height: 1.25rem;
|
|
5447
|
+
margin-inline-end: -0.25rem;
|
|
5466
5448
|
opacity: 0;
|
|
5467
5449
|
}
|
|
5468
5450
|
.rcx-sidebar-collapse-group__bar:hover .rcx-sidebar-collapse-group__menu-wrapper, .rcx-sidebar-collapse-group__bar:focus-within .rcx-sidebar-collapse-group__menu-wrapper, .rcx-sidebar-collapse-group__bar:has(.rcx-sidebar-collapse-group__menu-wrapper [aria-expanded=true], .rcx-sidebar-accordion-item__menu-wrapper [aria-expanded=true]) .rcx-sidebar-collapse-group__menu-wrapper, .rcx-sidebar-collapse-group__bar:hover .rcx-sidebar-accordion-item__menu-wrapper, .rcx-sidebar-collapse-group__bar:focus-within .rcx-sidebar-accordion-item__menu-wrapper, .rcx-sidebar-collapse-group__bar:has(.rcx-sidebar-collapse-group__menu-wrapper [aria-expanded=true], .rcx-sidebar-accordion-item__menu-wrapper [aria-expanded=true]) .rcx-sidebar-accordion-item__menu-wrapper, .rcx-sidebar-accordion-item__bar:hover .rcx-sidebar-collapse-group__menu-wrapper, .rcx-sidebar-accordion-item__bar:focus-within .rcx-sidebar-collapse-group__menu-wrapper, .rcx-sidebar-accordion-item__bar:has(.rcx-sidebar-collapse-group__menu-wrapper [aria-expanded=true], .rcx-sidebar-accordion-item__menu-wrapper [aria-expanded=true]) .rcx-sidebar-collapse-group__menu-wrapper, .rcx-sidebar-accordion-item__bar:hover .rcx-sidebar-accordion-item__menu-wrapper, .rcx-sidebar-accordion-item__bar:focus-within .rcx-sidebar-accordion-item__menu-wrapper, .rcx-sidebar-accordion-item__bar:has(.rcx-sidebar-collapse-group__menu-wrapper [aria-expanded=true], .rcx-sidebar-accordion-item__menu-wrapper [aria-expanded=true]) .rcx-sidebar-accordion-item__menu-wrapper {
|
|
5469
5451
|
width: 1.25rem;
|
|
5452
|
+
margin-inline-end: 0;
|
|
5470
5453
|
opacity: 1;
|
|
5471
5454
|
}
|
|
5472
5455
|
.rcx-sidebar-collapse-group__panel, .rcx-sidebar-accordion-item__panel {
|
|
@@ -5483,6 +5466,21 @@ a:where(:active):where(:not(.rcx-button)), .rcx-tag--clickable:where(:active), .
|
|
|
5483
5466
|
height: 100%;
|
|
5484
5467
|
padding-block: 0.25rem 0.5rem;
|
|
5485
5468
|
}
|
|
5469
|
+
.rcx-sidebar-collapse-group__bar {
|
|
5470
|
+
color: var(--rcx-color-font-secondary-info, #6c737a);
|
|
5471
|
+
}
|
|
5472
|
+
.rcx-sidebar-collapse-group__bar--empty {
|
|
5473
|
+
color: var(--rcx-color-font-disabled, #cbced1);
|
|
5474
|
+
}
|
|
5475
|
+
.rcx-sidebar-collapse-group__bar--unread {
|
|
5476
|
+
color: var(--rcx-sidebar-item-color-highlighted, var(--rcx-color-font-titles-labels, #1f2329));
|
|
5477
|
+
}
|
|
5478
|
+
.rcx-sidebar-collapse-group__bar--unread .rcx-sidebar-collapse-group__title {
|
|
5479
|
+
letter-spacing: 0rem;
|
|
5480
|
+
font-size: 0.75rem;
|
|
5481
|
+
font-weight: 700;
|
|
5482
|
+
line-height: 1rem;
|
|
5483
|
+
}
|
|
5486
5484
|
.rcx-sidebar-collapse-group__bar-button {
|
|
5487
5485
|
display: flex;
|
|
5488
5486
|
align-items: center;
|
|
@@ -5511,7 +5509,7 @@ a:where(:active):where(:not(.rcx-button)), .rcx-tag--clickable:where(:active), .
|
|
|
5511
5509
|
box-shadow: none;
|
|
5512
5510
|
}
|
|
5513
5511
|
.rcx-sidebar-collapse-group__bar:has(.rcx-sidebar-collapse-group__bar-button:hover) {
|
|
5514
|
-
background-color: var(--rcx-color-surface-
|
|
5512
|
+
background-color: var(--rcx-sidebar-color-surface-hover, var(--rcx-color-surface-hover, #f2f3f5));
|
|
5515
5513
|
}
|
|
5516
5514
|
.rcx-sidebar-collapse-group__panel--expanded {
|
|
5517
5515
|
padding-block: 0;
|
|
@@ -5526,9 +5524,36 @@ a:where(:active):where(:not(.rcx-button)), .rcx-tag--clickable:where(:active), .
|
|
|
5526
5524
|
z-index: 1;
|
|
5527
5525
|
top: 0;
|
|
5528
5526
|
padding: 0.75rem 1rem 0.75rem 0;
|
|
5527
|
+
color: var(--rcx-color-font-default, #2f343d);
|
|
5529
5528
|
border-radius: var(--rcx-border-radius-small, 0.125rem);
|
|
5530
5529
|
background-color: var(--rcx-color-surface-sidebar, #e4e7ea);
|
|
5531
5530
|
}
|
|
5531
|
+
.rcx-sidebar-accordion-item__bar[tabindex] {
|
|
5532
|
+
cursor: pointer;
|
|
5533
|
+
outline: 0;
|
|
5534
|
+
}
|
|
5535
|
+
.rcx-sidebar-accordion-item__bar[tabindex].disabled, .rcx-sidebar-accordion-item__bar[tabindex]:disabled {
|
|
5536
|
+
cursor: not-allowed;
|
|
5537
|
+
}
|
|
5538
|
+
.rcx-sidebar-accordion-item__bar[tabindex] {
|
|
5539
|
+
border-width: 1px;
|
|
5540
|
+
border-style: solid;
|
|
5541
|
+
border-color: transparent;
|
|
5542
|
+
}
|
|
5543
|
+
.rcx-sidebar-accordion-item__bar[tabindex]:focus-visible, .rcx-sidebar-accordion-item__bar[tabindex].focus.focus-visible {
|
|
5544
|
+
border-color: var(--rcx-color-stroke-highlight, #156ff5);
|
|
5545
|
+
border-radius: var(--rcx-border-radius-medium, 0.25rem);
|
|
5546
|
+
outline: 0;
|
|
5547
|
+
box-shadow: none;
|
|
5548
|
+
}
|
|
5549
|
+
.rcx-sidebar-accordion-item__bar[tabindex].hover, .rcx-sidebar-accordion-item__bar[tabindex]:hover {
|
|
5550
|
+
background-color: var(--rcx-color-surface-tint, #f7f8fa);
|
|
5551
|
+
}
|
|
5552
|
+
.rcx-sidebar-accordion-item__bar--disabled {
|
|
5553
|
+
cursor: not-allowed;
|
|
5554
|
+
color: var(--rcx-color-font-disabled, #cbced1);
|
|
5555
|
+
background-color: var(--rcx-color-surface-disabled, #f7f8fa);
|
|
5556
|
+
}
|
|
5532
5557
|
.rcx-sidebar-accordion-item__bar .rcx-sidebar-accordion-item__chevron {
|
|
5533
5558
|
visibility: hidden;
|
|
5534
5559
|
}
|
|
@@ -6439,40 +6439,48 @@ if (process.env.NODE_ENV !== "production") (function() {
|
|
|
6439
6439
|
});
|
|
6440
6440
|
//#endregion
|
|
6441
6441
|
//#region src/components/Sidebar/SidebarGroupTitle.tsx
|
|
6442
|
-
var SidebarGroupTitle = ({ title, titleId, badge, menu, barProps, expanded, role, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
6443
|
-
className: [
|
|
6442
|
+
var SidebarGroupTitle = ({ title, titleId, badge, menu, barProps, expanded, empty, role, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
6443
|
+
className: [
|
|
6444
|
+
"rcx-box rcx-box--full",
|
|
6445
|
+
"rcx-sidebar-collapse-group__bar",
|
|
6446
|
+
!expanded && empty && "rcx-sidebar-collapse-group__bar--empty",
|
|
6447
|
+
!expanded && badge && "rcx-sidebar-collapse-group__bar--unread"
|
|
6448
|
+
].filter(Boolean).join(" "),
|
|
6444
6449
|
...props,
|
|
6445
6450
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
6446
6451
|
className: "rcx-box rcx-sidebar-collapse-group__bar-button",
|
|
6447
6452
|
role,
|
|
6448
6453
|
...barProps,
|
|
6449
|
-
children: [
|
|
6450
|
-
|
|
6451
|
-
|
|
6452
|
-
right: !expanded
|
|
6453
|
-
}),
|
|
6454
|
-
title && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h4", {
|
|
6454
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
6455
|
+
className: "rcx-box rcx-sidebar-collapse-group__heading",
|
|
6456
|
+
children: [title && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h4", {
|
|
6455
6457
|
className: "rcx-box rcx-box--full rcx-sidebar-collapse-group__title",
|
|
6456
6458
|
id: titleId,
|
|
6457
6459
|
children: title
|
|
6458
|
-
}),
|
|
6459
|
-
|
|
6460
|
-
|
|
6460
|
+
}), expanded !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Chevron, {
|
|
6461
|
+
size: "x20",
|
|
6462
|
+
right: !expanded
|
|
6463
|
+
})]
|
|
6464
|
+
}), !expanded && badge && badge]
|
|
6461
6465
|
}), menu]
|
|
6462
6466
|
});
|
|
6463
6467
|
//#endregion
|
|
6464
6468
|
//#region src/components/Sidebar/SidebarCollapseGroup.tsx
|
|
6465
|
-
function SidebarCollapseGroup({ ref, expanded: propExpanded, defaultExpanded, tabIndex, children, badge, menu, title, ...props }) {
|
|
6469
|
+
function SidebarCollapseGroup({ ref, expanded: propExpanded, defaultExpanded, tabIndex, children, badge, menu, title, empty, role = "group", ...props }) {
|
|
6466
6470
|
const { barProps, expanded, panelExpanded, panelId, titleId } = useCollapse({
|
|
6467
6471
|
expanded: propExpanded,
|
|
6468
6472
|
defaultExpanded,
|
|
6469
6473
|
tabIndex
|
|
6470
6474
|
});
|
|
6471
|
-
|
|
6475
|
+
const labelledBy = props["aria-label"] ? void 0 : titleId;
|
|
6476
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
6472
6477
|
className: "rcx-box rcx-box--full rcx-sidebar-collapse-group",
|
|
6478
|
+
role,
|
|
6479
|
+
"aria-labelledby": labelledBy,
|
|
6473
6480
|
...props,
|
|
6474
6481
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SidebarGroupTitle, {
|
|
6475
6482
|
expanded,
|
|
6483
|
+
empty,
|
|
6476
6484
|
title,
|
|
6477
6485
|
titleId,
|
|
6478
6486
|
badge,
|