Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*

.bin
lib
5 changes: 0 additions & 5 deletions .prettierrc

This file was deleted.

3 changes: 3 additions & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -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)",
Expand Down
3 changes: 3 additions & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
}
15 changes: 14 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -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
3 changes: 3 additions & 0 deletions css/express.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

const postcss = require("postcss")
const postcssPresetEnv = require("postcss-preset-env")

Expand Down
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

export * from "./theme"
export * from "./components"
3 changes: 3 additions & 0 deletions src/theme/alertStyles.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

import { ThemeProps } from "./helpers"

export interface AlertStyles extends ThemeProps {
Expand Down
3 changes: 3 additions & 0 deletions src/theme/buttonStyles.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
3 changes: 3 additions & 0 deletions src/theme/cardStyles.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

import { ThemeProps } from "./index"

export interface CardStyles extends ThemeProps {
Expand Down
3 changes: 3 additions & 0 deletions src/theme/checkboxStyles.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

import {
ThemeProps,
typographyH3Styles,
Expand Down
3 changes: 3 additions & 0 deletions src/theme/codeBoxStyles.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

import { ThemeProps, wrapCss } from "./index"

export const codeBoxStyles = ({ theme }: ThemeProps) => `
Expand Down
3 changes: 3 additions & 0 deletions src/theme/forkMeStyles.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

import {
ThemeProps,
typographyH3Styles,
Expand Down
3 changes: 3 additions & 0 deletions src/theme/globalStyles.ts
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
3 changes: 3 additions & 0 deletions src/theme/helpers.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

import { ThemeProps as StyledThemeProps } from "styled-components"

export const theme = {
Expand Down
3 changes: 3 additions & 0 deletions src/theme/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

export * from "./buttonStyles"
export * from "./linkButtonStyles"
export * from "./typographyStyles"
Expand Down
3 changes: 3 additions & 0 deletions src/theme/linkButtonStyles.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
3 changes: 3 additions & 0 deletions src/theme/messageStyles.ts
Original file line number Diff line number Diff line change
@@ -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) => `
Expand Down
3 changes: 3 additions & 0 deletions src/theme/normalizeStyles.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

import { css } from "styled-components"

export const cssNormalize = `
Expand Down
3 changes: 3 additions & 0 deletions src/theme/textInputStyles.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

import {
messageStyles,
ThemeProps,
Expand Down
3 changes: 3 additions & 0 deletions src/theme/typographyStyles.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

import { ThemeProps, wrapCss } from "./index"

const geometricPrecision = ({ theme }: ThemeProps) =>
Expand Down