@rocket.chat/fuselage 0.91.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/PaletteStyleTag/helpers/getPalette.d.ts +113 -113
- 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/components/Sidebar/SidebarItem/SidebarItem.d.ts +1 -2
- package/dist/components/Sidebar/SidebarItem/SidebarItem.d.ts.map +1 -1
- package/dist/components/Sidebar/hooks/useCollapse.d.ts +1 -1
- package/dist/fuselage.css +1 -1
- package/dist/fuselage.development.css +58 -69
- package/dist/fuselage.development.js +7 -18
- package/dist/fuselage.development.js.map +1 -1
- package/dist/fuselage.production.js +3 -3
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/tsdoc-metadata.json +1 -1
- package/package.json +16 -15
|
@@ -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,17 +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.5rem;
|
|
5266
|
-
}
|
|
5267
|
-
.rcx-sidebar-item--indent {
|
|
5268
|
-
margin-inline-start: 0.75rem;
|
|
5268
|
+
padding-block: calc(0.5rem - 1px);
|
|
5269
5269
|
}
|
|
5270
5270
|
.rcx-sidebar-item:active {
|
|
5271
5271
|
color: var(--rcx-sidebar-color-font-active, var(--rcx-color-font-titles-labels, #1f2329));
|
|
@@ -5412,10 +5412,40 @@ a:where(:active):where(:not(.rcx-button)), .rcx-tag--clickable:where(:active), .
|
|
|
5412
5412
|
display: flex;
|
|
5413
5413
|
flex-flow: row nowrap;
|
|
5414
5414
|
align-items: center;
|
|
5415
|
+
min-height: 1.5rem;
|
|
5416
|
+
padding: calc(0.5rem - 1px) calc(1rem - 1px);
|
|
5415
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));
|
|
5416
5420
|
-moz-column-gap: 0.25rem;
|
|
5417
5421
|
column-gap: 0.25rem;
|
|
5418
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
|
+
}
|
|
5419
5449
|
.rcx-sidebar-collapse-group__title, .rcx-sidebar-accordion-item__title {
|
|
5420
5450
|
flex: 1 1 0;
|
|
5421
5451
|
margin: 0;
|
|
@@ -5424,7 +5454,7 @@ a:where(:active):where(:not(.rcx-button)), .rcx-tag--clickable:where(:active), .
|
|
|
5424
5454
|
text-overflow: ellipsis;
|
|
5425
5455
|
letter-spacing: 0rem;
|
|
5426
5456
|
font-size: 0.75rem;
|
|
5427
|
-
font-weight:
|
|
5457
|
+
font-weight: 700;
|
|
5428
5458
|
line-height: 1rem;
|
|
5429
5459
|
}
|
|
5430
5460
|
.rcx-sidebar-collapse-group__menu-wrapper, .rcx-sidebar-accordion-item__menu-wrapper {
|
|
@@ -5453,27 +5483,6 @@ a:where(:active):where(:not(.rcx-button)), .rcx-tag--clickable:where(:active), .
|
|
|
5453
5483
|
height: 100%;
|
|
5454
5484
|
padding-block: 0.25rem 0.5rem;
|
|
5455
5485
|
}
|
|
5456
|
-
.rcx-sidebar-collapse-group__bar {
|
|
5457
|
-
min-height: 1.75rem;
|
|
5458
|
-
margin-block-start: 0.25rem;
|
|
5459
|
-
margin-inline: 0.25rem;
|
|
5460
|
-
padding: 0.25rem;
|
|
5461
|
-
color: var(--rcx-color-font-secondary-info, #6c737a);
|
|
5462
|
-
border-radius: var(--rcx-border-radius-medium, 0.25rem);
|
|
5463
|
-
background-color: var(--rcx-sidebar-color-surface-default, var(--rcx-color-surface-sidebar, #e4e7ea));
|
|
5464
|
-
}
|
|
5465
|
-
.rcx-sidebar-collapse-group__bar--empty {
|
|
5466
|
-
color: var(--rcx-color-font-disabled, #cbced1);
|
|
5467
|
-
}
|
|
5468
|
-
.rcx-sidebar-collapse-group__bar--unread {
|
|
5469
|
-
color: var(--rcx-sidebar-item-color-highlighted, var(--rcx-color-font-titles-labels, #1f2329));
|
|
5470
|
-
}
|
|
5471
|
-
.rcx-sidebar-collapse-group__bar--unread .rcx-sidebar-collapse-group__title {
|
|
5472
|
-
letter-spacing: 0rem;
|
|
5473
|
-
font-size: 0.75rem;
|
|
5474
|
-
font-weight: 700;
|
|
5475
|
-
line-height: 1rem;
|
|
5476
|
-
}
|
|
5477
5486
|
.rcx-sidebar-collapse-group__bar-button {
|
|
5478
5487
|
display: flex;
|
|
5479
5488
|
align-items: center;
|
|
@@ -5490,11 +5499,19 @@ a:where(:active):where(:not(.rcx-button)), .rcx-tag--clickable:where(:active), .
|
|
|
5490
5499
|
.rcx-sidebar-collapse-group__bar-button[tabindex].disabled, .rcx-sidebar-collapse-group__bar-button[tabindex]:disabled {
|
|
5491
5500
|
cursor: not-allowed;
|
|
5492
5501
|
}
|
|
5493
|
-
.rcx-sidebar-collapse-group__bar
|
|
5494
|
-
|
|
5502
|
+
.rcx-sidebar-collapse-group__bar-button[tabindex] {
|
|
5503
|
+
border-width: 1px;
|
|
5504
|
+
border-style: solid;
|
|
5505
|
+
border-color: transparent;
|
|
5495
5506
|
}
|
|
5496
|
-
.rcx-sidebar-collapse-group__bar:
|
|
5497
|
-
|
|
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;
|
|
5512
|
+
}
|
|
5513
|
+
.rcx-sidebar-collapse-group__bar:has(.rcx-sidebar-collapse-group__bar-button:hover) {
|
|
5514
|
+
background-color: var(--rcx-color-surface-tint, #f7f8fa);
|
|
5498
5515
|
}
|
|
5499
5516
|
.rcx-sidebar-collapse-group__panel--expanded {
|
|
5500
5517
|
padding-block: 0;
|
|
@@ -5508,38 +5525,10 @@ a:where(:active):where(:not(.rcx-button)), .rcx-tag--clickable:where(:active), .
|
|
|
5508
5525
|
position: sticky;
|
|
5509
5526
|
z-index: 1;
|
|
5510
5527
|
top: 0;
|
|
5511
|
-
min-height: 1.5rem;
|
|
5512
5528
|
padding: 0.75rem 1rem 0.75rem 0;
|
|
5513
|
-
color: var(--rcx-color-font-default, #2f343d);
|
|
5514
5529
|
border-radius: var(--rcx-border-radius-small, 0.125rem);
|
|
5515
5530
|
background-color: var(--rcx-color-surface-sidebar, #e4e7ea);
|
|
5516
5531
|
}
|
|
5517
|
-
.rcx-sidebar-accordion-item__bar[tabindex] {
|
|
5518
|
-
cursor: pointer;
|
|
5519
|
-
outline: 0;
|
|
5520
|
-
}
|
|
5521
|
-
.rcx-sidebar-accordion-item__bar[tabindex].disabled, .rcx-sidebar-accordion-item__bar[tabindex]:disabled {
|
|
5522
|
-
cursor: not-allowed;
|
|
5523
|
-
}
|
|
5524
|
-
.rcx-sidebar-accordion-item__bar[tabindex] {
|
|
5525
|
-
border-width: 1px;
|
|
5526
|
-
border-style: solid;
|
|
5527
|
-
border-color: transparent;
|
|
5528
|
-
}
|
|
5529
|
-
.rcx-sidebar-accordion-item__bar[tabindex]:focus-visible, .rcx-sidebar-accordion-item__bar[tabindex].focus.focus-visible {
|
|
5530
|
-
border-color: var(--rcx-color-stroke-highlight, #156ff5);
|
|
5531
|
-
border-radius: var(--rcx-border-radius-medium, 0.25rem);
|
|
5532
|
-
outline: 0;
|
|
5533
|
-
box-shadow: none;
|
|
5534
|
-
}
|
|
5535
|
-
.rcx-sidebar-accordion-item__bar[tabindex].hover, .rcx-sidebar-accordion-item__bar[tabindex]:hover {
|
|
5536
|
-
background-color: var(--rcx-color-surface-tint, #f7f8fa);
|
|
5537
|
-
}
|
|
5538
|
-
.rcx-sidebar-accordion-item__bar--disabled {
|
|
5539
|
-
cursor: not-allowed;
|
|
5540
|
-
color: var(--rcx-color-font-disabled, #cbced1);
|
|
5541
|
-
background-color: var(--rcx-color-surface-disabled, #f7f8fa);
|
|
5542
|
-
}
|
|
5543
5532
|
.rcx-sidebar-accordion-item__bar .rcx-sidebar-accordion-item__chevron {
|
|
5544
5533
|
visibility: hidden;
|
|
5545
5534
|
}
|
|
@@ -6432,13 +6421,13 @@ a:where(:active):where(:not(.rcx-button)), .rcx-tag--clickable:where(:active), .
|
|
|
6432
6421
|
}
|
|
6433
6422
|
.rcx-tooltip--dir-left::after {
|
|
6434
6423
|
inset-block-start: 50%;
|
|
6435
|
-
|
|
6424
|
+
right: -4px;
|
|
6436
6425
|
margin-block-start: -4px;
|
|
6437
6426
|
transform: rotate(-135deg);
|
|
6438
6427
|
}
|
|
6439
6428
|
.rcx-tooltip--dir-right::after {
|
|
6440
6429
|
inset-block-start: 50%;
|
|
6441
|
-
|
|
6430
|
+
left: -4px;
|
|
6442
6431
|
margin-block-start: -4px;
|
|
6443
6432
|
transform: rotate(45deg);
|
|
6444
6433
|
}
|
|
@@ -6451,15 +6440,15 @@ a:where(:active):where(:not(.rcx-button)), .rcx-tag--clickable:where(:active), .
|
|
|
6451
6440
|
background-color: var(--rcx-tooltip-light-background-color, var(--rcx-color-surface-neutral, #e4e7ea));
|
|
6452
6441
|
}
|
|
6453
6442
|
.rcx-tooltip--pos-middle::after {
|
|
6454
|
-
|
|
6455
|
-
margin-
|
|
6443
|
+
left: 50%;
|
|
6444
|
+
margin-left: -4px;
|
|
6456
6445
|
}
|
|
6457
6446
|
.rcx-tooltip--pos-start::after {
|
|
6458
|
-
|
|
6447
|
+
left: 8px;
|
|
6459
6448
|
margin: 0;
|
|
6460
6449
|
}
|
|
6461
6450
|
.rcx-tooltip--pos-end::after {
|
|
6462
|
-
|
|
6463
|
-
|
|
6451
|
+
left: initial;
|
|
6452
|
+
right: 8px;
|
|
6464
6453
|
margin: 0;
|
|
6465
6454
|
}
|
|
@@ -6207,12 +6207,11 @@ if (process.env.NODE_ENV !== "production") (function() {
|
|
|
6207
6207
|
});
|
|
6208
6208
|
//#endregion
|
|
6209
6209
|
//#region src/components/Sidebar/SidebarItem/SidebarItem.tsx
|
|
6210
|
-
var SidebarItem = ({ selected, level = 1,
|
|
6210
|
+
var SidebarItem = ({ selected, level = 1, className, children, is: Tag = "a", ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Tag, {
|
|
6211
6211
|
className: [
|
|
6212
6212
|
"rcx-box rcx-box--full rcx-sidebar-item",
|
|
6213
6213
|
selected && "rcx-sidebar-item--selected",
|
|
6214
6214
|
level && `rcx-sidebar-item--level-${level}`,
|
|
6215
|
-
indent && "rcx-sidebar-item--indent",
|
|
6216
6215
|
className
|
|
6217
6216
|
].filter(Boolean).join(" "),
|
|
6218
6217
|
...props,
|
|
@@ -6440,14 +6439,8 @@ if (process.env.NODE_ENV !== "production") (function() {
|
|
|
6440
6439
|
});
|
|
6441
6440
|
//#endregion
|
|
6442
6441
|
//#region src/components/Sidebar/SidebarGroupTitle.tsx
|
|
6443
|
-
var SidebarGroupTitle = ({ title, titleId, badge, menu, barProps, expanded,
|
|
6444
|
-
className: [
|
|
6445
|
-
"rcx-box rcx-box--full",
|
|
6446
|
-
"rcx-sidebar-collapse-group__bar",
|
|
6447
|
-
!expanded && empty && "rcx-sidebar-collapse-group__bar--empty",
|
|
6448
|
-
!expanded && badge && "rcx-sidebar-collapse-group__bar--unread",
|
|
6449
|
-
"rcx-box--animated"
|
|
6450
|
-
].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(" "),
|
|
6451
6444
|
...props,
|
|
6452
6445
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
6453
6446
|
className: "rcx-box rcx-sidebar-collapse-group__bar-button",
|
|
@@ -6469,21 +6462,17 @@ if (process.env.NODE_ENV !== "production") (function() {
|
|
|
6469
6462
|
});
|
|
6470
6463
|
//#endregion
|
|
6471
6464
|
//#region src/components/Sidebar/SidebarCollapseGroup.tsx
|
|
6472
|
-
function SidebarCollapseGroup({ ref, expanded: propExpanded, defaultExpanded, tabIndex, children, badge, menu, title,
|
|
6465
|
+
function SidebarCollapseGroup({ ref, expanded: propExpanded, defaultExpanded, tabIndex, children, badge, menu, title, ...props }) {
|
|
6473
6466
|
const { barProps, expanded, panelExpanded, panelId, titleId } = useCollapse({
|
|
6474
6467
|
expanded: propExpanded,
|
|
6475
6468
|
defaultExpanded,
|
|
6476
6469
|
tabIndex
|
|
6477
6470
|
});
|
|
6478
|
-
|
|
6479
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
6471
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
|
|
6480
6472
|
className: "rcx-box rcx-box--full rcx-sidebar-collapse-group",
|
|
6481
|
-
role,
|
|
6482
|
-
"aria-labelledby": labelledBy,
|
|
6483
6473
|
...props,
|
|
6484
6474
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SidebarGroupTitle, {
|
|
6485
6475
|
expanded,
|
|
6486
|
-
empty,
|
|
6487
6476
|
title,
|
|
6488
6477
|
titleId,
|
|
6489
6478
|
badge,
|
|
@@ -6940,8 +6929,8 @@ if (process.env.NODE_ENV !== "production") (function() {
|
|
|
6940
6929
|
//#endregion
|
|
6941
6930
|
//#region src/components/Tooltip/Tooltip.tsx
|
|
6942
6931
|
var parsePlacement = (placement) => {
|
|
6943
|
-
const [direction, position] = placement ? placement.split("-") : [
|
|
6944
|
-
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];
|
|
6945
6934
|
return [direction, position];
|
|
6946
6935
|
};
|
|
6947
6936
|
function Tooltip({ variation = "dark", placement, ...props }) {
|