Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: velabikes/vela-ui
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.1.7
Choose a base ref
...
head repository: velabikes/vela-ui
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Loading
Showing with 22,022 additions and 11,822 deletions.
  1. +3 −0 .babelrc
  2. +33 −0 .eslintrc.js
  3. +1 −0 .github/workflows/npmpublish.yml
  4. +2 −0 .gitignore
  5. +1 −0 .nvmrc
  6. +13 −6 README.md
  7. +2 −1 examples/next/next.config.js
  8. +1,847 −4,484 examples/next/package-lock.json
  9. +3 −3 examples/next/package.json
  10. +5 −0 examples/next/pages/_app.css
  11. +18 −0 examples/next/pages/_app.js
  12. +43 −0 examples/next/pages/examples/form.js
  13. +38 −12 examples/next/pages/index.js
  14. +476 −212 examples/next/yarn.lock
  15. +34 −0 examples/next11/.gitignore
  16. +30 −0 examples/next11/README.md
  17. +4 −0 examples/next11/babel.config.js
  18. +19 −0 examples/next11/next.config.js
  19. +25 −0 examples/next11/package.json
  20. +7 −0 examples/next11/pages/_app.js
  21. +6 −0 examples/next11/pages/api/hello.js
  22. +43 −0 examples/next11/pages/index.js
  23. BIN examples/next11/public/favicon.ico
  24. +4 −0 examples/next11/public/vercel.svg
  25. +8 −0 examples/next11/styles/Home.module.css
  26. +16 −0 examples/next11/styles/globals.css
  27. +8 −0 examples/react-native/=2.8.0
  28. +12 −75 examples/react-native/App.js
  29. +17 −0 examples/react-native/android/.project
  30. +21 −0 examples/react-native/components/DrawerHeader.js
  31. +1 −1 examples/react-native/ios/Example/Info.plist
  32. +12 −8 examples/react-native/package.json
  33. +2 −2 examples/react-native/screens/Forms.js
  34. +25 −20 examples/react-native/screens/Icons.js
  35. +8 −148 examples/react-native/screens/Styleguide.js
  36. +17,546 −2,838 package-lock.json
  37. +23 −16 package.json
  38. +17 −0 src/components/Anchor.js
  39. +0 −11 src/components/Backdrop.js
  40. +98 −13 src/components/Box.js
  41. +46 −74 src/components/Button.js
  42. +66 −0 src/components/Carousel.js
  43. +13 −0 src/components/CarouselItem.js
  44. +65 −48 src/components/Control.js
  45. +21 −8 src/components/Distance.js
  46. +12 −6 src/components/{ → Drawer}/DrawerContent.js
  47. +26 −0 src/components/Drawer/DrawerItem.js
  48. +0 −31 src/components/DrawerItem.js
  49. +0 −16 src/components/Footnote.js
  50. +1 −1 src/components/Form/EmailField.js
  51. +14 −16 src/components/Form/FieldBase.js
  52. +6 −0 src/components/Form/Form.native.js
  53. +6 −0 src/components/Form/Form.web.js
  54. +2 −6 src/components/Form/PhoneField.js
  55. +27 −14 src/components/Form/PhoneInput.js
  56. +8 −0 src/components/Form/SelectField.js
  57. +57 −33 src/components/Form/SelectInput.js
  58. +37 −0 src/components/Form/Switch.js
  59. +4 −7 src/components/Form/TextInput.js
  60. +12 −0 src/components/Gap.js
  61. +16 −0 src/components/Header.js
  62. +0 −51 src/components/Header/Header.js
  63. +0 −11 src/components/Header/HeaderBackButton.js
  64. +0 −11 src/components/Header/HeaderMenuButton.js
  65. +0 −22 src/components/Heading.js
  66. +469 −207 src/components/Icons.js
  67. +15 −7 src/components/Image.js
  68. +2 −4 src/components/Label.js
  69. +0 −17 src/components/Link.js
  70. +37 −0 src/components/Navbar/Navbar.js
  71. +11 −0 src/components/Navbar/NavbarBackButton.js
  72. +14 −0 src/components/Navbar/NavbarMenuButton.js
  73. 0 src/components/{Header/HeaderTitle.js → Navbar/NavbarTitle.js}
  74. +0 −16 src/components/Paragraph.js
  75. +17 −0 src/components/ProfileImage.js
  76. +0 −10 src/components/Screen.js
  77. +0 −20 src/components/Spacer.js
  78. +40 −0 src/components/Speed.js
  79. +0 −24 src/components/Speedometer.js
  80. +0 −29 src/components/Subheading.js
  81. +0 −9 src/components/Surface.js
  82. +13 −15 src/components/Text.js
  83. +12 −7 src/components/Theme.js
  84. +17 −0 src/components/Typography/Footnote.js
  85. +21 −0 src/components/Typography/Heading.js
  86. +14 −0 src/components/Typography/Paragraph.js
  87. +20 −0 src/components/Typography/Subheading.js
  88. +32 −0 src/components/charts/LiveSpline.js
  89. +21 −0 src/components/charts/Speedometer.js
  90. +0 −8 src/components/export.js
  91. +25 −12 src/index.js
  92. +135 −0 src/lib/colors.js
  93. +158 −52 src/lib/theme.js
  94. +6 −0 src/lib/useCountry.js
  95. +21 −0 src/lib/useInterval.js
  96. +6 −0 src/lib/useLanguage.js
  97. +6 −0 src/lib/useSystem.js
  98. +0 −3,180 yarn.lock
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["@babel/preset-env", "@babel/preset-react"]
}
33 changes: 33 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
module.exports = {
env: {
browser: true,
es6: true,
node: true
},
extends: [
'plugin:react/recommended',
'standard'
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly'
},
parserOptions: {
ecmaFeatures: {
jsx: true
},
ecmaVersion: 2018,
sourceType: 'module'
},
plugins: [
'react'
],
rules: {
"react/react-in-jsx-scope": "off"
},
settings: {
react: {
version: "detect"
}
}
}
1 change: 1 addition & 0 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
@@ -24,6 +24,7 @@ jobs:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_KEY}}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
.DS_Store
node_modules
dist/
yarn.lock
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v13.10.1
19 changes: 13 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -9,11 +9,18 @@ Vela React Components Toolkit
## Loacal Development

### React Native
`npm install`
`cd examples/react-native/`
`npm install`
`react-native link`
`react-native run-[platform]`
```
npm install
cd examples/react-native/
npm install
react-native link
react-native run-[platform]
```

### Next
`TBD`
```
npm install
cd examples/next/
npm install
npm run dev
```
3 changes: 2 additions & 1 deletion examples/next/next.config.js
Original file line number Diff line number Diff line change
@@ -6,6 +6,7 @@ module.exports = withTM({
...(config.resolve.alias || {}),
// Transform all direct `react-native` imports to `react-native-web`
'react-native$': 'react-native-web',
'react-native-svg': 'react-native-svg-web'
}
config.resolve.extensions = [
'.web.js',
@@ -15,5 +16,5 @@ module.exports = withTM({
]
return config
},
transpileModules: ['@vela/ui']
transpileModules: ['@vela/ui', 'react-native-appearance']
})
Loading