1
0
Fork 0
mirror of synced 2024-09-30 00:57:16 +13:00

add invite user button

This commit is contained in:
Peter Clement 2023-08-30 13:44:36 +01:00
parent adef9a17eb
commit 86c35a2266
2 changed files with 22 additions and 17 deletions

View file

@ -87,7 +87,7 @@
{selectedLabel || ""}
</div>
<div class="align">
<div class="align arrow-alignment">
<Icon name="ChevronDown" />
</div>
</FancyField>
@ -139,6 +139,10 @@
transition: transform 130ms ease-out, opacity 130ms ease-out;
transform: translateY(9px);
}
.arrow-alignment {
transform: translateY(-2px);
}
.value.placeholder {
transform: translateY(0);
opacity: 0;

View file

@ -523,17 +523,22 @@
{/if}
<Heading size="S">{invitingFlow ? "Invite new user" : "Users"}</Heading>
</div>
<Icon
color="var(--spectrum-global-color-gray-600)"
name="RailRightClose"
hoverable
on:click={() => {
store.update(state => {
state.builderSidePanel = false
return state
})
}}
/>
<div class="header">
<Button on:click={() => (invitingFlow = true)} size="S" cta
>Invite user</Button
>
<Icon
color="var(--spectrum-global-color-gray-600)"
name="RailRightClose"
hoverable
on:click={() => {
store.update(state => {
state.builderSidePanel = false
return state
})
}}
/>
</div>
</div>
{#if !invitingFlow}
<div class="search" class:focused={searchFocus}>
@ -555,15 +560,11 @@
class="search-input-icon"
class:searching={query || !filterByAppAccess}
on:click={() => {
if (!filterByAppAccess) {
filterByAppAccess = true
}
if (!query) {
return
}
query = null
userOnboardResponse = null
filterByAppAccess = true
}}
>
<Icon name={!filterByAppAccess || query ? "Close" : "Search"} />
@ -800,7 +801,7 @@
<Button
newStyles
cta
disabled={!query.length && !email?.length}
disabled={!email?.length}
on:click={onInviteUser}>Add user</Button
>
</span>