Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
83 changes: 0 additions & 83 deletions .changeset/giant-bugs-develop.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/hungry-lizards-melt.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"test": "$_ run build"
},
"dependencies": {
"@aws-amplify/ui-react": "3.5.11",
"@aws-amplify/ui-react": "3.6.0",
"@cucumber/gherkin": "^19.0.3",
"@cucumber/messages": "^16.0.1",
"@docsearch/react": "3",
Expand Down
2 changes: 1 addition & 1 deletion examples/angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@angular/platform-browser": "~11.2.14",
"@angular/platform-browser-dynamic": "~11.2.14",
"@angular/router": "~11.2.14",
"@aws-amplify/ui-angular": "^2.4.25",
"@aws-amplify/ui-angular": "^2.4.26",
"rxjs": "~6.6.0",
"tslib": "^2.0.0",
"zone.js": "~0.11.3"
Expand Down
2 changes: 1 addition & 1 deletion examples/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"lint": "next lint"
},
"dependencies": {
"@aws-amplify/ui-react": "^3.5.11",
"@aws-amplify/ui-react": "^3.6.0",
"aws-amplify": "latest",
"next": "^11.1.3",
"next-global-css": "^1.1.1",
Expand Down
2 changes: 1 addition & 1 deletion examples/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"start": "vite preview --port 3000"
},
"dependencies": {
"@aws-amplify/ui-vue": "^2.4.25",
"@aws-amplify/ui-vue": "^2.4.26",
"aws-amplify": "latest",
"vue": "^3.0.5",
"vue-router": "4"
Expand Down
7 changes: 7 additions & 0 deletions packages/angular/projects/ui-angular/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @aws-amplify/ui-angular

## 2.4.26

### Patch Changes

- Updated dependencies [[`702a35738`](https://github.com/aws-amplify/amplify-ui/commit/702a3573850639c492c51ce10e27e194d720d5ac), [`0935da51a`](https://github.com/aws-amplify/amplify-ui/commit/0935da51ac04334e458339da2bf0ef72f248cf26)]:
- @aws-amplify/[email protected]

## 2.4.25

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/angular/projects/ui-angular/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@aws-amplify/ui-angular",
"version": "2.4.25",
"version": "2.4.26",
"scripts": {
"build": "yarn --cwd ../../ build",
"dev": "yarn --cwd ../../ dev",
Expand All @@ -19,7 +19,7 @@
},
"dependencies": {
"@aws-amplify/ui-components": "^1.7.0",
"@aws-amplify/ui": "4.0.1",
"@aws-amplify/ui": "4.1.0",
"@stencil/core": "2.8.0",
"nanoid": "3.1.31",
"qrcode": "1.5.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
]
},
"devDependencies": {
"@aws-amplify/ui": "^4.0.1",
"@aws-amplify/ui": "^4.1.0",
"@badeball/cypress-cucumber-preprocessor": "^12.1.0",
"@bahmutov/cypress-esbuild-preprocessor": "^2.1.3",
"@testing-library/cypress": "^8.0.3",
Expand Down
7 changes: 7 additions & 0 deletions packages/react-core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @aws-amplify/ui-react-core

## 1.0.5

### Patch Changes

- Updated dependencies [[`702a35738`](https://github.com/aws-amplify/amplify-ui/commit/702a3573850639c492c51ce10e27e194d720d5ac), [`0935da51a`](https://github.com/aws-amplify/amplify-ui/commit/0935da51ac04334e458339da2bf0ef72f248cf26)]:
- @aws-amplify/[email protected]

## 1.0.4

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/react-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@aws-amplify/ui-react-core",
"version": "1.0.4",
"version": "1.0.5",
"main": "dist/index.js",
"module": "dist/esm/index.js",
"exports": {
Expand Down Expand Up @@ -28,7 +28,7 @@
"test:watch": "yarn test --watch"
},
"dependencies": {
"@aws-amplify/ui": "4.0.1",
"@aws-amplify/ui": "4.1.0",
"@xstate/react": "3.0.1",
"xstate": "^4.33.6"
},
Expand Down
84 changes: 84 additions & 0 deletions packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,89 @@
# @aws-amplify/ui-react

## 3.6.0

### Minor Changes

- [#2708](https://github.com/aws-amplify/amplify-ui/pull/2708) [`702a35738`](https://github.com/aws-amplify/amplify-ui/commit/702a3573850639c492c51ce10e27e194d720d5ac) Thanks [@zchenwei](https://github.com/zchenwei)! - feat: add Autocomplete primitive

**Example**

```jsx
// Uncontrolled component
import { Autocomplete } from '@aws-amplify/ui-react';
import * as React from 'react';

const options = [
{ id: 'apple', label: 'apple' },
{ id: 'banana', label: 'banana' },
{ id: 'cherry', label: 'cherry' },
{ id: 'grape', label: 'grape' },
{ id: 'kiwis', label: 'kiwis' },
{ id: 'lemon', label: 'lemon' },
{ id: 'mango', label: 'mango' },
{ id: 'orange', label: 'orange' },
{ id: 'strawberry', label: 'strawberry' },
];

export const AutocompleteUncontrolledExample = () => {
return <Autocomplete label="Uncontrolled autocomplete" options={options} />;
};
```

```jsx
// Controlled component
import { Autocomplete } from '@aws-amplify/ui-react';
import * as React from 'react';

const options = [
{ id: 'apple', label: 'apple' },
{ id: 'banana', label: 'banana' },
{ id: 'cherry', label: 'cherry' },
{ id: 'grape', label: 'grape' },
{ id: 'kiwis', label: 'kiwis' },
{ id: 'lemon', label: 'lemon' },
{ id: 'mango', label: 'mango' },
{ id: 'orange', label: 'orange' },
{ id: 'strawberry', label: 'strawberry' },
];

export const AutocompleteControlledExample = () => {
const [value, setValue] = React.useState('');

const onChange = (event) => {
setValue(event.target.value);
};

// Set up onSelect
const onSelect = (option) => {
const { label } = option;
setValue(label);
};

// Set up onClear
const onClear = () => {
setValue('');
};

return (
<Autocomplete
label="Controlled autocomplete"
options={options}
value={value}
onChange={onChange}
onClear={onClear}
onSelect={onSelect}
/>
);
};
```

### Patch Changes

- Updated dependencies [[`702a35738`](https://github.com/aws-amplify/amplify-ui/commit/702a3573850639c492c51ce10e27e194d720d5ac), [`0935da51a`](https://github.com/aws-amplify/amplify-ui/commit/0935da51ac04334e458339da2bf0ef72f248cf26)]:
- @aws-amplify/[email protected]
- @aws-amplify/[email protected]

## 3.5.11

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@aws-amplify/ui-react",
"version": "3.5.11",
"version": "3.6.0",
"main": "dist/index.js",
"module": "dist/esm/index.js",
"exports": {
Expand Down Expand Up @@ -55,8 +55,8 @@
"size": "yarn run size-limit"
},
"dependencies": {
"@aws-amplify/ui": "4.0.1",
"@aws-amplify/ui-react-core": "1.0.4",
"@aws-amplify/ui": "4.1.0",
"@aws-amplify/ui-react-core": "1.0.5",
"@aws-amplify/ui-react-v1": "npm:@aws-amplify/[email protected]",
"@radix-ui/react-accordion": "0.1.6",
"@radix-ui/react-dropdown-menu": "0.1.6",
Expand Down
82 changes: 82 additions & 0 deletions packages/ui/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,87 @@
# @aws-amplify/ui

## 4.1.0

### Minor Changes

- [#2708](https://github.com/aws-amplify/amplify-ui/pull/2708) [`702a35738`](https://github.com/aws-amplify/amplify-ui/commit/702a3573850639c492c51ce10e27e194d720d5ac) Thanks [@zchenwei](https://github.com/zchenwei)! - feat: add Autocomplete primitive

**Example**

```jsx
// Uncontrolled component
import { Autocomplete } from '@aws-amplify/ui-react';
import * as React from 'react';

const options = [
{ id: 'apple', label: 'apple' },
{ id: 'banana', label: 'banana' },
{ id: 'cherry', label: 'cherry' },
{ id: 'grape', label: 'grape' },
{ id: 'kiwis', label: 'kiwis' },
{ id: 'lemon', label: 'lemon' },
{ id: 'mango', label: 'mango' },
{ id: 'orange', label: 'orange' },
{ id: 'strawberry', label: 'strawberry' },
];

export const AutocompleteUncontrolledExample = () => {
return <Autocomplete label="Uncontrolled autocomplete" options={options} />;
};
```

```jsx
// Controlled component
import { Autocomplete } from '@aws-amplify/ui-react';
import * as React from 'react';

const options = [
{ id: 'apple', label: 'apple' },
{ id: 'banana', label: 'banana' },
{ id: 'cherry', label: 'cherry' },
{ id: 'grape', label: 'grape' },
{ id: 'kiwis', label: 'kiwis' },
{ id: 'lemon', label: 'lemon' },
{ id: 'mango', label: 'mango' },
{ id: 'orange', label: 'orange' },
{ id: 'strawberry', label: 'strawberry' },
];

export const AutocompleteControlledExample = () => {
const [value, setValue] = React.useState('');

const onChange = (event) => {
setValue(event.target.value);
};

// Set up onSelect
const onSelect = (option) => {
const { label } = option;
setValue(label);
};

// Set up onClear
const onClear = () => {
setValue('');
};

return (
<Autocomplete
label="Controlled autocomplete"
options={options}
value={value}
onChange={onChange}
onClear={onClear}
onSelect={onSelect}
/>
);
};
```

### Patch Changes

- [#2881](https://github.com/aws-amplify/amplify-ui/pull/2881) [`0935da51a`](https://github.com/aws-amplify/amplify-ui/commit/0935da51ac04334e458339da2bf0ef72f248cf26) Thanks [@francisGolden](https://github.com/francisGolden)! - Fix italian grammar in translation and improve accuracy

## 4.0.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@aws-amplify/ui",
"version": "4.0.1",
"version": "4.1.0",
"main": "dist/index.js",
"module": "dist/esm/index.js",
"exports": {
Expand Down
Loading