Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Commit

Permalink
Merge branch 'main' into hook-onfieldchange
Browse files Browse the repository at this point in the history
  • Loading branch information
philibea authored Dec 22, 2022
2 parents c2e36c7 + 2be4b4e commit ff73138
Show file tree
Hide file tree
Showing 6 changed files with 76 additions and 57 deletions.
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
## [1.35.7](https://github.com/scaleway/scaleway-form/compare/v1.35.6...v1.35.7) (2022-12-21)


### :package: Chore

* **devdeps:** pin dependency @scaleway/tsconfig to 1.1.0 ([#590](https://github.com/scaleway/scaleway-form/issues/590)) ([7bbb7e9](https://github.com/scaleway/scaleway-form/commit/7bbb7e904ff14626f8c42b6ec995041bcd7ad8bd))
* **devdeps:** update actions/checkout action to v3.2.0 ([#593](https://github.com/scaleway/scaleway-form/issues/593)) ([3201f4f](https://github.com/scaleway/scaleway-form/commit/3201f4f96d60c96f0ace76f4329f3a0ac8cbddef))
* **devdeps:** update dependency @scaleway/eslint-config-react to v3.11.2 ([#588](https://github.com/scaleway/scaleway-form/issues/588)) ([4318688](https://github.com/scaleway/scaleway-form/commit/4318688c11dc236957b258b24b1a0fafbe2eca4f))


### :repeat: CI

* update eslint config with latest guidelines ([#592](https://github.com/scaleway/scaleway-form/issues/592)) ([06b4de2](https://github.com/scaleway/scaleway-form/commit/06b4de2403f64f6b43c965ed499891c742823139))


### :bug: Bug Fixes

* correct Alert variant on SubmitErrorAlert ([#594](https://github.com/scaleway/scaleway-form/issues/594)) ([d8ff359](https://github.com/scaleway/scaleway-form/commit/d8ff3594fa86a8a83157af5f2903f5ac902dc2e4))

## [1.35.6](https://github.com/scaleway/scaleway-form/compare/v1.35.5...v1.35.6) (2022-12-14)


Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@scaleway/form",
"version": "1.35.6",
"version": "1.35.7",
"description": "Scaleway Form",
"homepage": "https://github.com/scaleway/scaleway-form#readme",
"repository": {
Expand Down Expand Up @@ -194,7 +194,7 @@
},
"dependencies": {
"@babel/runtime": "7.20.6",
"@scaleway/ui": "0.213.3",
"@scaleway/ui": "0.213.10",
"final-form": "4.20.7",
"final-form-arrays": "3.0.2",
"final-form-focus": "1.1.2",
Expand Down
16 changes: 8 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

68 changes: 34 additions & 34 deletions src/components/Submit/__tests__/__snapshots__/index.spec.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ exports[`Submit form is invalid 1`] = `
padding-top: 2px;
}
.cache-1ibo1b8 {
.cache-1f4ynuo {
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: -ms-inline-flexbox;
Expand Down Expand Up @@ -157,23 +157,23 @@ exports[`Submit form is invalid 1`] = `
box-shadow: none;
}
.cache-1ibo1b8:hover,
.cache-1ibo1b8:focus {
.cache-1f4ynuo:hover,
.cache-1f4ynuo:focus {
-webkit-text-decoration: none;
text-decoration: none;
}
.cache-1ibo1b8:hover,
.cache-1ibo1b8:focus {
.cache-1f4ynuo:hover,
.cache-1f4ynuo:focus {
color: #ffffff;
background-color: #149a7b;
}
.cache-1ibo1b8:focus {
box-shadow: 0 0 0 2px rgba(20,154,123,0.25);
.cache-1f4ynuo:focus {
box-shadow: 0 0 0 2px #149a7b40;
}
.cache-1ibo1b8 svg {
.cache-1f4ynuo svg {
fill: #c4c9d6;
}
Expand Down Expand Up @@ -220,7 +220,7 @@ exports[`Submit form is invalid 1`] = `
</div>
<button
aria-disabled="true"
class="cache-1ibo1b8 em6gco80"
class="cache-1f4ynuo em6gco80"
disabled=""
type="submit"
>
Expand Down Expand Up @@ -252,7 +252,7 @@ exports[`Submit form is submitting 1`] = `
}
}
.cache-1ibo1b8 {
.cache-1f4ynuo {
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: -ms-inline-flexbox;
Expand Down Expand Up @@ -295,23 +295,23 @@ exports[`Submit form is submitting 1`] = `
box-shadow: none;
}
.cache-1ibo1b8:hover,
.cache-1ibo1b8:focus {
.cache-1f4ynuo:hover,
.cache-1f4ynuo:focus {
-webkit-text-decoration: none;
text-decoration: none;
}
.cache-1ibo1b8:hover,
.cache-1ibo1b8:focus {
.cache-1f4ynuo:hover,
.cache-1f4ynuo:focus {
color: #ffffff;
background-color: #149a7b;
}
.cache-1ibo1b8:focus {
box-shadow: 0 0 0 2px rgba(20,154,123,0.25);
.cache-1f4ynuo:focus {
box-shadow: 0 0 0 2px #149a7b40;
}
.cache-1ibo1b8 svg {
.cache-1f4ynuo svg {
fill: #c4c9d6;
}
Expand Down Expand Up @@ -355,7 +355,7 @@ exports[`Submit form is submitting 1`] = `
>
<button
aria-disabled="true"
class="cache-1ibo1b8 em6gco80"
class="cache-1f4ynuo em6gco80"
disabled=""
type="submit"
>
Expand Down Expand Up @@ -407,7 +407,7 @@ exports[`Submit form is submitting 1`] = `

exports[`Submit renders correctly 1`] = `
<DocumentFragment>
.cache-1wynee2 {
.cache-107ul6f {
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: -ms-inline-flexbox;
Expand Down Expand Up @@ -444,20 +444,20 @@ exports[`Submit renders correctly 1`] = `
color: #ffffff;
}
.cache-1wynee2:hover,
.cache-1wynee2:focus {
.cache-107ul6f:hover,
.cache-107ul6f:focus {
-webkit-text-decoration: none;
text-decoration: none;
}
.cache-1wynee2:hover,
.cache-1wynee2:focus {
.cache-107ul6f:hover,
.cache-107ul6f:focus {
color: #ffffff;
background-color: #149a7b;
}
.cache-1wynee2:focus {
box-shadow: 0 0 0 2px rgba(20,154,123,0.25);
.cache-107ul6f:focus {
box-shadow: 0 0 0 2px #149a7b40;
}
.cache-115wth8 {
Expand All @@ -481,7 +481,7 @@ exports[`Submit renders correctly 1`] = `
>
<button
aria-disabled="false"
class="cache-1wynee2 em6gco80"
class="cache-107ul6f em6gco80"
type="submit"
>
<div
Expand All @@ -496,7 +496,7 @@ exports[`Submit renders correctly 1`] = `

exports[`Submit renders correctly with icon and iconPosition 1`] = `
<DocumentFragment>
.cache-1wynee2 {
.cache-107ul6f {
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: -ms-inline-flexbox;
Expand Down Expand Up @@ -533,20 +533,20 @@ exports[`Submit renders correctly with icon and iconPosition 1`] = `
color: #ffffff;
}
.cache-1wynee2:hover,
.cache-1wynee2:focus {
.cache-107ul6f:hover,
.cache-107ul6f:focus {
-webkit-text-decoration: none;
text-decoration: none;
}
.cache-1wynee2:hover,
.cache-1wynee2:focus {
.cache-107ul6f:hover,
.cache-107ul6f:focus {
color: #ffffff;
background-color: #149a7b;
}
.cache-1wynee2:focus {
box-shadow: 0 0 0 2px rgba(20,154,123,0.25);
.cache-107ul6f:focus {
box-shadow: 0 0 0 2px #149a7b40;
}
.cache-115wth8 {
Expand Down Expand Up @@ -588,7 +588,7 @@ exports[`Submit renders correctly with icon and iconPosition 1`] = `
>
<button
aria-disabled="false"
class="cache-1wynee2 em6gco80"
class="cache-107ul6f em6gco80"
type="submit"
>
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`SubmitErrorAlert should display an alert when submitError is present 1`] = `
<DocumentFragment>
.cache-1wynee2 {
.cache-107ul6f {
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: -ms-inline-flexbox;
Expand Down Expand Up @@ -39,20 +39,20 @@ exports[`SubmitErrorAlert should display an alert when submitError is present 1`
color: #ffffff;
}
.cache-1wynee2:hover,
.cache-1wynee2:focus {
.cache-107ul6f:hover,
.cache-107ul6f:focus {
-webkit-text-decoration: none;
text-decoration: none;
}
.cache-1wynee2:hover,
.cache-1wynee2:focus {
.cache-107ul6f:hover,
.cache-107ul6f:focus {
color: #ffffff;
background-color: #149a7b;
}
.cache-1wynee2:focus {
box-shadow: 0 0 0 2px rgba(20,154,123,0.25);
.cache-107ul6f:focus {
box-shadow: 0 0 0 2px #149a7b40;
}
.cache-115wth8 {
Expand All @@ -71,7 +71,7 @@ exports[`SubmitErrorAlert should display an alert when submitError is present 1`
pointer-events: none;
}
.cache-1ehs544-alertStyles {
.cache-1v4uk27-alertStyles {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
Expand All @@ -94,8 +94,8 @@ exports[`SubmitErrorAlert should display an alert when submitError is present 1`
flex-wrap: nowrap;
border-radius: 4px;
padding: 16px;
background-color: #ffefe6;
color: #cc4e18;
background-color: #ffe1e7;
color: #a6102d;
}
.cache-bqy7up-sizeStyles {
Expand Down Expand Up @@ -139,7 +139,7 @@ exports[`SubmitErrorAlert should display an alert when submitError is present 1`
>
<button
aria-disabled="false"
class="cache-1wynee2 em6gco80"
class="cache-107ul6f em6gco80"
type="submit"
>
<div
Expand All @@ -149,7 +149,7 @@ exports[`SubmitErrorAlert should display an alert when submitError is present 1`
</div>
</button>
<div
class="cache-1ehs544-alertStyles eenhiht2"
class="cache-1v4uk27-alertStyles eenhiht2"
>
<svg
class="cache-bqy7up-sizeStyles etwatq50"
Expand Down
2 changes: 1 addition & 1 deletion src/components/SubmitErrorAlert/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const SubmitErrorAlert = <FormValues,>({
<FormSpy<FormValues> subscription={{ submitError: true }}>
{({ submitError }) =>
submitError ? (
<Alert className={className} variant="warning">
<Alert className={className} variant="danger">
{submitError}
</Alert>
) : null
Expand Down

0 comments on commit ff73138

Please sign in to comment.