Skip to content

Commit

Permalink
Merge ac79224 into 3acd04a
Browse files Browse the repository at this point in the history
  • Loading branch information
heyjul3s committed Feb 2, 2021
2 parents 3acd04a + ac79224 commit a685111
Show file tree
Hide file tree
Showing 14 changed files with 52 additions and 106 deletions.
18 changes: 1 addition & 17 deletions docs/.babelrc
Original file line number Diff line number Diff line change
@@ -1,20 +1,4 @@
{
"presets": ["next/babel"],
"plugins": [
[
"module-resolver",
{
"root": ["./src"],
"alias": {
"@components": "./components",
"@page-content": "./page-content",
"@assets": "./assets",
"@public": "./public",
"@pages": "./pages",
"@theme": "./theme"
}
}
],
["styled-components", { "ssr": true }]
]
"plugins": [["styled-components", { "ssr": true }]]
}
8 changes: 8 additions & 0 deletions docs/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module.exports = {
ignorePatterns: ['node_modules/', '.next/'],
settings: {
'import/resolver': {
typescript: {}
}
}
};
8 changes: 5 additions & 3 deletions docs/components/FlexTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,14 @@ export function FlexTableCell({ prop, subProp, content }) {
return (
<>
<FlexCol columnSize={[12, 5, 4]} gutterWidth={0}>
<SmallLead mb={'0.15rem'}>{prop}</SmallLead>
<SmallParagraph>{subProp}</SmallParagraph>
<SmallLead mt={0} mb={'0.15rem'}>
{prop}
</SmallLead>
<SmallParagraph mt={0}>{subProp}</SmallParagraph>
</FlexCol>

<FlexCol columnSize={[12, 7, 8]} gutterWidth={0}>
<Paragraph>{content}</Paragraph>
<Paragraph mt={0}>{content}</Paragraph>
</FlexCol>
</>
);
Expand Down
4 changes: 3 additions & 1 deletion docs/components/Global/Container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,22 @@ import { theme } from '../../theme';

export const Container = styled.div`
margin: 0 auto;
width: 100%;
max-width: ${theme.container[0]};
padding-left: 1em;
padding-right: 1em;
@media (min-width: 576px) {
width: 100%;
max-width: ${theme.container[1]};
}
@media (min-width: 768px) {
width: 100%;
max-width: ${theme.container[2]};
}
@media (min-width: 992px) {
width: 100%;
max-width: ${theme.container[3]};
}
`;
7 changes: 6 additions & 1 deletion docs/components/Global/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ export function Layout({
{router.pathname === '/' && <Header />}

<Main>
<Container pr="1em" pl="1em">
<Container
style={{
paddingRight: '1em',
paddingLeft: '1em'
}}
>
{children}
</Container>
</Main>
Expand Down
2 changes: 1 addition & 1 deletion docs/components/Global/Tagline/Tagline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { TaglineProps } from './typings';

export function Tagline({ align = 'center' }: TaglineProps) {
return (
<Paragraph textAlign={align}>
<Paragraph textAlign={align} mt={0} p={'0 1em'}>
a light, modular and extensible ReactJS UI primitives library
</Paragraph>
);
Expand Down
1 change: 0 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
"@types/react": "^17.0.0",
"@types/styled-components": "^5.1.7",
"@types/styled-system": "^5.1.10",
"babel-plugin-module-resolver": "^4.1.0",
"babel-plugin-styled-components": "^1.12.0",
"typescript": "^4.1.3"
},
Expand Down
4 changes: 2 additions & 2 deletions docs/page-content/Flex/examples/FlexAlignmentDemo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ export function FlexAlignmentDemo() {
return (
<>
<FlexRow justifyContent={['flex-start', 'center']} alignItems="center">
<FlexCol columnSize={[12, 6, 4]} totalColumns={16}>
<FlexCol columnSize={[12, 6, 4]}>
<Block1 />
</FlexCol>

<FlexCol columnSize={[12, 6, 4]} totalColumns={16}>
<FlexCol columnSize={[12, 6, 4]}>
<Block2 />
</FlexCol>
</FlexRow>
Expand Down
4 changes: 4 additions & 0 deletions docs/page-content/Generator/Generator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,11 @@ export function GeneratorContent() {
component if a configuration object is passed as an argument for the{' '}
<Strong>base</Strong> parameter.
</Paragraph>

<ParamsTable APIname={'settings'} cells={createBlocksSettingsCells} />

<HR />

<APIheading
name="createStyledComponent"
params={{
Expand Down
6 changes: 6 additions & 0 deletions docs/page-content/Grid/examples/GridDemo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ export function ColumnWidthDemo() {
<GridItemBlock />
<GridItemBlock />
<GridItemBlock />
<GridItemBlock />
<GridItemBlock />
</Grid>
);
}
Expand All @@ -22,6 +24,10 @@ export function ColumnWidthMqDemo() {
<GridItemBlock />
<GridItemBlock />
<GridItemBlock />
<GridItemBlock />
<GridItemBlock />
<GridItemBlock />
<GridItemBlock />
</Grid>
);
}
Expand Down
2 changes: 1 addition & 1 deletion docs/page-content/HomePage/content/Specs/Specs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function Specs() {
title="Peer Dependencies"
content={[
'react >= 17.0.1',
'typescript >= 4.1.2',
'typescript >= 4.1.3',
'styled-components >= 5.2.1',
'styled-system >= 5.1.5'
]}
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { FlexRow, FlexCol } from 'artifak';
import { Layout, DesktopNav } from '@components';
import { useRouter } from 'next/router';
import { content } from '@page-content';
import { HomePage } from '@page-content/HomePage/HomePage';
import { HomePage } from '../page-content/HomePage/HomePage';

export default function Home() {
const router = useRouter();
Expand Down
9 changes: 9 additions & 0 deletions docs/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@
"exclude": ["node_modules"],
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"compilerOptions": {
"baseUrl": "./",
"paths": {
"@components": ["./components"],
"@page-content": ["./page-content"],
"@assets": ["./assets"],
"@public": ["./public"],
"@pages": ["./pages"],
"@theme": ["./theme"]
},
"lib": ["dom", "dom.iterable", "esnext"],
"noEmit": true,
"isolatedModules": true,
Expand Down
83 changes: 5 additions & 78 deletions docs/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -953,17 +953,6 @@ atob@^2.1.2:
resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9"
integrity sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==

babel-plugin-module-resolver@^4.1.0:
version "4.1.0"
resolved "https://registry.yarnpkg.com/babel-plugin-module-resolver/-/babel-plugin-module-resolver-4.1.0.tgz#22a4f32f7441727ec1fbf4967b863e1e3e9f33e2"
integrity sha512-MlX10UDheRr3lb3P0WcaIdtCSRlxdQsB1sBqL7W0raF070bGl1HQQq5K3T2vf2XAYie+ww+5AKC/WrkjRO2knA==
dependencies:
find-babel-config "^1.2.0"
glob "^7.1.6"
pkg-up "^3.1.0"
reselect "^4.0.0"
resolve "^1.13.1"

"babel-plugin-styled-components@>= 1":
version "1.11.1"
resolved "https://registry.yarnpkg.com/babel-plugin-styled-components/-/babel-plugin-styled-components-1.11.1.tgz#5296a9e557d736c3186be079fff27c6665d63d76"
Expand Down Expand Up @@ -1274,15 +1263,10 @@ camelize@^1.0.0:
resolved "https://registry.yarnpkg.com/camelize/-/camelize-1.0.0.tgz#164a5483e630fa4321e5af07020e531831b2609b"
integrity sha1-FkpUg+Yw+kMh5a8HAg5TGDGyYJs=

caniuse-lite@^1.0.30001093, caniuse-lite@^1.0.30001113:
version "1.0.30001146"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001146.tgz#c61fcb1474520c1462913689201fb292ba6f447c"
integrity sha512-VAy5RHDfTJhpxnDdp2n40GPPLp3KqNrXz1QqFv4J64HvArKs8nuNMOWkB3ICOaBTU/Aj4rYAo/ytdQDDFF/Pug==

caniuse-lite@^1.0.30001154:
version "1.0.30001165"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001165.tgz#32955490d2f60290bb186bb754f2981917fa744f"
integrity sha512-8cEsSMwXfx7lWSUMA2s08z9dIgsnR5NAqjXP23stdsU3AUWkCr/rr4s4OFtHXn5XXr6+7kam3QFVoYyXNPdJPA==
caniuse-lite@^1.0.30001093, caniuse-lite@^1.0.30001113, caniuse-lite@^1.0.30001154:
version "1.0.30001181"
resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001181.tgz"
integrity sha512-m5ul/ARCX50JB8BSNM+oiPmQrR5UmngaQ3QThTTp5HcIIQGP/nPBs82BYLE+tigzm3VW+F4BJIhUyaVtEweelQ==

chalk@2.4.2, chalk@^2.0.0, chalk@^2.4.2:
version "2.4.2"
Expand Down Expand Up @@ -2165,14 +2149,6 @@ fill-range@^7.0.1:
dependencies:
to-regex-range "^5.0.1"

find-babel-config@^1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/find-babel-config/-/find-babel-config-1.2.0.tgz#a9b7b317eb5b9860cda9d54740a8c8337a2283a2"
integrity sha512-jB2CHJeqy6a820ssiqwrKMeyC6nNdmrcgkKWJWmpoxpE8RKciYJXCcXRq1h2AzCo5I5BJeN2tkGEO3hLTuePRA==
dependencies:
json5 "^0.5.1"
path-exists "^3.0.0"

find-cache-dir@3.3.1:
version "3.3.1"
resolved "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-3.3.1.tgz#89b33fad4a4670daa94f855f7fbe31d6d84fe880"
Expand Down Expand Up @@ -2290,11 +2266,6 @@ fsevents@~2.1.2:
resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.1.3.tgz#fb738703ae8d2f9fe900c33836ddebee8b97f23e"
integrity sha512-Auw9a4AxqWpa9GUfj370BMPzzyncfBABW8Mab7BGWBYDj4Isgq+cDKtx0i6u9jcX9pQDnswsaaOTgTmA5pEjuQ==

function-bind@^1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d"
integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==

gauge@~2.7.3:
version "2.7.4"
resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.4.tgz#2c03405c7538c39d7eb37b317022e325fb018bf7"
Expand Down Expand Up @@ -2339,7 +2310,7 @@ glob-to-regexp@^0.4.1:
resolved "https://registry.yarnpkg.com/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz#c75297087c851b9a578bd217dd59a92f59fe546e"
integrity sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==

glob@^7.1.3, glob@^7.1.4, glob@^7.1.6:
glob@^7.1.3, glob@^7.1.4:
version "7.1.6"
resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.6.tgz#141f33b81a7c2492e125594307480c46679278a6"
integrity sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==
Expand Down Expand Up @@ -2414,13 +2385,6 @@ has-values@^1.0.0:
is-number "^3.0.0"
kind-of "^4.0.0"

has@^1.0.3:
version "1.0.3"
resolved "https://registry.yarnpkg.com/has/-/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796"
integrity sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==
dependencies:
function-bind "^1.1.1"

hash-base@^3.0.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/hash-base/-/hash-base-3.1.0.tgz#55c381d9e06e1d2997a883b4a3fddfe7f0d3af33"
Expand Down Expand Up @@ -2659,13 +2623,6 @@ is-buffer@^1.1.5:
resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be"
integrity sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==

is-core-module@^2.1.0:
version "2.2.0"
resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.2.0.tgz#97037ef3d52224d85163f5597b2b63d9afed981a"
integrity sha512-XRAfAdyyY5F5cOXn7hYQDqh2Xmii+DEfIcQGxK/uNwMHhIkPWO0g8msXcbzLe+MpGoR951MlqM/2iIlU4vKDdQ==
dependencies:
has "^1.0.3"

is-data-descriptor@^0.1.4:
version "0.1.4"
resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz#0b5ee648388e2c860282e793f1856fec3f301b56"
Expand Down Expand Up @@ -2825,11 +2782,6 @@ json-schema-traverse@^0.4.1:
resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660"
integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==

json5@^0.5.1:
version "0.5.1"
resolved "https://registry.yarnpkg.com/json5/-/json5-0.5.1.tgz#1eade7acc012034ad84e2396767ead9fa5495821"
integrity sha1-Hq3nrMASA0rYTiOWdn6tn6VJWCE=

json5@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/json5/-/json5-1.0.1.tgz#779fb0018604fa854eacbf6252180d83543e3dbe"
Expand Down Expand Up @@ -3509,11 +3461,6 @@ path-is-absolute@^1.0.0:
resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f"
integrity sha1-F0uSaHNVNP+8es5r9TpanhtcX18=

path-parse@^1.0.6:
version "1.0.6"
resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.6.tgz#d62dbb5679405d72c4737ec58600e9ddcf06d24c"
integrity sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==

pbkdf2@^3.0.3:
version "3.1.1"
resolved "https://registry.yarnpkg.com/pbkdf2/-/pbkdf2-3.1.1.tgz#cb8724b0fada984596856d1a6ebafd3584654b94"
Expand Down Expand Up @@ -3554,13 +3501,6 @@ pkg-dir@^4.1.0:
dependencies:
find-up "^4.0.0"

pkg-up@^3.1.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/pkg-up/-/pkg-up-3.1.0.tgz#100ec235cc150e4fd42519412596a28512a0def5"
integrity sha512-nDywThFk1i4BQK4twPQ6TA4RT8bDY96yeuCVBWL3ePARCiEKDRSrNGbFIgUJpLp+XeIR65v8ra7WuJOFUBtkMA==
dependencies:
find-up "^3.0.0"

platform@1.3.6:
version "1.3.6"
resolved "https://registry.yarnpkg.com/platform/-/platform-1.3.6.tgz#48b4ce983164b209c2d45a107adb31f473a6e7a7"
Expand Down Expand Up @@ -4011,11 +3951,6 @@ repeat-string@^1.6.1:
resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637"
integrity sha1-jcrkcOHIirwtYA//Sndihtp15jc=

reselect@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/reselect/-/reselect-4.0.0.tgz#f2529830e5d3d0e021408b246a206ef4ea4437f7"
integrity sha512-qUgANli03jjAyGlnbYVAV5vvnOmJnODyABz51RdBN7M4WaVu8mecZWgyQNkG8Yqe3KRGRt0l4K4B3XVEULC4CA==

resolve-url-loader@3.1.2:
version "3.1.2"
resolved "https://registry.yarnpkg.com/resolve-url-loader/-/resolve-url-loader-3.1.2.tgz#235e2c28e22e3e432ba7a5d4e305c59a58edfc08"
Expand All @@ -4037,14 +3972,6 @@ resolve-url@^0.2.1:
resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a"
integrity sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=

resolve@^1.13.1:
version "1.19.0"
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.19.0.tgz#1af5bf630409734a067cae29318aac7fa29a267c"
integrity sha512-rArEXAgsBG4UgRGcynxWIWKFvh/XZCcS8UJdHhwy91zwAvCZIbcs+vAbflgBnNjYMs/i/i+/Ux6IZhML1yPvxg==
dependencies:
is-core-module "^2.1.0"
path-parse "^1.0.6"

ret@~0.1.10:
version "0.1.15"
resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc"
Expand Down

0 comments on commit a685111

Please sign in to comment.