stack/packages/template/src/components
Zai Shi d6f3be5543
swithcer (#715)
<!--

Make sure you've read the CONTRIBUTING.md guidelines:
https://github.com/stack-auth/stack-auth/blob/dev/CONTRIBUTING.md

-->

<!-- ELLIPSIS_HIDDEN -->


----

> [!IMPORTANT]
> Enhance `SelectedTeamSwitcher` to support nullable teams and add
'personal' team icon in `TeamIcon`, with updated translations.
> 
>   - **Behavior**:
> - `SelectedTeamSwitcher` in `selected-team-switcher.tsx` now supports
nullable teams with `allowNull` prop and `nullLabel` for display.
> - `onChange` callback added to `SelectedTeamSwitcher` to handle team
changes.
> - `TeamIcon` in `team-icon.tsx` now supports a 'personal' team type,
displaying a default icon.
>   - **Translations**:
> - Added translation key for "Personal team" in
`quetzal-translations.ts`.
>   - **Misc**:
> - Updated `SelectedTeamSwitcherProps` type to handle nullable teams
and added `onChange` callback.
> - Minor refactoring in `selected-team-switcher.tsx` for better
handling of team selection logic.
> 
> <sup>This description was created by </sup>[<img alt="Ellipsis"
src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=stack-auth%2Fstack-auth&utm_source=github&utm_medium=referral)<sup>
for ddb61e962b. You can
[customize](https://app.ellipsis.dev/stack-auth/settings/summaries) this
summary. It will automatically update as commits are pushed.</sup>


<!-- ELLIPSIS_HIDDEN -->

---------

Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
2025-07-02 19:23:53 +02:00
..
elements Demo page now centers sign in component 2025-03-12 10:07:43 -07:00
message-cards Vanilla JS client library (#408) 2025-02-08 02:31:03 +01:00
api-key-dialogs.tsx New docs (#698) 2025-06-20 13:30:01 -07:00
api-key-table.tsx Api Keys (#590) 2025-04-04 13:03:10 -07:00
credential-sign-in.tsx React SDK (#462) 2025-02-27 01:55:45 +01:00
credential-sign-up.tsx Vanilla JS client library (#408) 2025-02-08 02:31:03 +01:00
link.tsx Add THIS_LINE_PLATFORM macro (#537) 2025-03-13 02:35:17 +01:00
magic-link-sign-in.tsx No more instanceof KnownError 2025-05-15 12:13:19 -07:00
oauth-button-group.tsx Hide Last Used (#547) 2025-03-15 02:36:04 +01:00
oauth-button.tsx Disable OAuth in iframe (#701) 2025-06-06 04:36:46 +02:00
passkey-button.tsx Vanilla JS client library (#408) 2025-02-08 02:31:03 +01:00
profile-image-editor.tsx Update packages, add bundle analyzer, add declarationMap (#665) 2025-05-16 17:07:44 -07:00
selected-team-switcher.tsx swithcer (#715) 2025-07-02 19:23:53 +02:00
team-icon.tsx swithcer (#715) 2025-07-02 19:23:53 +02:00
use-in-iframe.tsx Disable OAuth in iframe (#701) 2025-06-06 04:36:46 +02:00
user-button.tsx Fix user hooks 2025-06-22 19:32:52 -07:00