-
Notifications
You must be signed in to change notification settings - Fork 299
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into DocsTabsScrollMargin
- Loading branch information
Showing
37 changed files
with
591 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
"@aws-amplify/ui-react": patch | ||
"@aws-amplify/ui": patch | ||
--- | ||
|
||
added new `isMultiple` and `selectSize` props for the `SelectField` component | ||
|
||
Example: | ||
|
||
``` | ||
<SelectField | ||
label="Fruit" | ||
descriptiveText="What's your favorite fruit?" | ||
selectSize={3} | ||
isMultiple={true} | ||
> | ||
<option value="apple">Apple</option> | ||
<option value="banana">Banana</option> | ||
<option value="orange">Orange</option> | ||
<option value="pineapple">Pineapple</option> | ||
<option value="kiwi">Kiwi</option> | ||
<option value="tangerine">Tangerine</option> | ||
</SelectField> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@aws-amplify/ui-react-liveness": patch | ||
--- | ||
|
||
chore(liveness): remove predictions super class |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@aws-amplify/ui": patch | ||
--- | ||
|
||
fix(ui): remove error border from disabled and quiet primitive fields |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@aws-amplify/ui-react-liveness": patch | ||
--- | ||
|
||
fix(liveness): add missing liveness dependencies |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@aws-amplify/ui-react": patch | ||
--- | ||
|
||
fix(ui-react): update ButtonGroup to respect child props and allow optional children |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@aws-amplify/ui-react": patch | ||
--- | ||
|
||
fix(ui-react): use guaranteed value for BreadCrumbs key |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
allow-licenses: | ||
- '0BSD' | ||
- 'Apache-2.0' | ||
- 'BlueOak-1.0.0' | ||
- 'BSL-1.0' | ||
- 'BSD-1-Clause' | ||
- 'BSD-2-Clause-FreeBSD' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
|
||
# Runs `npm` or `yarn` install with retries | ||
# Takes 2 parameters: the package manager and the dependencies to be installed | ||
# Usage: install_with_retries npm "$DEPENDENCIES" or install_with_retries yarn "$DEPENDENCIES" | ||
install_with_retries() { | ||
local retries=3 | ||
local attempt=1 | ||
while [ $attempt -le $retries ]; do | ||
echo "Attempt $attempt/$retries" | ||
echo "$1 install $2" | ||
"$1" install $2 | ||
if [ $? -eq 0 ]; then | ||
echo "$1 install successful." | ||
break | ||
fi | ||
attempt=$((attempt + 1)) | ||
if [ $attempt -le $retries ]; then | ||
echo "$1 install failed. Retrying in 5 seconds..." | ||
sleep 5 | ||
else | ||
echo "$1 install failed after $retries attempts." | ||
exit 1 | ||
fi | ||
done | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
.../src/pages/[platform]/components/selectfield/examples/SelectFieldMultipleStateExample.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { SelectField } from '@aws-amplify/ui-react'; | ||
|
||
export const SelectFieldMultipleStateExample = () => ( | ||
<SelectField | ||
label="Fruit" | ||
descriptiveText="What's your favorite fruit?" | ||
isMultiple={true} | ||
> | ||
<option value="apple">Apple</option> | ||
<option value="banana">Banana</option> | ||
<option value="orange">Orange</option> | ||
<option value="pineapple">Pineapple</option> | ||
<option value="kiwi">Kiwi</option> | ||
<option value="tangerine">Tangerine</option> | ||
</SelectField> | ||
); |
16 changes: 16 additions & 0 deletions
16
docs/src/pages/[platform]/components/selectfield/examples/SelectFieldSelectSizeExample.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { SelectField } from '@aws-amplify/ui-react'; | ||
|
||
export const SelectFieldSelectSizeExample = () => ( | ||
<SelectField | ||
label="Fruit" | ||
descriptiveText="What's your favorite fruit?" | ||
selectSize={3} | ||
> | ||
<option value="apple">Apple</option> | ||
<option value="banana">Banana</option> | ||
<option value="orange">Orange</option> | ||
<option value="pineapple">Pineapple</option> | ||
<option value="kiwi">Kiwi</option> | ||
<option value="tangerine">Tangerine</option> | ||
</SelectField> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.