Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implement phone input component #1533

Merged
Merged
Show file tree
Hide file tree
Changes from 16 commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
2c4e761
feat: create PhoneInput component
yvmunayev Apr 24, 2020
039878c
feat: implement behaivor for onChange
yvmunayev Apr 26, 2020
d9c6bb2
feat: add search filter to countries
yvmunayev May 6, 2020
c16a8a9
Merge branch 'master' of https://github.com/nexxtway/react-rainbow in…
yvmunayev May 6, 2020
08c7967
feat: add key navigation and infinity scroll
yvmunayev May 8, 2020
d81fbee
Merge branch 'master' of https://github.com/nexxtway/react-rainbow in…
yvmunayev May 8, 2020
78a9940
feat: add useReduxForm and useImperativeHandle hooks
yvmunayev May 8, 2020
99533a0
Merge branch 'master' of https://github.com/nexxtway/react-rainbow in…
yvmunayev May 8, 2020
f321497
fix: optimization re-renders and change search input style
yvmunayev May 20, 2020
0fd0b84
fix: fix style and add optimizition to re-render of countriesList
yvmunayev May 22, 2020
c7e7f2d
fix: change the selected country
yvmunayev May 23, 2020
cd2bf76
Merge branch 'master' of https://github.com/nexxtway/react-rainbow in…
yvmunayev May 23, 2020
5f02147
fix: fix properties and methods table and fix some style
yvmunayev May 25, 2020
08468fc
fix: fix search input style
yvmunayev May 26, 2020
c9cd167
fix: fix some styled
yvmunayev May 27, 2020
1a98c41
fix: fix useFocusIndex hook
yvmunayev May 28, 2020
d66e19c
Merge branch 'master' of https://github.com/nexxtway/react-rainbow in…
yvmunayev Jun 2, 2020
5bcbfe9
fix: fix comment
yvmunayev Jun 2, 2020
4194c76
Merge branch 'master' into implement-phone-input-component
LeandroTorresSicilia Jun 7, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions library/exampleComponents/Icons/phone.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ const Phone = props => {
viewBox="0 0 20 20"
version="1.1"
>
<g id="components" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="components" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
<g
id="Components-BadgeOverlay"
transform="translate(-503.000000, -1785.000000)"
fill="#A8ACB3"
fill-rule="nonzero"
fillRule="nonzero"
>
<path
d="M521.395208,1798.12771 C520.170729,1798.12771 518.968438,1797.9362 517.829115,1797.55969 C517.261094,1797.36599 516.614375,1797.5163 516.243802,1797.89391 L513.995,1799.59151 C511.387031,1798.19937 509.780573,1796.59344 508.407448,1794.00505 L510.055104,1791.81484 C510.483177,1791.38734 510.636719,1790.76286 510.45276,1790.17693 C510.074635,1789.03161 509.882552,1787.8299 509.882552,1786.6049 C509.882604,1785.71995 509.162656,1785 508.27776,1785 L504.604792,1785 C503.719948,1785 503,1785.71995 503,1786.60479 C503,1796.74807 511.251979,1805 521.395208,1805 C522.280104,1805 523.000052,1804.28005 523.000052,1803.39516 L523.000052,1799.7325 C523.000052,1798.84766 522.280052,1798.12771 521.395208,1798.12771 Z M521.888906,1803.39521 C521.888906,1803.66755 521.667552,1803.88891 521.395208,1803.88891 C511.864479,1803.88891 504.111146,1796.13552 504.111146,1786.60484 C504.111146,1786.3325 504.3325,1786.11115 504.604844,1786.11115 L508.277812,1786.11115 C508.550156,1786.11115 508.77151,1786.3325 508.77151,1786.60484 C508.77151,1787.9487 508.982552,1789.2676 509.395417,1790.51708 C509.452917,1790.70156 509.40625,1790.8925 509.219635,1791.08677 L507.309896,1793.61599 C507.181875,1793.78578 507.161771,1794.01312 507.257812,1794.20245 C508.81651,1797.26615 510.710521,1799.16016 513.795885,1800.74109 C513.983594,1800.83927 514.213646,1800.8187 514.38401,1800.6901 L516.971354,1798.72995 C517.102083,1798.59922 517.297969,1798.55255 517.474844,1798.61276 C518.732969,1799.02833 520.051875,1799.23885 521.395208,1799.23885 C521.667552,1799.23885 521.888906,1799.46021 521.888906,1799.73255 L521.888906,1803.39521 Z"
Expand Down
4 changes: 4 additions & 0 deletions library/styleguideComponents/PropsTable/bodyRows.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ function renderValue(value, caption, row) {
}
}

if (caption === 'Default' && type.name === 'array') {
return <div className="react-rainbow-defualt-array">{value}</div>;
}

return value;
}

Expand Down
6 changes: 6 additions & 0 deletions library/styleguideComponents/PropsTable/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,10 @@

.react-rainbow-prop-description {
white-space: normal;
}

.react-rainbow-defualt-array {
white-space: normal;
max-width: 300px;
text-align: justify;
}
Loading