-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d71e656
commit 83e407f
Showing
22 changed files
with
250 additions
and
147 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# @aws-amplify/ui-angular | ||
|
||
## 2.0.1 | ||
|
||
### Patch Changes | ||
|
||
- [#610](https:/aws-amplify/amplify-ui/pull/610) [`1fc955c4e`](https:/aws-amplify/amplify-ui/commit/1fc955c4e32a2868fa85078befa2f7e2fe95b5a1) Thanks [@wlee221](https:/wlee221)! - Add `sign-up-form-field` slot and component | ||
|
||
- [#627](https:/aws-amplify/amplify-ui/pull/627) [`bd3e09a09`](https:/aws-amplify/amplify-ui/commit/bd3e09a09988af5fa803fa97a25956ea7e9144f7) Thanks [@wlee221](https:/wlee221)! - This implements `AuthenticatorService` that can be used internally and externally to access common Authenticator context and helpers. | ||
|
||
_Usage_: | ||
|
||
_app.component.ts_ | ||
|
||
```ts | ||
export class AppComponent { | ||
constructor(public authenticator: AuthenticatorService) {} | ||
} | ||
``` | ||
|
||
_app.component.html_ | ||
|
||
```html | ||
<!-- example of "reset password" button --> | ||
<button (click)="authenticator.toResetPassword()">Reset password</button> | ||
<!-- example of "sign up" submit button --> | ||
<button (click)="authenticator.submitForm()">Sign Up</button> | ||
<!-- disabling the submit button if submission is in progress --> | ||
<button | ||
(click)="authenticator.submitForm()" | ||
[disabled]="authenticator.isPending" | ||
> | ||
Sign Up | ||
</button> | ||
``` | ||
|
||
- [#628](https://github.com/aws-amplify/amplify-ui/pull/628) [`ef1e0f000`](https:/aws-amplify/amplify-ui/commit/ef1e0f000346ee553689251e048b6c4b052f6258) Thanks [@wlee221](https:/wlee221)! - Add and expose amplify-checkbox | ||
|
||
- [#628](https://github.com/aws-amplify/amplify-ui/pull/628) [`ef1e0f000`](https:/aws-amplify/amplify-ui/commit/ef1e0f000346ee553689251e048b6c4b052f6258) Thanks [@wlee221](https:/wlee221)! - Add `services` prop and custom-sign-up example. See documentation for usage notes. | ||
|
||
- Updated dependencies [[`bba3242af`](https://github.com/aws-amplify/amplify-ui/commit/bba3242afba9a54e12b730edbfa1006701a610fc), [`b46597cef`](https:/aws-amplify/amplify-ui/commit/b46597cefb013bfed5345d3ecdfd96649045caca), [`bd3e09a09`](https:/aws-amplify/amplify-ui/commit/bd3e09a09988af5fa803fa97a25956ea7e9144f7)]: | ||
- @aws-amplify/ui@3.0.1 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
# @aws-amplify/ui-react | ||
|
||
## 2.0.1 | ||
|
||
### Patch Changes | ||
|
||
- [#552](https:/aws-amplify/amplify-ui/pull/552) [`bba3242af`](https:/aws-amplify/amplify-ui/commit/bba3242afba9a54e12b730edbfa1006701a610fc) Thanks [@ericclemmons](https:/ericclemmons)! - `@aws-amplify/ui-react` supports validation & re-use & customization of `Authenticator.SignUp.FormFields` via `components` & `services`: | ||
|
||
```js | ||
<Authenticator | ||
components={{ | ||
SignUp: { | ||
FormFields() { | ||
const { validationErrors } = useAuthenticator(); | ||
return ( | ||
<> | ||
<TextField | ||
label="Preferred Username" | ||
labelHidden={true} | ||
name="preferred_username" | ||
placeholder="Preferred Username" | ||
/> | ||
<Authenticator.SignUp.FormFields /> | ||
<CheckboxField | ||
errorMessage={validationErrors.acknowledgement} | ||
hasError={!!validationErrors.acknowledgement} | ||
name="acknowledgement" | ||
value="yes" | ||
> | ||
I agree with the Terms & Conditions | ||
</CheckboxField> | ||
</> | ||
); | ||
}, | ||
}, | ||
}} | ||
services={{ | ||
async validateCustomSignUp(formData) { | ||
if (!formData.acknowledgement) { | ||
return { | ||
acknowledgement: 'You must agree to the Terms & Conditions', | ||
}; | ||
} | ||
}, | ||
}} | ||
/> | ||
``` | ||
|
||
- [#617](https://github.com/aws-amplify/amplify-ui/pull/617) [`77fa42da5`](https:/aws-amplify/amplify-ui/commit/77fa42da560f617a4f89a828e93aeb96a12e280f) Thanks [@hvergara](https:/hvergara)! - Fix primitives catalog generator | ||
|
||
- [#618](https://github.com/aws-amplify/amplify-ui/pull/618) [`943d4b661`](https:/aws-amplify/amplify-ui/commit/943d4b6614e4cac0131d52421051d210b1e2db68) Thanks [@hvergara](https:/hvergara)! - Make style prop types more flexible | ||
|
||
- [#638](https://github.com/aws-amplify/amplify-ui/pull/638) [`d71e65609`](https:/aws-amplify/amplify-ui/commit/d71e656098bde4ee43e294a05503dc9aadefeec1) Thanks [@ericclemmons](https:/ericclemmons)! - Fix getOverrideProps to return all, not just 2 | ||
|
||
- [#582](https://github.com/aws-amplify/amplify-ui/pull/582) [`3143deff1`](https:/aws-amplify/amplify-ui/commit/3143deff199a9aab367f253020205d3e2f25fc5b) Thanks [@ericclemmons](https:/ericclemmons)! - AmplifyProvider accepts a partial list of primitives as `components`: | ||
|
||
```js | ||
const App = () => { | ||
const { | ||
components: { Heading }, | ||
} = useAmplify(); | ||
return <Heading>Howdy</Heading>; | ||
}; | ||
<AmplifyProvider | ||
components={{ | ||
Heading({ children }) { | ||
return <h1>{children}</h1>; | ||
}, | ||
}} | ||
> | ||
<App /> | ||
</AmplifyProvider>; | ||
``` | ||
|
||
- Updated dependencies [[`bba3242af`](https://github.com/aws-amplify/amplify-ui/commit/bba3242afba9a54e12b730edbfa1006701a610fc), [`b46597cef`](https:/aws-amplify/amplify-ui/commit/b46597cefb013bfed5345d3ecdfd96649045caca), [`bd3e09a09`](https:/aws-amplify/amplify-ui/commit/bd3e09a09988af5fa803fa97a25956ea7e9144f7)]: | ||
- @aws-amplify/ui@3.0.1 |
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,6 @@ | ||
{ | ||
"name": "@aws-amplify/ui-react", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"main": "dist/index.js", | ||
"module": "dist/esm/index.js", | ||
"exports": { | ||
|
@@ -36,7 +36,7 @@ | |
"test:unit:watch": "jest --watch" | ||
}, | ||
"dependencies": { | ||
"@aws-amplify/ui": "3.0.0", | ||
"@aws-amplify/ui": "3.0.1", | ||
"@aws-amplify/ui-react-v1": "npm:@aws-amplify/[email protected]", | ||
"@radix-ui/react-id": "^0.1.0", | ||
"@radix-ui/react-tabs": "0.0.16", | ||
|
Oops, something went wrong.