2023-02-01 18:51:37 +00:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
2023-06-01 12:35:47 +00:00
|
|
|
exports[`SpaceHierarchy <SpaceHierarchy /> renders 1`] = `
|
|
|
|
<DocumentFragment>
|
|
|
|
<div
|
|
|
|
class="mx_SearchBox mx_textinput"
|
2023-02-01 18:51:37 +00:00
|
|
|
>
|
2023-06-01 12:35:47 +00:00
|
|
|
<input
|
|
|
|
autocomplete="off"
|
|
|
|
class="mx_textinput_icon mx_textinput_search mx_SpaceHierarchy_search mx_textinput_icon mx_textinput_search"
|
|
|
|
data-testid="searchbox-input"
|
|
|
|
placeholder="Search names and descriptions"
|
|
|
|
type="text"
|
|
|
|
value=""
|
|
|
|
/>
|
2023-02-01 18:51:37 +00:00
|
|
|
<div
|
2023-06-01 12:35:47 +00:00
|
|
|
class="mx_AccessibleButton mx_SearchBox_closeButton"
|
2023-02-01 18:51:37 +00:00
|
|
|
role="button"
|
|
|
|
tabindex="-1"
|
2023-06-01 12:35:47 +00:00
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_SpaceHierarchy_listHeader"
|
|
|
|
>
|
|
|
|
<h4
|
|
|
|
class="mx_SpaceHierarchy_listHeader_header"
|
|
|
|
>
|
|
|
|
Rooms and spaces
|
|
|
|
</h4>
|
|
|
|
<div
|
|
|
|
class="mx_SpaceHierarchy_listHeader_buttons"
|
2023-02-01 18:51:37 +00:00
|
|
|
>
|
|
|
|
<div
|
2023-06-01 12:35:47 +00:00
|
|
|
aria-disabled="true"
|
2024-05-03 14:07:11 +00:00
|
|
|
aria-label="Remove"
|
2023-06-01 12:35:47 +00:00
|
|
|
class="mx_AccessibleButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_danger_outline mx_AccessibleButton_disabled"
|
|
|
|
disabled=""
|
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
|
|
|
>
|
|
|
|
Remove
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
aria-disabled="true"
|
2024-05-03 14:07:11 +00:00
|
|
|
aria-label="Mark as not suggested"
|
2023-06-01 12:35:47 +00:00
|
|
|
class="mx_AccessibleButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_primary_outline mx_AccessibleButton_disabled"
|
|
|
|
disabled=""
|
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
|
|
|
>
|
|
|
|
Mark as not suggested
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<ul
|
|
|
|
aria-label="Space"
|
|
|
|
class="mx_SpaceHierarchy_list"
|
|
|
|
role="tree"
|
|
|
|
>
|
|
|
|
<li
|
|
|
|
class="mx_SpaceHierarchy_roomTileWrapper"
|
|
|
|
role="treeitem"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_AccessibleButton mx_SpaceHierarchy_roomTile"
|
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
2023-02-01 18:51:37 +00:00
|
|
|
>
|
|
|
|
<div
|
2023-06-01 12:35:47 +00:00
|
|
|
class="mx_SpaceHierarchy_roomTile_item"
|
2023-02-01 18:51:37 +00:00
|
|
|
>
|
|
|
|
<div
|
2023-06-01 12:35:47 +00:00
|
|
|
class="mx_SpaceHierarchy_roomTile_avatar"
|
|
|
|
>
|
|
|
|
<span
|
2024-03-07 14:40:03 +00:00
|
|
|
class="_avatar_mcap2_17 mx_BaseAvatar _avatar-imageless_mcap2_61"
|
2024-02-07 17:26:05 +00:00
|
|
|
data-color="5"
|
2023-08-24 03:48:35 +00:00
|
|
|
data-testid="avatar-img"
|
|
|
|
data-type="round"
|
2023-06-01 12:35:47 +00:00
|
|
|
role="presentation"
|
2023-08-24 03:48:35 +00:00
|
|
|
style="--cpd-avatar-size: 20px;"
|
2023-06-01 12:35:47 +00:00
|
|
|
>
|
2023-08-24 03:48:35 +00:00
|
|
|
U
|
2023-06-01 12:35:47 +00:00
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_SpaceHierarchy_roomTile_name"
|
|
|
|
>
|
|
|
|
Unnamed Room
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_SpaceHierarchy_roomTile_info"
|
2023-02-01 18:51:37 +00:00
|
|
|
>
|
2023-06-01 12:35:47 +00:00
|
|
|
2 members
|
2023-02-01 18:51:37 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
2023-06-01 12:35:47 +00:00
|
|
|
class="mx_SpaceHierarchy_actions"
|
2023-02-01 18:51:37 +00:00
|
|
|
>
|
2023-06-01 12:35:47 +00:00
|
|
|
<div
|
|
|
|
class="mx_AccessibleButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_primary"
|
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
|
|
|
>
|
|
|
|
Join
|
|
|
|
</div>
|
2023-02-01 18:51:37 +00:00
|
|
|
<span
|
2023-06-01 12:35:47 +00:00
|
|
|
class="mx_Checkbox mx_Checkbox_hasKind mx_Checkbox_kind_solid"
|
|
|
|
>
|
|
|
|
<input
|
2023-08-09 08:39:48 +00:00
|
|
|
id="checkbox_vY7Q4uEh9K"
|
2023-06-01 12:35:47 +00:00
|
|
|
tabindex="0"
|
|
|
|
type="checkbox"
|
|
|
|
/>
|
|
|
|
<label
|
2023-08-09 08:39:48 +00:00
|
|
|
for="checkbox_vY7Q4uEh9K"
|
2023-06-01 12:35:47 +00:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_Checkbox_background"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_Checkbox_checkmark"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</label>
|
|
|
|
</span>
|
2023-02-01 18:51:37 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-06-01 12:35:47 +00:00
|
|
|
</li>
|
|
|
|
<li
|
|
|
|
class="mx_SpaceHierarchy_roomTileWrapper"
|
|
|
|
role="treeitem"
|
|
|
|
>
|
2023-02-01 18:51:37 +00:00
|
|
|
<div
|
2023-06-01 12:35:47 +00:00
|
|
|
class="mx_AccessibleButton mx_SpaceHierarchy_roomTile"
|
|
|
|
role="button"
|
|
|
|
tabindex="-1"
|
2023-02-01 18:51:37 +00:00
|
|
|
>
|
|
|
|
<div
|
2023-06-01 12:35:47 +00:00
|
|
|
class="mx_SpaceHierarchy_roomTile_item"
|
2023-02-01 18:51:37 +00:00
|
|
|
>
|
2023-06-01 12:35:47 +00:00
|
|
|
<div
|
|
|
|
class="mx_SpaceHierarchy_roomTile_avatar"
|
|
|
|
>
|
|
|
|
<span
|
2024-03-07 14:40:03 +00:00
|
|
|
class="_avatar_mcap2_17 mx_BaseAvatar _avatar-imageless_mcap2_61"
|
2024-02-07 17:26:05 +00:00
|
|
|
data-color="6"
|
2023-08-24 03:48:35 +00:00
|
|
|
data-testid="avatar-img"
|
|
|
|
data-type="round"
|
2023-06-01 12:35:47 +00:00
|
|
|
role="presentation"
|
2023-08-24 03:48:35 +00:00
|
|
|
style="--cpd-avatar-size: 20px;"
|
2023-06-01 12:35:47 +00:00
|
|
|
>
|
2023-08-24 03:48:35 +00:00
|
|
|
U
|
2023-06-01 12:35:47 +00:00
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_SpaceHierarchy_roomTile_name"
|
|
|
|
>
|
|
|
|
Unnamed Room
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_SpaceHierarchy_roomTile_info"
|
|
|
|
>
|
|
|
|
3 members
|
|
|
|
</div>
|
2023-02-01 18:51:37 +00:00
|
|
|
</div>
|
2023-06-01 12:35:47 +00:00
|
|
|
<div
|
|
|
|
class="mx_SpaceHierarchy_actions"
|
2023-02-01 18:51:37 +00:00
|
|
|
>
|
2023-06-01 12:35:47 +00:00
|
|
|
<div
|
|
|
|
class="mx_AccessibleButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_primary"
|
|
|
|
role="button"
|
2023-02-01 18:51:37 +00:00
|
|
|
tabindex="-1"
|
|
|
|
>
|
2023-06-01 12:35:47 +00:00
|
|
|
Join
|
|
|
|
</div>
|
|
|
|
<span
|
|
|
|
class="mx_Checkbox mx_Checkbox_hasKind mx_Checkbox_kind_solid"
|
|
|
|
>
|
|
|
|
<input
|
2023-08-09 08:39:48 +00:00
|
|
|
id="checkbox_38QgU2Pomx"
|
2023-06-01 12:35:47 +00:00
|
|
|
tabindex="-1"
|
|
|
|
type="checkbox"
|
|
|
|
/>
|
|
|
|
<label
|
2023-08-09 08:39:48 +00:00
|
|
|
for="checkbox_38QgU2Pomx"
|
2023-02-01 18:51:37 +00:00
|
|
|
>
|
|
|
|
<div
|
2023-06-01 12:35:47 +00:00
|
|
|
class="mx_Checkbox_background"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_Checkbox_checkmark"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</label>
|
|
|
|
</span>
|
|
|
|
</div>
|
2023-02-01 18:51:37 +00:00
|
|
|
</div>
|
2023-06-01 12:35:47 +00:00
|
|
|
</li>
|
2024-04-11 11:18:16 +00:00
|
|
|
<li
|
|
|
|
class="mx_SpaceHierarchy_roomTileWrapper"
|
|
|
|
role="treeitem"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_AccessibleButton mx_SpaceHierarchy_roomTile"
|
|
|
|
role="button"
|
|
|
|
tabindex="-1"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_SpaceHierarchy_roomTile_item"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_SpaceHierarchy_roomTile_avatar"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="_avatar_mcap2_17 mx_BaseAvatar _avatar-imageless_mcap2_61"
|
|
|
|
data-color="6"
|
|
|
|
data-testid="avatar-img"
|
|
|
|
data-type="round"
|
|
|
|
role="presentation"
|
|
|
|
style="--cpd-avatar-size: 20px;"
|
|
|
|
>
|
|
|
|
K
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_SpaceHierarchy_roomTile_name"
|
|
|
|
>
|
|
|
|
Knock room
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_SpaceHierarchy_roomTile_info"
|
|
|
|
>
|
|
|
|
3 members
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_SpaceHierarchy_actions"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_AccessibleButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_primary_outline"
|
|
|
|
role="button"
|
|
|
|
tabindex="-1"
|
|
|
|
>
|
|
|
|
View
|
|
|
|
</div>
|
|
|
|
<span
|
|
|
|
class="mx_Checkbox mx_Checkbox_hasKind mx_Checkbox_kind_solid"
|
|
|
|
>
|
|
|
|
<input
|
|
|
|
id="checkbox_wKpa6hpi3Y"
|
|
|
|
tabindex="-1"
|
|
|
|
type="checkbox"
|
|
|
|
/>
|
|
|
|
<label
|
|
|
|
for="checkbox_wKpa6hpi3Y"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_Checkbox_background"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_Checkbox_checkmark"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</label>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</li>
|
2023-06-01 12:35:47 +00:00
|
|
|
<li
|
|
|
|
aria-expanded="true"
|
|
|
|
class="mx_SpaceHierarchy_roomTileWrapper"
|
|
|
|
role="treeitem"
|
2023-02-01 18:51:37 +00:00
|
|
|
>
|
|
|
|
<div
|
2023-06-01 12:35:47 +00:00
|
|
|
class="mx_AccessibleButton mx_SpaceHierarchy_roomTile mx_SpaceHierarchy_subspace"
|
|
|
|
role="button"
|
|
|
|
tabindex="-1"
|
2023-02-01 18:51:37 +00:00
|
|
|
>
|
|
|
|
<div
|
2023-06-01 12:35:47 +00:00
|
|
|
class="mx_SpaceHierarchy_roomTile_item"
|
2023-02-01 18:51:37 +00:00
|
|
|
>
|
|
|
|
<div
|
2023-06-01 12:35:47 +00:00
|
|
|
class="mx_SpaceHierarchy_roomTile_avatar"
|
|
|
|
>
|
|
|
|
<span
|
2024-03-07 14:40:03 +00:00
|
|
|
class="_avatar_mcap2_17 mx_BaseAvatar _avatar-imageless_mcap2_61"
|
2024-02-07 17:26:05 +00:00
|
|
|
data-color="2"
|
2023-08-24 03:48:35 +00:00
|
|
|
data-testid="avatar-img"
|
|
|
|
data-type="round"
|
2023-06-01 12:35:47 +00:00
|
|
|
role="presentation"
|
2023-08-24 03:48:35 +00:00
|
|
|
style="--cpd-avatar-size: 20px;"
|
2023-06-01 12:35:47 +00:00
|
|
|
>
|
2023-08-24 03:48:35 +00:00
|
|
|
N
|
2023-06-01 12:35:47 +00:00
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_SpaceHierarchy_roomTile_name"
|
|
|
|
>
|
|
|
|
Nested space
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_SpaceHierarchy_roomTile_info"
|
2023-02-01 18:51:37 +00:00
|
|
|
>
|
2023-06-01 12:35:47 +00:00
|
|
|
1 member · 1 room
|
2023-02-01 18:51:37 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
2023-06-01 12:35:47 +00:00
|
|
|
class="mx_SpaceHierarchy_actions"
|
2023-02-01 18:51:37 +00:00
|
|
|
>
|
2023-06-01 12:35:47 +00:00
|
|
|
<div
|
|
|
|
class="mx_AccessibleButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_primary"
|
|
|
|
role="button"
|
|
|
|
tabindex="-1"
|
|
|
|
>
|
|
|
|
Join
|
|
|
|
</div>
|
2023-02-01 18:51:37 +00:00
|
|
|
<span
|
2023-06-01 12:35:47 +00:00
|
|
|
class="mx_Checkbox mx_Checkbox_hasKind mx_Checkbox_kind_solid"
|
|
|
|
>
|
|
|
|
<input
|
2024-04-11 11:18:16 +00:00
|
|
|
id="checkbox_EetmBG4yVC"
|
2023-06-01 12:35:47 +00:00
|
|
|
tabindex="-1"
|
|
|
|
type="checkbox"
|
|
|
|
/>
|
|
|
|
<label
|
2024-04-11 11:18:16 +00:00
|
|
|
for="checkbox_EetmBG4yVC"
|
2023-06-01 12:35:47 +00:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_Checkbox_background"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_Checkbox_checkmark"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</label>
|
|
|
|
</span>
|
2023-02-01 18:51:37 +00:00
|
|
|
</div>
|
2023-06-01 12:35:47 +00:00
|
|
|
<div
|
|
|
|
class="mx_SpaceHierarchy_subspace_toggle mx_SpaceHierarchy_subspace_toggle_shown"
|
|
|
|
/>
|
2023-02-01 18:51:37 +00:00
|
|
|
</div>
|
|
|
|
<div
|
2023-06-01 12:35:47 +00:00
|
|
|
class="mx_SpaceHierarchy_subspace_children"
|
|
|
|
role="group"
|
|
|
|
/>
|
|
|
|
</li>
|
|
|
|
<li
|
|
|
|
class="mx_SpaceHierarchy_roomTileWrapper"
|
|
|
|
role="treeitem"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_AccessibleButton mx_SpaceHierarchy_roomTile"
|
|
|
|
role="button"
|
|
|
|
tabindex="-1"
|
2023-02-01 18:51:37 +00:00
|
|
|
>
|
|
|
|
<div
|
2023-06-01 12:35:47 +00:00
|
|
|
class="mx_SpaceHierarchy_roomTile_item"
|
2023-02-01 18:51:37 +00:00
|
|
|
>
|
2023-06-01 12:35:47 +00:00
|
|
|
<div
|
|
|
|
class="mx_SpaceHierarchy_roomTile_avatar"
|
|
|
|
>
|
|
|
|
<span
|
2024-03-07 14:40:03 +00:00
|
|
|
class="_avatar_mcap2_17 mx_BaseAvatar _avatar-imageless_mcap2_61"
|
2023-08-24 03:48:35 +00:00
|
|
|
data-color="2"
|
|
|
|
data-testid="avatar-img"
|
|
|
|
data-type="round"
|
2023-06-01 12:35:47 +00:00
|
|
|
role="presentation"
|
2023-08-24 03:48:35 +00:00
|
|
|
style="--cpd-avatar-size: 20px;"
|
2023-06-01 12:35:47 +00:00
|
|
|
>
|
2023-08-24 03:48:35 +00:00
|
|
|
N
|
2023-06-01 12:35:47 +00:00
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_SpaceHierarchy_roomTile_name"
|
|
|
|
>
|
|
|
|
Nested room
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_SpaceHierarchy_roomTile_info"
|
|
|
|
>
|
|
|
|
3 members
|
|
|
|
</div>
|
2023-02-01 18:51:37 +00:00
|
|
|
</div>
|
2023-06-01 12:35:47 +00:00
|
|
|
<div
|
|
|
|
class="mx_SpaceHierarchy_actions"
|
2023-02-01 18:51:37 +00:00
|
|
|
>
|
2023-06-01 12:35:47 +00:00
|
|
|
<div
|
|
|
|
class="mx_AccessibleButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_primary"
|
|
|
|
role="button"
|
2023-02-01 18:51:37 +00:00
|
|
|
tabindex="-1"
|
|
|
|
>
|
2023-06-01 12:35:47 +00:00
|
|
|
Join
|
|
|
|
</div>
|
2023-12-19 17:19:54 +00:00
|
|
|
<span
|
2024-10-14 16:11:58 +00:00
|
|
|
aria-labelledby="floating-ui-9"
|
2023-06-01 12:35:47 +00:00
|
|
|
tabindex="0"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="mx_Checkbox mx_Checkbox_hasKind mx_Checkbox_kind_solid"
|
2023-02-01 18:51:37 +00:00
|
|
|
>
|
2023-06-01 12:35:47 +00:00
|
|
|
<input
|
|
|
|
disabled=""
|
2024-04-11 11:18:16 +00:00
|
|
|
id="checkbox_eEefiPqpMR"
|
2023-06-01 12:35:47 +00:00
|
|
|
tabindex="-1"
|
|
|
|
type="checkbox"
|
2023-02-01 18:51:37 +00:00
|
|
|
/>
|
2023-06-01 12:35:47 +00:00
|
|
|
<label
|
2024-04-11 11:18:16 +00:00
|
|
|
for="checkbox_eEefiPqpMR"
|
2023-06-01 12:35:47 +00:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_Checkbox_background"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_Checkbox_checkmark"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</label>
|
|
|
|
</span>
|
2023-12-19 17:19:54 +00:00
|
|
|
</span>
|
2023-06-01 12:35:47 +00:00
|
|
|
</div>
|
2023-02-01 18:51:37 +00:00
|
|
|
</div>
|
2023-06-01 12:35:47 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</DocumentFragment>
|
2023-02-01 18:51:37 +00:00
|
|
|
`;
|