From 3145e44f677fe4e77da5157b6a6bd38a2cc4396b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 16 Nov 2022 12:40:05 +0000 Subject: [PATCH 01/22] Bump loader-utils from 1.4.0 to 1.4.2 Bumps [loader-utils](https://github.com/webpack/loader-utils) from 1.4.0 to 1.4.2. - [Release notes](https://github.com/webpack/loader-utils/releases) - [Changelog](https://github.com/webpack/loader-utils/blob/v1.4.2/CHANGELOG.md) - [Commits](https://github.com/webpack/loader-utils/compare/v1.4.0...v1.4.2) --- updated-dependencies: - dependency-name: loader-utils dependency-type: indirect ... Signed-off-by: dependabot[bot] --- yarn.lock | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/yarn.lock b/yarn.lock index fccf4d04..5175c235 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8012,9 +8012,9 @@ loader-utils@2.0.0, loader-utils@^2.0.0: json5 "^2.1.2" loader-utils@^1.2.3, loader-utils@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-1.4.0.tgz#c579b5e34cb34b1a74edc6c1fb36bfa371d5a613" - integrity sha512-qH0WSMBtn/oHuwjy/NucEgbx5dbxxnxup9s4PVXJUDHZBQY+s0NWA9rJf53RBnQZxfch7euUui7hpoAPvALZdA== + version "1.4.2" + resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-1.4.2.tgz#29a957f3a63973883eb684f10ffd3d151fec01a3" + integrity sha512-I5d00Pd/jwMD2QCduo657+YM/6L3KZu++pmX9VFncxaxvHcru9jx1lBaFft+r4Mt2jK0Yhp41XlRAihzPxHNCg== dependencies: big.js "^5.2.2" emojis-list "^3.0.0" @@ -8398,11 +8398,16 @@ minimatch@3.0.4, minimatch@^3.0.2, minimatch@^3.0.4: dependencies: brace-expansion "^1.1.7" -minimist@^1.1.1, minimist@^1.2.0, minimist@^1.2.5: +minimist@^1.1.1, minimist@^1.2.5: version "1.2.6" resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.6.tgz#8637a5b759ea0d6e98702cfb3a9283323c93af44" integrity sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q== +minimist@^1.2.0: + version "1.2.7" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.7.tgz#daa1c4d91f507390437c6a8bc01078e7000c4d18" + integrity sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g== + minipass-collect@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/minipass-collect/-/minipass-collect-1.0.2.tgz#22b813bf745dc6edba2576b940022ad6edc8c617" From a86990f7392225f28e6fbcb1cc4d7565fc63941c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 5 Dec 2022 05:06:09 +0000 Subject: [PATCH 02/22] Bump decode-uri-component from 0.2.0 to 0.2.2 Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2. - [Release notes](https://github.com/SamVerschueren/decode-uri-component/releases) - [Commits](https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.0...v0.2.2) --- updated-dependencies: - dependency-name: decode-uri-component dependency-type: indirect ... Signed-off-by: dependabot[bot] --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index fccf4d04..7c477df0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4697,9 +4697,9 @@ decimal.js@^10.2.1: integrity sha512-KaL7+6Fw6i5A2XSnsbhm/6B+NuEA7TZ4vqxnd5tXz9sbKtrN9Srj8ab4vKVdK8YAqZO9P1kg45Y6YLoduPf+kw== decode-uri-component@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.0.tgz#eb3913333458775cb84cd1a1fae062106bb87545" - integrity sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU= + version "0.2.2" + resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.2.tgz#e69dbe25d37941171dd540e024c444cd5188e1e9" + integrity sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ== dedent@^0.7.0: version "0.7.0" From 04cb3489272b54a7bca24b3658384729c21245b9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 6 Dec 2022 17:31:33 +0000 Subject: [PATCH 03/22] Bump qs from 6.5.2 to 6.5.3 Bumps [qs](https://github.com/ljharb/qs) from 6.5.2 to 6.5.3. - [Release notes](https://github.com/ljharb/qs/releases) - [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md) - [Commits](https://github.com/ljharb/qs/compare/v6.5.2...v6.5.3) --- updated-dependencies: - dependency-name: qs dependency-type: indirect ... Signed-off-by: dependabot[bot] --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index fccf4d04..24ad53f5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9628,9 +9628,9 @@ qs@^6.10.0, qs@^6.9.4: side-channel "^1.0.4" qs@~6.5.2: - version "6.5.2" - resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.2.tgz#cb3ae806e8740444584ef154ce8ee98d403f3e36" - integrity sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA== + version "6.5.3" + resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.3.tgz#3aeeffc91967ef6e35c0e488ef46fb296ab76aad" + integrity sha512-qxXIEh4pCGfHICj1mAJQ2/2XVZkjCDTcEgfoSQxc/fYivUZxTkk7L3bDBJSoNrEzXI17oUO5Dp07ktqE5KzczA== query-string@^6.13.8: version "6.14.1" From fd61e2bd3c46441f5eb832f9770f5e0cc5d59674 Mon Sep 17 00:00:00 2001 From: ClarkeCDC <36240254+ClarkeCDC@users.noreply.github.com> Date: Tue, 13 Dec 2022 16:45:13 +0000 Subject: [PATCH 04/22] Add tests for Label Component (#122) Co-authored-by: Christian Clarke --- src/components/label/__tests__/Label.test.tsx | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 src/components/label/__tests__/Label.test.tsx diff --git a/src/components/label/__tests__/Label.test.tsx b/src/components/label/__tests__/Label.test.tsx new file mode 100644 index 00000000..b01cd76e --- /dev/null +++ b/src/components/label/__tests__/Label.test.tsx @@ -0,0 +1,39 @@ +import React from 'react'; +import { shallow } from 'enzyme'; +import Label from '../Label'; + +describe('Label', () => { + it('Label', () => { + const element = shallow(); + expect(element.children().text()).toBe('Text') + /* + Need to do .html as BaseLabel is used in Label. + I don't think snapshots is the best way to do this + */ + expect(element.html()).toBe('') + element.unmount(); + }); + + it('Label with size m', () => { + const element = shallow(); + expect(element.children().text()).toBe('Text') + /* + Need to do .html as BaseLabel is used in Label. + I don't think snapshots is the best way to do this + */ + expect(element.html()).toBe('') + element.unmount(); + }); + + it('Label with heading prop', () => { + const element = shallow(); + expect(element.children().children().text()).toBe('Text') + /* + Need to do .html as BaseLabel is used in Label. + I don't think snapshots is the best way to do this + */ + expect(element.html()).toBe('

') + element.unmount(); + }); + +}); From 34f900f1dfb42f50e8b5a242431ca5e95b230f61 Mon Sep 17 00:00:00 2001 From: Filipe Boldo Date: Tue, 13 Dec 2022 16:46:31 +0000 Subject: [PATCH 05/22] =?UTF-8?q?=E2=9C=A8=20feat:=20add=20textareaRef=20p?= =?UTF-8?q?rop=20(#123)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/textarea/Textarea.tsx | 8 +++++--- src/components/textarea/__tests__/Textarea.test.tsx | 12 ++++++++++++ 2 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 src/components/textarea/__tests__/Textarea.test.tsx diff --git a/src/components/textarea/Textarea.tsx b/src/components/textarea/Textarea.tsx index d8b2d94e..45bbd148 100644 --- a/src/components/textarea/Textarea.tsx +++ b/src/components/textarea/Textarea.tsx @@ -1,15 +1,17 @@ -import React, { HTMLProps } from 'react'; +import React, { HTMLProps, MutableRefObject } from 'react'; import classNames from 'classnames'; import { FormElementProps } from '../../util/types/FormTypes'; import FormGroup from '../../util/FormGroup'; -type TextareaProps = HTMLProps & FormElementProps; +type TextareaProps = HTMLProps & + FormElementProps & { textareaRef?: MutableRefObject }; const Textarea: React.FC = (props) => ( inputType="textarea" {...props}> - {({ className, error, ...rest }) => ( + {({ className, error, textareaRef, ...rest }) => (