Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(clerk-js): Add static toast UI for Keyless mode #4658

Merged
merged 38 commits into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
151234f
WIP:
kaftarmery Nov 26, 2024
a4324f0
Merge branch 'main' into keyless-ui
kaftarmery Nov 26, 2024
73952b2
Merge branch 'main' into keyless-ui
kaftarmery Nov 27, 2024
29de335
More UI polish
kaftarmery Nov 27, 2024
d7574a5
Text shimmer animation
kaftarmery Nov 27, 2024
a6dbcd0
Text shimmer
kaftarmery Nov 27, 2024
0dc0383
Improve animation coordinations
kaftarmery Nov 28, 2024
ce7e200
WIP
kaftarmery Nov 28, 2024
365f442
Fix durations
kaftarmery Nov 28, 2024
8ecd006
Add changeset
kaftarmery Nov 28, 2024
9a3704e
Merge branch 'main' into keyless-ui
kaftarmery Nov 28, 2024
b8450ba
Fix
kaftarmery Nov 28, 2024
5d7bbd3
Fix error
kaftarmery Nov 28, 2024
a0ed896
Update changeset
kaftarmery Nov 28, 2024
d243198
Merge branch 'main' into keyless-ui
kaftarmery Nov 28, 2024
4fc6845
Merge branch 'main' into keyless-ui
kaftarmery Dec 2, 2024
f28a793
Merge branch 'main' into keyless-ui
kaftarmery Dec 2, 2024
53ca021
Add comments to icons
kaftarmery Dec 2, 2024
3359670
Improve based on feedback
kaftarmery Dec 2, 2024
53a1f83
Improve animations and allow text expand
kaftarmery Dec 3, 2024
5001a45
Merge branch 'main' into keyless-ui
kaftarmery Dec 3, 2024
0be031c
Improvements
kaftarmery Dec 3, 2024
fb60992
Merge branch 'main' into keyless-ui
kaftarmery Dec 3, 2024
428038a
Merge branch 'main' into keyless-ui
kaftarmery Dec 3, 2024
914dd70
Merge branch 'main' into keyless-ui
kaftarmery Dec 4, 2024
c3546a5
Small animation improvements
kaftarmery Dec 4, 2024
86b7d67
wip
kaftarmery Dec 4, 2024
d828748
Update packages/clerk-js/src/ui/components/AccountlessPrompt/ClerkLog…
alexcarpenter Dec 4, 2024
626fd6e
Update packages/clerk-js/src/ui/components/AccountlessPrompt/ClerkLog…
alexcarpenter Dec 4, 2024
333e83c
Update packages/clerk-js/src/ui/components/AccountlessPrompt/KeySlash…
alexcarpenter Dec 4, 2024
e331d10
Update packages/clerk-js/src/ui/components/AccountlessPrompt/index.tsx
alexcarpenter Dec 4, 2024
e1b377a
Fixes
kaftarmery Dec 4, 2024
726be0c
Update .changeset/afraid-pumas-design.md
alexcarpenter Dec 5, 2024
9b69539
Ensure elements don't overlap during expansion
kaftarmery Dec 9, 2024
bbf3223
Small fix in easing
kaftarmery Dec 9, 2024
30905d4
Fix
kaftarmery Dec 9, 2024
a8fb338
Solve conflict
kaftarmery Dec 10, 2024
8d0fc61
Merge branch 'main' into keyless-ui
kaftarmery Dec 10, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .changeset/afraid-pumas-design.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
// Custom icon specifically used for the Keyless toast. Not intended to be used anywhere else

export function ClerkLogoIcon() {
return (
<svg
width='1rem'
height='1.25rem'
viewBox='0 0 16 20'
fill='none'
aria-hidden
xmlns='http://www.w3.org/2000/svg'
>
<g filter='url(#filter0_i_438_501)'>
<path
d='M10.4766 9.99979C10.4766 11.3774 9.35978 12.4942 7.98215 12.4942C6.60452 12.4942 5.48773 11.3774 5.48773 9.99979C5.48773 8.62216 6.60452 7.50537 7.98215 7.50537C9.35978 7.50537 10.4766 8.62216 10.4766 9.99979Z'
fill='#BBBBBB'
/>
<path
d='M12.4176 3.36236C12.6676 3.52972 12.6889 3.88187 12.4762 4.09457L10.6548 5.91595C10.4897 6.08107 10.2336 6.10714 10.0257 6.00071C9.41273 5.68684 8.71811 5.50976 7.98214 5.50976C5.5024 5.50976 3.49219 7.51998 3.49219 9.99972C3.49219 10.7357 3.66926 11.4303 3.98314 12.0433C4.08957 12.2511 4.06349 12.5073 3.89837 12.6724L2.07699 14.4938C1.86429 14.7065 1.51215 14.6851 1.34479 14.4352C0.495381 13.1666 0 11.641 0 9.99972C0 5.5913 3.57373 2.01758 7.98214 2.01758C9.62345 2.01758 11.1491 2.51296 12.4176 3.36236Z'
fill='#8F8F8F'
/>
<path
d='M12.4762 15.905C12.6889 16.1177 12.6675 16.4698 12.4176 16.6372C11.149 17.4866 9.62342 17.982 7.9821 17.982C6.34078 17.982 4.81516 17.4866 3.54661 16.6372C3.29666 16.4698 3.27531 16.1177 3.48801 15.905L5.30938 14.0836C5.4745 13.9185 5.73066 13.8924 5.93851 13.9988C6.55149 14.3127 7.24612 14.4898 7.9821 14.4898C8.71808 14.4898 9.4127 14.3127 10.0257 13.9988C10.2335 13.8924 10.4897 13.9185 10.6548 14.0836L12.4762 15.905Z'
fill='#BBBBBB'
/>
</g>
<defs>
<filter
id='filter0_i_438_501'
x='0'
y='1.86758'
width='12.6217'
height='16.1144'
filterUnits='userSpaceOnUse'
colorInterpolationFilters='sRGB'
>
<feFlood
floodOpacity='0'
result='BackgroundImageFix'
/>
<feBlend
mode='normal'
in='SourceGraphic'
in2='BackgroundImageFix'
result='shape'
/>
<feColorMatrix
in='SourceAlpha'
type='matrix'
values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0'
result='hardAlpha'
/>
<feOffset dy='-0.15' />
<feGaussianBlur stdDeviation='0.15' />
<feComposite
in2='hardAlpha'
operator='arithmetic'
k2='-1'
k3='1'
/>
<feColorMatrix
type='matrix'
values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0'
/>
<feBlend
mode='normal'
in2='shape'
result='effect1_innerShadow_438_501'
/>
</filter>
</defs>
</svg>
);
}
22 changes: 22 additions & 0 deletions packages/clerk-js/src/ui/components/KeylessPrompt/KeySlashIcon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// Custom icon specifically used for the Keyless toast. Not intended to be used anywhere else

export function KeySlashIcon() {
return (
<svg
width='1rem'
height='1rem'
viewBox='0 0 16 16'
fill='none'
aria-hidden
xmlns='http://www.w3.org/2000/svg'
>
<path
d='M2.75 2.75L13.25 13.25M7.02665 6.38227C7.00046 6.21924 6.98684 6.052 6.98684 5.88158C6.98684 4.15206 8.3889 2.75 10.1184 2.75C11.8479 2.75 13.25 4.15206 13.25 5.88158C13.25 7.6111 11.8479 9.01316 10.1184 9.01316C9.89357 9.01316 9.67425 8.98946 9.46283 8.94442M4.39638 8.74013L3.21279 9.92371C2.91768 10.1977 2.75 10.5823 2.75 10.985V13.25H5.25V11.25H6.55172L7.02665 10.7751M10 5.97998V5.99998'
stroke='#F0D653'
strokeWidth='1.5'
strokeLinecap='round'
strokeLinejoin='round'
/>
</svg>
);
}
Loading
Loading