Skip to content

Commit

Permalink
Version Packages
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Aug 9, 2022
1 parent 1cfa1a0 commit 8877db0
Show file tree
Hide file tree
Showing 18 changed files with 209 additions and 115 deletions.
5 changes: 0 additions & 5 deletions .changeset/fast-mirrors-talk.md

This file was deleted.

82 changes: 0 additions & 82 deletions .changeset/gorgeous-rocks-carry.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/spicy-rules-occur.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/three-owls-smash.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/weak-pillows-dream.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.3.0",
"@aws-amplify/ui-react": "3.4.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.17",
"@aws-amplify/ui-angular": "^2.4.18",
"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.3.0",
"@aws-amplify/ui-react": "^3.4.0",
"next": "^11.1.3",
"next-global-css": "^1.1.1",
"react": "17",
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.17",
"@aws-amplify/ui-vue": "^2.4.18",
"aws-amplify": "latest",
"vue": "^3.0.5",
"vue-router": "4"
Expand Down
9 changes: 9 additions & 0 deletions packages/angular/projects/ui-angular/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @aws-amplify/ui-angular

## 2.4.18

### Patch Changes

- [#2419](https://github.com/aws-amplify/amplify-ui/pull/2419) [`8def8dc6a`](https://github.com/aws-amplify/amplify-ui/commit/8def8dc6ab8cf2448f110b0a9d4309b43a561541) Thanks [@ioanabrooks](https://github.com/ioanabrooks)! - Hide decorative alert icons from screen readers.

- Updated dependencies [[`1cfa1a054`](https://github.com/aws-amplify/amplify-ui/commit/1cfa1a054451a75738f4011c4200c34208285b5b), [`eae79ae15`](https://github.com/aws-amplify/amplify-ui/commit/eae79ae1529b9a920d704cb12e92addb352d0c40), [`e25bc4269`](https://github.com/aws-amplify/amplify-ui/commit/e25bc42693cc4fa1cdcf7ad2fe7034ff44fbb18e), [`1f358d8fa`](https://github.com/aws-amplify/amplify-ui/commit/1f358d8fa18367020d0c41b74dcce1ba73974376)]:
- @aws-amplify/ui@3.13.0

## 2.4.17

### 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.17",
"version": "2.4.18",
"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": "3.12.5",
"@aws-amplify/ui": "3.13.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 @@ -19,7 +19,7 @@
"stepDefinitions": "features"
},
"devDependencies": {
"@aws-amplify/ui": "^3.12.5",
"@aws-amplify/ui": "^3.13.0",
"aws-crt": "^1.10.6",
"@testing-library/cypress": "^7.0.6",
"@types/cypress-cucumber-preprocessor": "^4.0.0",
Expand Down
88 changes: 88 additions & 0 deletions packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,93 @@
# @aws-amplify/ui-react

## 3.4.0

### Minor Changes

- [#2300](https://github.com/aws-amplify/amplify-ui/pull/2300) [`eae79ae15`](https://github.com/aws-amplify/amplify-ui/commit/eae79ae1529b9a920d704cb12e92addb352d0c40) Thanks [@zchenwei](https://github.com/zchenwei)! - feat: adding indeterminate state checkbox

Users can create an indeterminate `CheckboxField` by setting `isIndeterminate` prop to `true`.

**_Example_**

```jsx
import * as React from 'react';

import { CheckboxField, Flex, View } from '@aws-amplify/ui-react';

export const CheckboxFieldIndeterminateExample = () => {
const [checkedItems, setCheckedItems] = React.useState([false, false]);
const checkedItemsRef = React.useRef(null);
const allChecked = checkedItems.every(Boolean);
const isIndeterminate = checkedItems.some(Boolean) && !allChecked;

if (isIndeterminate) {
checkedItemsRef.current = [...checkedItems];
}
const handleAllPetsChange = () => {
if (isIndeterminate) {
setCheckedItems([true, true]);
} else if (allChecked) {
setCheckedItems([false, false]);
} else if (checkedItemsRef.current) {
setCheckedItems(checkedItemsRef.current);
} else {
setCheckedItems([true, true]);
}
};

const handleCatChange = (e) => {
const newCheckedItems = [e.target.checked, checkedItems[1]];
if (!newCheckedItems.some(Boolean) || newCheckedItems.every(Boolean)) {
checkedItemsRef.current = null;
}
setCheckedItems(newCheckedItems);
};

const handleDogChange = (e) => {
const newCheckedItems = [checkedItems[0], e.target.checked];
if (!newCheckedItems.some(Boolean) || newCheckedItems.every(Boolean)) {
checkedItemsRef.current = null;
}
setCheckedItems(newCheckedItems);
};

return (
<Flex direction="column" gap="0">
<CheckboxField
name="all-pets"
label="All Pets"
value="allPets"
checked={allChecked}
isIndeterminate={isIndeterminate}
onChange={handleAllPetsChange}
/>
<View paddingLeft="25px">
<CheckboxField
name="cat"
label="Cat"
value="cat"
checked={checkedItems[0]}
onChange={handleCatChange}
/>
<CheckboxField
name="dog"
label="Dog"
value="dog"
checked={checkedItems[1]}
onChange={handleDogChange}
/>
</View>
</Flex>
);
};
```

### Patch Changes

- Updated dependencies [[`1cfa1a054`](https://github.com/aws-amplify/amplify-ui/commit/1cfa1a054451a75738f4011c4200c34208285b5b), [`eae79ae15`](https://github.com/aws-amplify/amplify-ui/commit/eae79ae1529b9a920d704cb12e92addb352d0c40), [`e25bc4269`](https://github.com/aws-amplify/amplify-ui/commit/e25bc42693cc4fa1cdcf7ad2fe7034ff44fbb18e), [`1f358d8fa`](https://github.com/aws-amplify/amplify-ui/commit/1f358d8fa18367020d0c41b74dcce1ba73974376)]:
- @aws-amplify/ui@3.13.0

## 3.3.0

### Minor Changes
Expand Down
4 changes: 2 additions & 2 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.3.0",
"version": "3.4.0",
"main": "dist/index.js",
"module": "dist/esm/index.js",
"exports": {
Expand Down Expand Up @@ -55,7 +55,7 @@
"size": "yarn run size-limit"
},
"dependencies": {
"@aws-amplify/ui": "3.12.5",
"@aws-amplify/ui": "3.13.0",
"@aws-amplify/ui-react-v1": "npm:@aws-amplify/ui-react@1.2.9",
"@radix-ui/react-accordion": "0.1.6",
"@radix-ui/react-dropdown-menu": "0.1.6",
Expand Down
91 changes: 91 additions & 0 deletions packages/ui/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,96 @@
# @aws-amplify/ui

## 3.13.0

### Minor Changes

- [#2300](https://github.com/aws-amplify/amplify-ui/pull/2300) [`eae79ae15`](https://github.com/aws-amplify/amplify-ui/commit/eae79ae1529b9a920d704cb12e92addb352d0c40) Thanks [@zchenwei](https://github.com/zchenwei)! - feat: adding indeterminate state checkbox

Users can create an indeterminate `CheckboxField` by setting `isIndeterminate` prop to `true`.

**_Example_**

```jsx
import * as React from 'react';

import { CheckboxField, Flex, View } from '@aws-amplify/ui-react';

export const CheckboxFieldIndeterminateExample = () => {
const [checkedItems, setCheckedItems] = React.useState([false, false]);
const checkedItemsRef = React.useRef(null);
const allChecked = checkedItems.every(Boolean);
const isIndeterminate = checkedItems.some(Boolean) && !allChecked;

if (isIndeterminate) {
checkedItemsRef.current = [...checkedItems];
}
const handleAllPetsChange = () => {
if (isIndeterminate) {
setCheckedItems([true, true]);
} else if (allChecked) {
setCheckedItems([false, false]);
} else if (checkedItemsRef.current) {
setCheckedItems(checkedItemsRef.current);
} else {
setCheckedItems([true, true]);
}
};

const handleCatChange = (e) => {
const newCheckedItems = [e.target.checked, checkedItems[1]];
if (!newCheckedItems.some(Boolean) || newCheckedItems.every(Boolean)) {
checkedItemsRef.current = null;
}
setCheckedItems(newCheckedItems);
};

const handleDogChange = (e) => {
const newCheckedItems = [checkedItems[0], e.target.checked];
if (!newCheckedItems.some(Boolean) || newCheckedItems.every(Boolean)) {
checkedItemsRef.current = null;
}
setCheckedItems(newCheckedItems);
};

return (
<Flex direction="column" gap="0">
<CheckboxField
name="all-pets"
label="All Pets"
value="allPets"
checked={allChecked}
isIndeterminate={isIndeterminate}
onChange={handleAllPetsChange}
/>
<View paddingLeft="25px">
<CheckboxField
name="cat"
label="Cat"
value="cat"
checked={checkedItems[0]}
onChange={handleCatChange}
/>
<CheckboxField
name="dog"
label="Dog"
value="dog"
checked={checkedItems[1]}
onChange={handleDogChange}
/>
</View>
</Flex>
);
};
```

### Patch Changes

- [#2431](https://github.com/aws-amplify/amplify-ui/pull/2431) [`1cfa1a054`](https://github.com/aws-amplify/amplify-ui/commit/1cfa1a054451a75738f4011c4200c34208285b5b) Thanks [@ioanabrooks](https://github.com/ioanabrooks)! - This change adds a base background color for the SearchField component's button.

* [#2398](https://github.com/aws-amplify/amplify-ui/pull/2398) [`e25bc4269`](https://github.com/aws-amplify/amplify-ui/commit/e25bc42693cc4fa1cdcf7ad2fe7034ff44fbb18e) Thanks [@zchenwei](https://github.com/zchenwei)! - fix: add missing token for default font size for SwitchField

- [#2386](https://github.com/aws-amplify/amplify-ui/pull/2386) [`1f358d8fa`](https://github.com/aws-amplify/amplify-ui/commit/1f358d8fa18367020d0c41b74dcce1ba73974376) Thanks [@joebuono](https://github.com/joebuono)! - fix(ui): Apply styling to disabled SelectField options in Firefox

## 3.12.5

### Patch Changes
Expand Down
Loading

0 comments on commit 8877db0

Please sign in to comment.