logto-io / logto

🧑‍🚀 The better identity infrastructure for developers and the open-source alternative to Auth0.
https://logto.io
Mozilla Public License 2.0
8.94k stars 446 forks source link

feat(elements): add logto-user-phone element #6732

Closed xiaoyijun closed 4 weeks ago

xiaoyijun commented 1 month ago

Summary

Add logto-user-phone element to render user's phone number.

Testing

Test locally & UTs

image

Checklist

github-actions[bot] commented 1 month ago

COMPARE TO master

Total Size Diff :chart_with_upwards_trend: +7.59 KB

Diff by File |Name|Diff| |---|---| |packages/elements/package.json|:chart_with_upwards_trend: +37 Bytes| |packages/elements/src/account/elements/logto-user-phone.test.ts|:chart_with_upwards_trend: +2.24 KB| |packages/elements/src/account/elements/logto-user-phone.ts|:chart_with_upwards_trend: +1.11 KB| |packages/elements/src/account/icons/phone.svg|:chart_with_upwards_trend: +1.56 KB| |packages/elements/src/account/index.ts|:chart_with_upwards_trend: +48 Bytes| |packages/elements/src/account/react.ts|:chart_with_upwards_trend: +159 Bytes| |packages/elements/src/account/utils/format.ts|:chart_with_upwards_trend: +840 Bytes| |pnpm-lock.yaml|:chart_with_upwards_trend: +1.62 KB|