From 8877db0c788fd668988bd2c87e8545c7f95fc2ed Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 9 Aug 2022 17:53:00 +0000 Subject: [PATCH] Version Packages --- .changeset/fast-mirrors-talk.md | 5 - .changeset/gorgeous-rocks-carry.md | 82 ----------------- .changeset/spicy-rules-occur.md | 5 - .changeset/three-owls-smash.md | 5 - .changeset/weak-pillows-dream.md | 6 -- docs/package.json | 2 +- examples/angular/package.json | 2 +- examples/next/package.json | 2 +- examples/vue/package.json | 2 +- .../angular/projects/ui-angular/CHANGELOG.md | 9 ++ .../angular/projects/ui-angular/package.json | 4 +- packages/e2e/package.json | 2 +- packages/react/CHANGELOG.md | 88 ++++++++++++++++++ packages/react/package.json | 4 +- packages/ui/CHANGELOG.md | 91 +++++++++++++++++++ packages/ui/package.json | 2 +- packages/vue/CHANGELOG.md | 9 ++ packages/vue/package.json | 4 +- 18 files changed, 209 insertions(+), 115 deletions(-) delete mode 100644 .changeset/fast-mirrors-talk.md delete mode 100644 .changeset/gorgeous-rocks-carry.md delete mode 100644 .changeset/spicy-rules-occur.md delete mode 100644 .changeset/three-owls-smash.md delete mode 100644 .changeset/weak-pillows-dream.md diff --git a/.changeset/fast-mirrors-talk.md b/.changeset/fast-mirrors-talk.md deleted file mode 100644 index 313f9eeb9e8..00000000000 --- a/.changeset/fast-mirrors-talk.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@aws-amplify/ui': patch ---- - -This change adds a base background color for the SearchField component's button. diff --git a/.changeset/gorgeous-rocks-carry.md b/.changeset/gorgeous-rocks-carry.md deleted file mode 100644 index a0f6cdeb793..00000000000 --- a/.changeset/gorgeous-rocks-carry.md +++ /dev/null @@ -1,82 +0,0 @@ ---- -"@aws-amplify/ui-react": minor -"@aws-amplify/ui": minor ---- - -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 ( - - - - - - - - ); -}; -``` diff --git a/.changeset/spicy-rules-occur.md b/.changeset/spicy-rules-occur.md deleted file mode 100644 index d113394ed1a..00000000000 --- a/.changeset/spicy-rules-occur.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@aws-amplify/ui": patch ---- - -fix: add missing token for default font size for SwitchField diff --git a/.changeset/three-owls-smash.md b/.changeset/three-owls-smash.md deleted file mode 100644 index 79185344cbf..00000000000 --- a/.changeset/three-owls-smash.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@aws-amplify/ui": patch ---- - -fix(ui): Apply styling to disabled SelectField options in Firefox diff --git a/.changeset/weak-pillows-dream.md b/.changeset/weak-pillows-dream.md deleted file mode 100644 index 6b8d353ed15..00000000000 --- a/.changeset/weak-pillows-dream.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@aws-amplify/ui-angular': patch -'@aws-amplify/ui-vue': patch ---- - -Hide decorative alert icons from screen readers. diff --git a/docs/package.json b/docs/package.json index a002b7724b6..12f5eca73e2 100644 --- a/docs/package.json +++ b/docs/package.json @@ -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", diff --git a/examples/angular/package.json b/examples/angular/package.json index 2976f4358ec..3110f86afe7 100644 --- a/examples/angular/package.json +++ b/examples/angular/package.json @@ -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" diff --git a/examples/next/package.json b/examples/next/package.json index 8e102b919e4..11e3801cef8 100644 --- a/examples/next/package.json +++ b/examples/next/package.json @@ -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", diff --git a/examples/vue/package.json b/examples/vue/package.json index 2654fb60aaf..b073363d3ac 100644 --- a/examples/vue/package.json +++ b/examples/vue/package.json @@ -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" diff --git a/packages/angular/projects/ui-angular/CHANGELOG.md b/packages/angular/projects/ui-angular/CHANGELOG.md index e76e5cd800b..839844ea779 100644 --- a/packages/angular/projects/ui-angular/CHANGELOG.md +++ b/packages/angular/projects/ui-angular/CHANGELOG.md @@ -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 diff --git a/packages/angular/projects/ui-angular/package.json b/packages/angular/projects/ui-angular/package.json index 0a5f1109d8c..f67d770ed4d 100644 --- a/packages/angular/projects/ui-angular/package.json +++ b/packages/angular/projects/ui-angular/package.json @@ -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", @@ -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", diff --git a/packages/e2e/package.json b/packages/e2e/package.json index b5c75b22cf4..a19962f5d54 100644 --- a/packages/e2e/package.json +++ b/packages/e2e/package.json @@ -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", diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md index ab7d8202815..e26e545fa27 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -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 ( + + + + + + + + ); + }; + ``` + +### 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 diff --git a/packages/react/package.json b/packages/react/package.json index ac0bce1b573..fa14b48d23b 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -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": { @@ -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", diff --git a/packages/ui/CHANGELOG.md b/packages/ui/CHANGELOG.md index 09cc72ee840..cfa103c7d78 100644 --- a/packages/ui/CHANGELOG.md +++ b/packages/ui/CHANGELOG.md @@ -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 ( + + + + + + + + ); + }; + ``` + +### 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 diff --git a/packages/ui/package.json b/packages/ui/package.json index f023ddef319..8547d66cf98 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/ui", - "version": "3.12.5", + "version": "3.13.0", "main": "dist/index.js", "module": "dist/esm/index.js", "exports": { diff --git a/packages/vue/CHANGELOG.md b/packages/vue/CHANGELOG.md index 29d9ce6baef..26d7432497b 100644 --- a/packages/vue/CHANGELOG.md +++ b/packages/vue/CHANGELOG.md @@ -1,5 +1,14 @@ # @aws-amplify/ui-vue +## 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 diff --git a/packages/vue/package.json b/packages/vue/package.json index 70d1e64a2ae..e16099cb65b 100644 --- a/packages/vue/package.json +++ b/packages/vue/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/ui-vue", - "version": "2.4.17", + "version": "2.4.18", "type": "module", "main": "dist/index.cjs", "module": "dist/index.js", @@ -34,7 +34,7 @@ "test:unit:watch": "jest --watch" }, "dependencies": { - "@aws-amplify/ui": "3.12.5", + "@aws-amplify/ui": "3.13.0", "@vue/tsconfig": "^0.1.3", "@vueuse/core": "7.5.5", "@xstate/vue": "0.8.1",