diff --git a/.gitignore b/.gitignore index 7796e86..d25d627 100644 --- a/.gitignore +++ b/.gitignore @@ -22,4 +22,5 @@ npm-debug.log* yarn-debug.log* yarn-error.log* +.bin lib diff --git a/.prettierrc b/.prettierrc deleted file mode 100644 index db0be48..0000000 --- a/.prettierrc +++ /dev/null @@ -1,5 +0,0 @@ -{ - "proseWrap": "always", - "singleQuote": true, - "trailingComma": "none" -} diff --git a/.storybook/main.js b/.storybook/main.js index 125917c..2585429 100644 --- a/.storybook/main.js +++ b/.storybook/main.js @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + module.exports = { stories: [ "../src/stories/**/*.stories.@(js|jsx|ts|tsx|mdx)", diff --git a/.storybook/preview.js b/.storybook/preview.js index d554ce7..c949f8a 100644 --- a/.storybook/preview.js +++ b/.storybook/preview.js @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + export const parameters = { actions: { argTypesRegex: "^on[A-Z].*" }, } diff --git a/Makefile b/Makefile index 4861f9f..28d4e9d 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,18 @@ -format: node_modules +format: .bin/ory node_modules # formats the source code + .bin/ory dev headers license --exclude=rollup.config.js --exclude=css/express.d.ts npm exec -- prettier --write . +help: # prints all make targets + cat Makefile | grep '^[^ ]*:' | grep -v '^\.bin/' | grep -v '.SILENT:' | grep -v '^node_modules:' | grep -v help | sed 's/:.*#/#/' | column -s "#" -t + +.bin/ory: Makefile + curl https://raw.githubusercontent.com/ory/meta/master/install.sh | bash -s -- -b .bin ory v0.1.47 + touch .bin/ory + node_modules: package-lock.json npm ci + touch node_modules + + +.SILENT: +.DEFAULT_GOAL := help diff --git a/css/express.js b/css/express.js index 1aa3058..9c93bda 100644 --- a/css/express.js +++ b/css/express.js @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + const postcss = require("postcss") const postcssPresetEnv = require("postcss-preset-env") diff --git a/src/index.ts b/src/index.ts index dc33ded..aa37044 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,2 +1,5 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + export * from "./theme" export * from "./components" diff --git a/src/theme/alertStyles.ts b/src/theme/alertStyles.ts index 57e3db1..d44a38f 100644 --- a/src/theme/alertStyles.ts +++ b/src/theme/alertStyles.ts @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + import { ThemeProps } from "./helpers" export interface AlertStyles extends ThemeProps { diff --git a/src/theme/buttonStyles.ts b/src/theme/buttonStyles.ts index d6c96ee..7e2e9d3 100644 --- a/src/theme/buttonStyles.ts +++ b/src/theme/buttonStyles.ts @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + import { ThemeProps, typographyButtonStyles, wrapCss } from "./index" export interface ButtonStyles extends ThemeProps { diff --git a/src/theme/cardStyles.ts b/src/theme/cardStyles.ts index bed1584..0ea8634 100644 --- a/src/theme/cardStyles.ts +++ b/src/theme/cardStyles.ts @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + import { ThemeProps } from "./index" export interface CardStyles extends ThemeProps { diff --git a/src/theme/checkboxStyles.ts b/src/theme/checkboxStyles.ts index 0df437c..18f81e3 100644 --- a/src/theme/checkboxStyles.ts +++ b/src/theme/checkboxStyles.ts @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + import { ThemeProps, typographyH3Styles, diff --git a/src/theme/codeBoxStyles.ts b/src/theme/codeBoxStyles.ts index 15288ac..12896a3 100644 --- a/src/theme/codeBoxStyles.ts +++ b/src/theme/codeBoxStyles.ts @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + import { ThemeProps, wrapCss } from "./index" export const codeBoxStyles = ({ theme }: ThemeProps) => ` diff --git a/src/theme/forkMeStyles.ts b/src/theme/forkMeStyles.ts index ec10b9c..a0fc4ef 100644 --- a/src/theme/forkMeStyles.ts +++ b/src/theme/forkMeStyles.ts @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + import { ThemeProps, typographyH3Styles, diff --git a/src/theme/globalStyles.ts b/src/theme/globalStyles.ts index aea97db..5de94f6 100644 --- a/src/theme/globalStyles.ts +++ b/src/theme/globalStyles.ts @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + import { createGlobalStyle } from "styled-components" import normalize from "./normalizeStyles" import { ThemeProps } from "./helpers" diff --git a/src/theme/helpers.ts b/src/theme/helpers.ts index 9525404..7ec41f6 100644 --- a/src/theme/helpers.ts +++ b/src/theme/helpers.ts @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + import { ThemeProps as StyledThemeProps } from "styled-components" export const theme = { diff --git a/src/theme/index.ts b/src/theme/index.ts index 6c224f8..a628d68 100644 --- a/src/theme/index.ts +++ b/src/theme/index.ts @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + export * from "./buttonStyles" export * from "./linkButtonStyles" export * from "./typographyStyles" diff --git a/src/theme/linkButtonStyles.ts b/src/theme/linkButtonStyles.ts index 555acbc..eb52c8b 100644 --- a/src/theme/linkButtonStyles.ts +++ b/src/theme/linkButtonStyles.ts @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + import { ThemeProps, typographyButtonStyles, wrapCss } from "./index" export interface LinkButtonStyles extends ThemeProps { diff --git a/src/theme/messageStyles.ts b/src/theme/messageStyles.ts index e747fd2..ecf2da1 100644 --- a/src/theme/messageStyles.ts +++ b/src/theme/messageStyles.ts @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + import { codeBoxStyles, ThemeProps, typographyH3Styles, wrapCss } from "./index" export const messageStyles = (props: ThemeProps) => ` diff --git a/src/theme/normalizeStyles.ts b/src/theme/normalizeStyles.ts index 1a09f9b..a7d12ac 100644 --- a/src/theme/normalizeStyles.ts +++ b/src/theme/normalizeStyles.ts @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + import { css } from "styled-components" export const cssNormalize = ` diff --git a/src/theme/textInputStyles.ts b/src/theme/textInputStyles.ts index 15b5838..7607d5b 100644 --- a/src/theme/textInputStyles.ts +++ b/src/theme/textInputStyles.ts @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + import { messageStyles, ThemeProps, diff --git a/src/theme/typographyStyles.ts b/src/theme/typographyStyles.ts index b6073c7..4efe847 100644 --- a/src/theme/typographyStyles.ts +++ b/src/theme/typographyStyles.ts @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + import { ThemeProps, wrapCss } from "./index" const geometricPrecision = ({ theme }: ThemeProps) =>