Skip to content

Commit

Permalink
Merge pull request #209 from urbandataanalytics/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
elchiconube authored Aug 19, 2021
2 parents 0aa45d0 + 0d34da8 commit 99c7291
Show file tree
Hide file tree
Showing 5 changed files with 83 additions and 54 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
"@types/react": "^16.9.34",
"@types/react-dom": "^16.9.7",
"@types/styled-components": "^5.1.0",
"@typescript-eslint/parser": "^4.11.0",
"@typescript-eslint/parser": "^4.29.2",
"babel-eslint": "^10.1.0",
"babel-jest": "^24.9.0",
"babel-loader": "^8.1.0",
Expand Down Expand Up @@ -163,7 +163,7 @@
"stylelint-config-recommended": "^3.0.0",
"stylelint-config-styled-components": "^0.1.1",
"stylelint-processor-styled-components": "^1.10.0",
"typescript": "^3.8.3",
"typescript": "^4.3.5",
"webpack-cli": "^4.7.0"
},
"dependencies": {
Expand Down
8 changes: 7 additions & 1 deletion src/components/Slider/InputFormatter.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@ const MinMaxInput = styled.input`
text-align: center;
width: ${({ valueLength }) => `${valueLength}ch`};
box-sizing: initial;
padding: ${({ theme }) => theme.spacings.small1} ${({ theme }) => theme.spacings.small2};
padding-top: ${({ theme }) => theme.spacings.small1};
padding-right: ${({ theme }) => theme.spacings.small3};
padding-bottom: 6px;
padding-left: ${({ theme }) => theme.spacings.small3}!important;
border-radius: 0;
position: relative;
top: 2px;
.prefix {
order: -1;
Expand Down
12 changes: 6 additions & 6 deletions src/components/Slider/__snapshots__/Slider.stories.storyshot
Original file line number Diff line number Diff line change
Expand Up @@ -210,33 +210,33 @@ exports[`Storyshots Slider Range 1`] = `
className="Slider__MinMaxContainer-sc-14leke7-0 imwmgK"
>
<label
className="Slider__InputContainer-sc-14leke7-1 bqScOy"
className="Slider__InputContainer-sc-14leke7-1 eAIxmu"
>
<input
className="InputFormatter__MinMaxInput-ptc9ju-0 jffsVq"
className="InputFormatter__MinMaxInput-ptc9ju-0 gimtqY"
onClick={[Function]}
readOnly={true}
type="text"
value="0"
/>
<span
className="Slider__PrefixSuffix-sc-14leke7-2 gwieVm"
className="Slider__PrefixSuffix-sc-14leke7-2 bWZTnS"
>
€/m2
</span>
</label>
<label
className="Slider__InputContainer-sc-14leke7-1 bqScOy"
className="Slider__InputContainer-sc-14leke7-1 eAIxmu"
>
<input
className="InputFormatter__MinMaxInput-ptc9ju-0 dfxshO"
className="InputFormatter__MinMaxInput-ptc9ju-0 kGyIAo"
onClick={[Function]}
readOnly={true}
type="text"
value="100"
/>
<span
className="Slider__PrefixSuffix-sc-14leke7-2 gwieVm"
className="Slider__PrefixSuffix-sc-14leke7-2 bWZTnS"
>
€/m2
</span>
Expand Down
5 changes: 4 additions & 1 deletion src/components/Slider/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,17 @@ const MinMaxContainer = styled.div`

const InputContainer = styled.label`
display: flex;
align-items: center;
`;

const PrefixSuffix = styled.span`
${({ theme }) => theme.texts.p2b};
background-color: transparent;
border-bottom: 1px solid ${({ theme }) => theme.color.charcoal400};
color: ${({ theme }) => theme.color.charcoal800};
padding: ${({ theme }) => theme.spacings.small1} 0;
padding: ${({ theme }) => theme.spacings.small1};
border-radius: 0;
line-height: 2;
`;

PrefixSuffix.defaultProps = {
Expand Down
108 changes: 64 additions & 44 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4743,28 +4743,28 @@
"@typescript-eslint/typescript-estree" "2.32.0"
eslint-visitor-keys "^1.1.0"

"@typescript-eslint/parser@^4.11.0":
version "4.11.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-4.11.0.tgz#1dd3d7e42708c10ce9f3aa64c63c0ab99868b4e2"
integrity sha512-NBTtKCC7ZtuxEV5CrHUO4Pg2s784pvavc3cnz6V+oJvVbK4tH9135f/RBP6eUA2KHiFKAollSrgSctQGmHbqJQ==
dependencies:
"@typescript-eslint/scope-manager" "4.11.0"
"@typescript-eslint/types" "4.11.0"
"@typescript-eslint/typescript-estree" "4.11.0"
debug "^4.1.1"
"@typescript-eslint/parser@^4.29.2":
version "4.29.2"
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-4.29.2.tgz#1c7744f4c27aeb74610c955d3dce9250e95c370a"
integrity sha512-WQ6BPf+lNuwteUuyk1jD/aHKqMQ9jrdCn7Gxt9vvBnzbpj7aWEf+aZsJ1zvTjx5zFxGCt000lsbD9tQPEL8u6g==
dependencies:
"@typescript-eslint/scope-manager" "4.29.2"
"@typescript-eslint/types" "4.29.2"
"@typescript-eslint/typescript-estree" "4.29.2"
debug "^4.3.1"

"@typescript-eslint/scope-manager@4.11.0":
version "4.11.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-4.11.0.tgz#2d906537db8a3a946721699e4fc0833810490254"
integrity sha512-6VSTm/4vC2dHM3ySDW9Kl48en+yLNfVV6LECU8jodBHQOhO8adAVizaZ1fV0QGZnLQjQ/y0aBj5/KXPp2hBTjA==
"@typescript-eslint/scope-manager@4.29.2":
version "4.29.2"
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-4.29.2.tgz#442b0f029d981fa402942715b1718ac7fcd5aa1b"
integrity sha512-mfHmvlQxmfkU8D55CkZO2sQOueTxLqGvzV+mG6S/6fIunDiD2ouwsAoiYCZYDDK73QCibYjIZmGhpvKwAB5BOA==
dependencies:
"@typescript-eslint/types" "4.11.0"
"@typescript-eslint/visitor-keys" "4.11.0"
"@typescript-eslint/types" "4.29.2"
"@typescript-eslint/visitor-keys" "4.29.2"

"@typescript-eslint/types@4.11.0":
version "4.11.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-4.11.0.tgz#86cf95e7eac4ccfd183f9fcf1480cece7caf4ca4"
integrity sha512-XXOdt/NPX++txOQHM1kUMgJUS43KSlXGdR/aDyEwuAEETwuPt02Nc7v+s57PzuSqMbNLclblQdv3YcWOdXhQ7g==
"@typescript-eslint/types@4.29.2":
version "4.29.2"
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-4.29.2.tgz#fc0489c6b89773f99109fb0aa0aaddff21f52fcd"
integrity sha512-K6ApnEXId+WTGxqnda8z4LhNMa/pZmbTFkDxEBLQAbhLZL50DjeY0VIDCml/0Y3FlcbqXZrABqrcKxq+n0LwzQ==

"@typescript-eslint/[email protected]":
version "2.32.0"
Expand All @@ -4779,26 +4779,25 @@
semver "^7.3.2"
tsutils "^3.17.1"

"@typescript-eslint/typescript-estree@4.11.0":
version "4.11.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-4.11.0.tgz#1144d145841e5987d61c4c845442a24b24165a4b"
integrity sha512-eA6sT5dE5RHAFhtcC+b5WDlUIGwnO9b0yrfGa1mIOIAjqwSQCpXbLiFmKTdRbQN/xH2EZkGqqLDrKUuYOZ0+Hg==
"@typescript-eslint/typescript-estree@4.29.2":
version "4.29.2"
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-4.29.2.tgz#a0ea8b98b274adbb2577100ba545ddf8bf7dc219"
integrity sha512-TJ0/hEnYxapYn9SGn3dCnETO0r+MjaxtlWZ2xU+EvytF0g4CqTpZL48SqSNn2hXsPolnewF30pdzR9a5Lj3DNg==
dependencies:
"@typescript-eslint/types" "4.11.0"
"@typescript-eslint/visitor-keys" "4.11.0"
debug "^4.1.1"
globby "^11.0.1"
"@typescript-eslint/types" "4.29.2"
"@typescript-eslint/visitor-keys" "4.29.2"
debug "^4.3.1"
globby "^11.0.3"
is-glob "^4.0.1"
lodash "^4.17.15"
semver "^7.3.2"
tsutils "^3.17.1"
semver "^7.3.5"
tsutils "^3.21.0"

"@typescript-eslint/visitor-keys@4.11.0":
version "4.11.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-4.11.0.tgz#906669a50f06aa744378bb84c7d5c4fdbc5b7d51"
integrity sha512-tRYKyY0i7cMk6v4UIOCjl1LhuepC/pc6adQqJk4Is3YcC6k46HvsV9Wl7vQoLbm9qADgeujiT7KdLrylvFIQ+A==
"@typescript-eslint/visitor-keys@4.29.2":
version "4.29.2"
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-4.29.2.tgz#d2da7341f3519486f50655159f4e5ecdcb2cd1df"
integrity sha512-bDgJLQ86oWHJoZ1ai4TZdgXzJxsea3Ee9u9wsTAvjChdj2WLcVsgWYAPeY7RQMn16tKrlQaBnpKv7KBfs4EQag==
dependencies:
"@typescript-eslint/types" "4.11.0"
"@typescript-eslint/types" "4.29.2"
eslint-visitor-keys "^2.0.0"

"@webassemblyjs/[email protected]":
Expand Down Expand Up @@ -8388,6 +8387,13 @@ debug@^4.0.1, debug@^4.1.0, debug@^4.1.1:
dependencies:
ms "^2.1.1"

debug@^4.3.1:
version "4.3.2"
resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.2.tgz#f0a49c18ac8779e31d4a0c6029dfb76873c7428b"
integrity sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==
dependencies:
ms "2.1.2"

decamelize-keys@^1.0.0, decamelize-keys@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/decamelize-keys/-/decamelize-keys-1.1.0.tgz#d171a87933252807eb3cb61dc1c1445d078df2d9"
Expand Down Expand Up @@ -10601,10 +10607,10 @@ globby@^11.0.0:
merge2 "^1.3.0"
slash "^3.0.0"

globby@^11.0.1:
version "11.0.1"
resolved "https://registry.yarnpkg.com/globby/-/globby-11.0.1.tgz#9a2bf107a068f3ffeabc49ad702c79ede8cfd357"
integrity sha512-iH9RmgwCmUJHi2z5o2l3eTtGBtXek1OYlHrbcxOYugyHLmAsZrPj43OtHThd62Buh/Vv6VyCBD2bdyWcGNQqoQ==
globby@^11.0.3:
version "11.0.4"
resolved "https://registry.yarnpkg.com/globby/-/globby-11.0.4.tgz#2cbaff77c2f2a62e71e9b2813a67b97a3a3001a5"
integrity sha512-9O4MVG9ioZJ08ffbcyVYyLOJLk5JQ688pJ4eMGLpdWLHq/Wr1D9BlriLQyL0E+jbkuePVZXYFj47QM/v093wHg==
dependencies:
array-union "^2.1.0"
dir-glob "^3.0.1"
Expand Down Expand Up @@ -14379,7 +14385,7 @@ [email protected]:
resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.1.tgz#30a5864eb3ebb0a66f2ebe6d727af06a09d86e0a"
integrity sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==

ms@^2.1.1:
ms@2.1.2, ms@^2.1.1:
version "2.1.2"
resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009"
integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==
Expand Down Expand Up @@ -18202,6 +18208,13 @@ semver@^7.3.2:
resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.2.tgz#604962b052b81ed0786aae84389ffba70ffd3938"
integrity sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ==

semver@^7.3.5:
version "7.3.5"
resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.5.tgz#0b621c879348d8998e4b0e4be94b3f12e6018ef7"
integrity sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==
dependencies:
lru-cache "^6.0.0"

[email protected]:
version "0.17.1"
resolved "https://registry.yarnpkg.com/send/-/send-0.17.1.tgz#c1d8b059f7900f7466dd4938bdc44e11ddb376c8"
Expand Down Expand Up @@ -19743,6 +19756,13 @@ tsutils@^3.17.1:
dependencies:
tslib "^1.8.1"

tsutils@^3.21.0:
version "3.21.0"
resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.21.0.tgz#b48717d394cea6c1e096983eed58e9d61715b623"
integrity sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==
dependencies:
tslib "^1.8.1"

[email protected]:
version "0.0.0"
resolved "https://registry.yarnpkg.com/tty-browserify/-/tty-browserify-0.0.0.tgz#a157ba402da24e9bf957f9aa69d524eed42901a6"
Expand Down Expand Up @@ -19832,10 +19852,10 @@ typescript@^3.7.5:
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.3.tgz#d3ac8883a97c26139e42df5e93eeece33d610b8a"
integrity sha512-D/wqnB2xzNFIcoBG9FG8cXRDjiqSTbG2wd8DMZeQyJlP1vfTkIxH4GKveWaEBYySKIg+USu+E+EDIR47SqnaMQ==

typescript@^3.8.3:
version "3.8.3"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.8.3.tgz#409eb8544ea0335711205869ec458ab109ee1061"
integrity sha512-MYlEfn5VrLNsgudQTVJeNaQFUAI7DkhnOjdpAp4T+ku1TfQClewlbSuTVHiA+8skNBgaf02TL/kLOvig4y3G8w==
typescript@^4.3.5:
version "4.3.5"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.3.5.tgz#4d1c37cc16e893973c45a06886b7113234f119f4"
integrity sha512-DqQgihaQ9cUrskJo9kIyW/+g0Vxsk8cDtZ52a3NGh0YNTfpUSArXSohyUGnvbPazEPLu398C0UxmKSOrPumUzA==

typescript@next:
version "4.0.0-dev.20200512"
Expand Down

0 comments on commit 99c7291

Please sign in to comment.