@rocket.chat/fuselage 0.92.0 → 0.93.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 +1 -2
- package/dist/components/Sidebar/SidebarCollapseGroup.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarGroupTitle.d.ts +1 -2
- package/dist/components/Sidebar/SidebarGroupTitle.d.ts.map +1 -1
- package/dist/fuselage.css +1 -1
- package/dist/fuselage.development.css +57 -76
- package/dist/fuselage.development.js +15 -23
- package/dist/fuselage.development.js.map +1 -1
- package/dist/fuselage.production.js +3 -3
- package/package.json +4 -3
|
@@ -5218,16 +5218,20 @@ a:where(:active):where(:not(.rcx-button)), .rcx-tag--clickable:where(:active), .
|
|
|
5218
5218
|
font-size: 0.875rem;
|
|
5219
5219
|
font-weight: 400;
|
|
5220
5220
|
line-height: 1.25rem;
|
|
5221
|
+
border-width: 1px;
|
|
5222
|
+
border-style: solid;
|
|
5223
|
+
border-color: transparent;
|
|
5221
5224
|
}
|
|
5222
5225
|
.rcx-sidebar-item:focus-visible, .focus.focus-visible.rcx-sidebar-item {
|
|
5226
|
+
border-color: var(--rcx-color-stroke-highlight, #156ff5);
|
|
5223
5227
|
border-radius: var(--rcx-border-radius-medium, 0.25rem);
|
|
5224
5228
|
outline: 0;
|
|
5225
|
-
box-shadow:
|
|
5229
|
+
box-shadow: none;
|
|
5226
5230
|
}
|
|
5227
5231
|
.rcx-sidebar-item {
|
|
5228
5232
|
display: flex;
|
|
5229
5233
|
align-items: center;
|
|
5230
|
-
border-radius: var(--rcx-border-radius-
|
|
5234
|
+
border-radius: var(--rcx-border-radius-small, 0.125rem);
|
|
5231
5235
|
}
|
|
5232
5236
|
|
|
5233
5237
|
.rcx-sidebar-item:is(a), .rcx-sidebar-item:is(div[role=button]) {
|
|
@@ -5255,14 +5259,13 @@ a:where(:active):where(:not(.rcx-button)), .rcx-tag--clickable:where(:active), .
|
|
|
5255
5259
|
text-overflow: ellipsis;
|
|
5256
5260
|
justify-content: flex-start;
|
|
5257
5261
|
align-items: center;
|
|
5258
|
-
|
|
5259
|
-
padding: 0.25rem;
|
|
5262
|
+
padding: calc(0.25rem - 1px) calc(1rem - 1px);
|
|
5260
5263
|
white-space: nowrap;
|
|
5261
5264
|
text-decoration: none;
|
|
5262
5265
|
gap: 0.25rem;
|
|
5263
5266
|
}
|
|
5264
5267
|
.rcx-sidebar-item--level-2 {
|
|
5265
|
-
padding: 0.
|
|
5268
|
+
padding-block: calc(0.5rem - 1px);
|
|
5266
5269
|
}
|
|
5267
5270
|
.rcx-sidebar-item:active {
|
|
5268
5271
|
color: var(--rcx-sidebar-color-font-active, var(--rcx-color-font-titles-labels, #1f2329));
|
|
@@ -5409,10 +5412,40 @@ a:where(:active):where(:not(.rcx-button)), .rcx-tag--clickable:where(:active), .
|
|
|
5409
5412
|
display: flex;
|
|
5410
5413
|
flex-flow: row nowrap;
|
|
5411
5414
|
align-items: center;
|
|
5415
|
+
min-height: 1.5rem;
|
|
5416
|
+
padding: calc(0.5rem - 1px) calc(1rem - 1px);
|
|
5412
5417
|
text-align: start;
|
|
5418
|
+
color: var(--rcx-color-font-default, #2f343d);
|
|
5419
|
+
background-color: var(--rcx-sidebar-color-surface-default, var(--rcx-color-surface-sidebar, #e4e7ea));
|
|
5413
5420
|
-moz-column-gap: 0.25rem;
|
|
5414
5421
|
column-gap: 0.25rem;
|
|
5415
5422
|
}
|
|
5423
|
+
.rcx-sidebar-collapse-group__bar[tabindex], .rcx-sidebar-accordion-item__bar[tabindex] {
|
|
5424
|
+
cursor: pointer;
|
|
5425
|
+
outline: 0;
|
|
5426
|
+
}
|
|
5427
|
+
.rcx-sidebar-collapse-group__bar[tabindex].disabled, .rcx-sidebar-collapse-group__bar[tabindex]:disabled, .rcx-sidebar-accordion-item__bar[tabindex].disabled, .rcx-sidebar-accordion-item__bar[tabindex]:disabled {
|
|
5428
|
+
cursor: not-allowed;
|
|
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);
|
|
5448
|
+
}
|
|
5416
5449
|
.rcx-sidebar-collapse-group__title, .rcx-sidebar-accordion-item__title {
|
|
5417
5450
|
flex: 1 1 0;
|
|
5418
5451
|
margin: 0;
|
|
@@ -5421,7 +5454,7 @@ a:where(:active):where(:not(.rcx-button)), .rcx-tag--clickable:where(:active), .
|
|
|
5421
5454
|
text-overflow: ellipsis;
|
|
5422
5455
|
letter-spacing: 0rem;
|
|
5423
5456
|
font-size: 0.75rem;
|
|
5424
|
-
font-weight:
|
|
5457
|
+
font-weight: 700;
|
|
5425
5458
|
line-height: 1rem;
|
|
5426
5459
|
}
|
|
5427
5460
|
.rcx-sidebar-collapse-group__menu-wrapper, .rcx-sidebar-accordion-item__menu-wrapper {
|
|
@@ -5430,12 +5463,10 @@ a:where(:active):where(:not(.rcx-button)), .rcx-tag--clickable:where(:active), .
|
|
|
5430
5463
|
flex-shrink: 0;
|
|
5431
5464
|
width: 0;
|
|
5432
5465
|
height: 1.25rem;
|
|
5433
|
-
margin-inline-end: -0.25rem;
|
|
5434
5466
|
opacity: 0;
|
|
5435
5467
|
}
|
|
5436
5468
|
.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 {
|
|
5437
5469
|
width: 1.25rem;
|
|
5438
|
-
margin-inline-end: 0;
|
|
5439
5470
|
opacity: 1;
|
|
5440
5471
|
}
|
|
5441
5472
|
.rcx-sidebar-collapse-group__panel, .rcx-sidebar-accordion-item__panel {
|
|
@@ -5452,27 +5483,6 @@ a:where(:active):where(:not(.rcx-button)), .rcx-tag--clickable:where(:active), .
|
|
|
5452
5483
|
height: 100%;
|
|
5453
5484
|
padding-block: 0.25rem 0.5rem;
|
|
5454
5485
|
}
|
|
5455
|
-
.rcx-sidebar-collapse-group__bar {
|
|
5456
|
-
min-height: 1.75rem;
|
|
5457
|
-
margin-block-start: 0.25rem;
|
|
5458
|
-
margin-inline: 0.25rem;
|
|
5459
|
-
padding: 0.25rem;
|
|
5460
|
-
color: var(--rcx-color-font-secondary-info, #6c737a);
|
|
5461
|
-
border-radius: var(--rcx-border-radius-medium, 0.25rem);
|
|
5462
|
-
background-color: var(--rcx-sidebar-color-surface-default, var(--rcx-color-surface-sidebar, #e4e7ea));
|
|
5463
|
-
}
|
|
5464
|
-
.rcx-sidebar-collapse-group__bar--empty {
|
|
5465
|
-
color: var(--rcx-color-font-disabled, #cbced1);
|
|
5466
|
-
}
|
|
5467
|
-
.rcx-sidebar-collapse-group__bar--unread {
|
|
5468
|
-
color: var(--rcx-sidebar-item-color-highlighted, var(--rcx-color-font-titles-labels, #1f2329));
|
|
5469
|
-
}
|
|
5470
|
-
.rcx-sidebar-collapse-group__bar--unread .rcx-sidebar-collapse-group__title {
|
|
5471
|
-
letter-spacing: 0rem;
|
|
5472
|
-
font-size: 0.75rem;
|
|
5473
|
-
font-weight: 700;
|
|
5474
|
-
line-height: 1rem;
|
|
5475
|
-
}
|
|
5476
5486
|
.rcx-sidebar-collapse-group__bar-button {
|
|
5477
5487
|
display: flex;
|
|
5478
5488
|
align-items: center;
|
|
@@ -5489,20 +5499,19 @@ a:where(:active):where(:not(.rcx-button)), .rcx-tag--clickable:where(:active), .
|
|
|
5489
5499
|
.rcx-sidebar-collapse-group__bar-button[tabindex].disabled, .rcx-sidebar-collapse-group__bar-button[tabindex]:disabled {
|
|
5490
5500
|
cursor: not-allowed;
|
|
5491
5501
|
}
|
|
5492
|
-
.rcx-sidebar-collapse-
|
|
5493
|
-
|
|
5494
|
-
|
|
5495
|
-
|
|
5496
|
-
min-width: 0;
|
|
5497
|
-
}
|
|
5498
|
-
.rcx-sidebar-collapse-group__title {
|
|
5499
|
-
flex: 0 1 auto;
|
|
5502
|
+
.rcx-sidebar-collapse-group__bar-button[tabindex] {
|
|
5503
|
+
border-width: 1px;
|
|
5504
|
+
border-style: solid;
|
|
5505
|
+
border-color: transparent;
|
|
5500
5506
|
}
|
|
5501
|
-
.rcx-sidebar-collapse-group__bar
|
|
5502
|
-
|
|
5507
|
+
.rcx-sidebar-collapse-group__bar-button[tabindex]:focus-visible, .rcx-sidebar-collapse-group__bar-button[tabindex].focus.focus-visible {
|
|
5508
|
+
border-color: var(--rcx-color-stroke-highlight, #156ff5);
|
|
5509
|
+
border-radius: var(--rcx-border-radius-medium, 0.25rem);
|
|
5510
|
+
outline: 0;
|
|
5511
|
+
box-shadow: none;
|
|
5503
5512
|
}
|
|
5504
|
-
.rcx-sidebar-collapse-group__bar:has(.rcx-sidebar-collapse-group__bar-button:
|
|
5505
|
-
|
|
5513
|
+
.rcx-sidebar-collapse-group__bar:has(.rcx-sidebar-collapse-group__bar-button:hover) {
|
|
5514
|
+
background-color: var(--rcx-color-surface-tint, #f7f8fa);
|
|
5506
5515
|
}
|
|
5507
5516
|
.rcx-sidebar-collapse-group__panel--expanded {
|
|
5508
5517
|
padding-block: 0;
|
|
@@ -5516,38 +5525,10 @@ a:where(:active):where(:not(.rcx-button)), .rcx-tag--clickable:where(:active), .
|
|
|
5516
5525
|
position: sticky;
|
|
5517
5526
|
z-index: 1;
|
|
5518
5527
|
top: 0;
|
|
5519
|
-
min-height: 1.5rem;
|
|
5520
5528
|
padding: 0.75rem 1rem 0.75rem 0;
|
|
5521
|
-
color: var(--rcx-color-font-default, #2f343d);
|
|
5522
5529
|
border-radius: var(--rcx-border-radius-small, 0.125rem);
|
|
5523
5530
|
background-color: var(--rcx-color-surface-sidebar, #e4e7ea);
|
|
5524
5531
|
}
|
|
5525
|
-
.rcx-sidebar-accordion-item__bar[tabindex] {
|
|
5526
|
-
cursor: pointer;
|
|
5527
|
-
outline: 0;
|
|
5528
|
-
}
|
|
5529
|
-
.rcx-sidebar-accordion-item__bar[tabindex].disabled, .rcx-sidebar-accordion-item__bar[tabindex]:disabled {
|
|
5530
|
-
cursor: not-allowed;
|
|
5531
|
-
}
|
|
5532
|
-
.rcx-sidebar-accordion-item__bar[tabindex] {
|
|
5533
|
-
border-width: 1px;
|
|
5534
|
-
border-style: solid;
|
|
5535
|
-
border-color: transparent;
|
|
5536
|
-
}
|
|
5537
|
-
.rcx-sidebar-accordion-item__bar[tabindex]:focus-visible, .rcx-sidebar-accordion-item__bar[tabindex].focus.focus-visible {
|
|
5538
|
-
border-color: var(--rcx-color-stroke-highlight, #156ff5);
|
|
5539
|
-
border-radius: var(--rcx-border-radius-medium, 0.25rem);
|
|
5540
|
-
outline: 0;
|
|
5541
|
-
box-shadow: none;
|
|
5542
|
-
}
|
|
5543
|
-
.rcx-sidebar-accordion-item__bar[tabindex].hover, .rcx-sidebar-accordion-item__bar[tabindex]:hover {
|
|
5544
|
-
background-color: var(--rcx-color-surface-tint, #f7f8fa);
|
|
5545
|
-
}
|
|
5546
|
-
.rcx-sidebar-accordion-item__bar--disabled {
|
|
5547
|
-
cursor: not-allowed;
|
|
5548
|
-
color: var(--rcx-color-font-disabled, #cbced1);
|
|
5549
|
-
background-color: var(--rcx-color-surface-disabled, #f7f8fa);
|
|
5550
|
-
}
|
|
5551
5532
|
.rcx-sidebar-accordion-item__bar .rcx-sidebar-accordion-item__chevron {
|
|
5552
5533
|
visibility: hidden;
|
|
5553
5534
|
}
|
|
@@ -6440,13 +6421,13 @@ a:where(:active):where(:not(.rcx-button)), .rcx-tag--clickable:where(:active), .
|
|
|
6440
6421
|
}
|
|
6441
6422
|
.rcx-tooltip--dir-left::after {
|
|
6442
6423
|
inset-block-start: 50%;
|
|
6443
|
-
|
|
6424
|
+
right: -4px;
|
|
6444
6425
|
margin-block-start: -4px;
|
|
6445
6426
|
transform: rotate(-135deg);
|
|
6446
6427
|
}
|
|
6447
6428
|
.rcx-tooltip--dir-right::after {
|
|
6448
6429
|
inset-block-start: 50%;
|
|
6449
|
-
|
|
6430
|
+
left: -4px;
|
|
6450
6431
|
margin-block-start: -4px;
|
|
6451
6432
|
transform: rotate(45deg);
|
|
6452
6433
|
}
|
|
@@ -6459,15 +6440,15 @@ a:where(:active):where(:not(.rcx-button)), .rcx-tag--clickable:where(:active), .
|
|
|
6459
6440
|
background-color: var(--rcx-tooltip-light-background-color, var(--rcx-color-surface-neutral, #e4e7ea));
|
|
6460
6441
|
}
|
|
6461
6442
|
.rcx-tooltip--pos-middle::after {
|
|
6462
|
-
|
|
6463
|
-
margin-
|
|
6443
|
+
left: 50%;
|
|
6444
|
+
margin-left: -4px;
|
|
6464
6445
|
}
|
|
6465
6446
|
.rcx-tooltip--pos-start::after {
|
|
6466
|
-
|
|
6447
|
+
left: 8px;
|
|
6467
6448
|
margin: 0;
|
|
6468
6449
|
}
|
|
6469
6450
|
.rcx-tooltip--pos-end::after {
|
|
6470
|
-
|
|
6471
|
-
|
|
6451
|
+
left: initial;
|
|
6452
|
+
right: 8px;
|
|
6472
6453
|
margin: 0;
|
|
6473
6454
|
}
|
|
@@ -6439,48 +6439,40 @@ 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,
|
|
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(" "),
|
|
6442
|
+
var SidebarGroupTitle = ({ title, titleId, badge, menu, barProps, expanded, role, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
6443
|
+
className: ["rcx-box rcx-box--full", "rcx-sidebar-collapse-group__bar rcx-box--animated"].filter(Boolean).join(" "),
|
|
6449
6444
|
...props,
|
|
6450
6445
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
6451
6446
|
className: "rcx-box rcx-sidebar-collapse-group__bar-button",
|
|
6452
6447
|
role,
|
|
6453
6448
|
...barProps,
|
|
6454
|
-
children: [
|
|
6455
|
-
|
|
6456
|
-
|
|
6449
|
+
children: [
|
|
6450
|
+
expanded !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Chevron, {
|
|
6451
|
+
size: "x20",
|
|
6452
|
+
right: !expanded
|
|
6453
|
+
}),
|
|
6454
|
+
title && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h4", {
|
|
6457
6455
|
className: "rcx-box rcx-box--full rcx-sidebar-collapse-group__title",
|
|
6458
6456
|
id: titleId,
|
|
6459
6457
|
children: title
|
|
6460
|
-
}),
|
|
6461
|
-
|
|
6462
|
-
|
|
6463
|
-
})]
|
|
6464
|
-
}), !expanded && badge && badge]
|
|
6458
|
+
}),
|
|
6459
|
+
!expanded && badge && badge
|
|
6460
|
+
]
|
|
6465
6461
|
}), menu]
|
|
6466
6462
|
});
|
|
6467
6463
|
//#endregion
|
|
6468
6464
|
//#region src/components/Sidebar/SidebarCollapseGroup.tsx
|
|
6469
|
-
function SidebarCollapseGroup({ ref, expanded: propExpanded, defaultExpanded, tabIndex, children, badge, menu, title,
|
|
6465
|
+
function SidebarCollapseGroup({ ref, expanded: propExpanded, defaultExpanded, tabIndex, children, badge, menu, title, ...props }) {
|
|
6470
6466
|
const { barProps, expanded, panelExpanded, panelId, titleId } = useCollapse({
|
|
6471
6467
|
expanded: propExpanded,
|
|
6472
6468
|
defaultExpanded,
|
|
6473
6469
|
tabIndex
|
|
6474
6470
|
});
|
|
6475
|
-
|
|
6476
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
6471
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
|
|
6477
6472
|
className: "rcx-box rcx-box--full rcx-sidebar-collapse-group",
|
|
6478
|
-
role,
|
|
6479
|
-
"aria-labelledby": labelledBy,
|
|
6480
6473
|
...props,
|
|
6481
6474
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SidebarGroupTitle, {
|
|
6482
6475
|
expanded,
|
|
6483
|
-
empty,
|
|
6484
6476
|
title,
|
|
6485
6477
|
titleId,
|
|
6486
6478
|
badge,
|
|
@@ -6937,8 +6929,8 @@ if (process.env.NODE_ENV !== "production") (function() {
|
|
|
6937
6929
|
//#endregion
|
|
6938
6930
|
//#region src/components/Tooltip/Tooltip.tsx
|
|
6939
6931
|
var parsePlacement = (placement) => {
|
|
6940
|
-
const [direction, position] = placement ? placement.split("-") : [
|
|
6941
|
-
if (direction === "right" || direction === "left") return [direction,
|
|
6932
|
+
const [direction, position] = placement ? placement.split("-") : [void 0, void 0];
|
|
6933
|
+
if (direction === "right" || direction === "left") return [direction, void 0];
|
|
6942
6934
|
return [direction, position];
|
|
6943
6935
|
};
|
|
6944
6936
|
function Tooltip({ variation = "dark", placement, ...props }) {
|