Skip to content

Commit

Permalink
chore!: remove "next" from package names
Browse files Browse the repository at this point in the history
  • Loading branch information
mfal committed Feb 6, 2024
1 parent b30ea14 commit 8cf3028
Show file tree
Hide file tree
Showing 63 changed files with 2,065 additions and 2,065 deletions.
3,680 changes: 1,840 additions & 1,840 deletions .pnp.cjs

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@mittwald/flow-next-project",
"name": "@mittwald/flow-project",
"private": true,
"version": "0.0.0",
"packageManager": "[email protected]",
Expand All @@ -11,12 +11,12 @@
"scripts": {
"build": "lerna run build",
"components:dev": "concurrently yarn:components:dev:base yarn:components:dev:watch",
"components:dev:base": "yarn workspace @mittwald/flow-next-components run dev",
"components:dev:watch": "yarn workspace @mittwald/flow-next-components run build:watch:dependents",
"components:dev:base": "yarn workspace @mittwald/flow-react-components run dev",
"components:dev:watch": "yarn workspace @mittwald/flow-react-components run build:watch:dependents",
"dev:init-githooks": "yarn dlx simple-git-hooks",
"docs:dev": "concurrently yarn:docs:dev:base yarn:docs:dev:watch",
"docs:dev:base": "yarn workspace @mittwald/flow-next-documentation run dev",
"docs:dev:watch": "yarn workspace @mittwald/flow-next-documentation run build:watch:dependents",
"docs:dev:base": "yarn workspace @mittwald/flow-documentation run dev",
"docs:dev:watch": "yarn workspace @mittwald/flow-documentation run build:watch:dependents",
"format": "prettier --write '**/*.{ts,tsx,yaml,yml,json,md,mdx,js,cjs,mjs,css}'",
"lint": "eslint .",
"test": "lerna run test"
Expand Down
2 changes: 1 addition & 1 deletion packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ All notable changes to this project will be documented in this file. See

# [0.1.0-alpha.1](https://github.com/mittwald/flow/compare/0.1.0-alpha.0...0.1.0-alpha.1) (2024-01-25)

**Note:** Version bump only for package @mittwald/flow-next-components
**Note:** Version bump only for package @mittwald/flow-react-components

# Change Log

Expand Down
2 changes: 1 addition & 1 deletion packages/components/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @mittwald/flow-next-components
# @mittwald/flow-react-components

This package is part of
[Flow – mittwald design system](https://mittwald.github.io/flow/). See the
Expand Down
8 changes: 4 additions & 4 deletions packages/components/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@mittwald/flow-next-components",
"name": "@mittwald/flow-react-components",
"version": "0.1.0-alpha.7",
"type": "module",
"description": "A React implementation of Flow, mittwald’s design system",
Expand Down Expand Up @@ -38,8 +38,8 @@
"scripts": {
"build": "run vite build --config vite.build.config.ts",
"build:deps": "",
"build:deps:run": "yarn run -T lerna run build:deps --scope=@mittwald/flow-next-components",
"build:watch:dependents": "yarn build:deps:run && run -T lerna watch --scope=@mittwald/flow-next-components --include-dependencies -- lerna run build:deps --scope=@mittwald/flow-next-components",
"build:deps:run": "yarn run -T lerna run build:deps --scope=@mittwald/flow-react-components",
"build:watch:dependents": "yarn build:deps:run && run -T lerna watch --scope=@mittwald/flow-react-components --include-dependencies -- lerna run build:deps --scope=@mittwald/flow-react-components",
"dev": "run storybook:start",
"storybook:build": "run storybook build",
"storybook:start": "run storybook dev -p 6006",
Expand All @@ -65,7 +65,7 @@
"@fortawesome/free-regular-svg-icons": "^6.5.1",
"@fortawesome/free-solid-svg-icons": "^6.5.1",
"@jest/globals": "^29.7.0",
"@mittwald/flow-next-design-tokens": "workspace:^",
"@mittwald/flow-design-tokens": "workspace:^",
"@nx/storybook": "^18.0.1",
"@storybook/addon-a11y": "^7.6.12",
"@storybook/addon-actions": "^7.6.12",
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/styles/index.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@forward "@fortawesome/fontawesome-svg-core/styles";
@forward "@mittwald/flow-next-design-tokens/css";
@forward "@mittwald/flow-design-tokens/css";
@forward "./reset";
@forward "./globals";
6 changes: 3 additions & 3 deletions packages/design-tokens/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file. See

# [0.1.0-alpha.7](https://github.com/mittwald/flow/compare/0.1.0-alpha.6...0.1.0-alpha.7) (2024-02-02)

**Note:** Version bump only for package @mittwald/flow-next-design-tokens
**Note:** Version bump only for package @mittwald/flow-design-tokens

# Change Log

Expand All @@ -14,7 +14,7 @@ All notable changes to this project will be documented in this file. See

# [0.1.0-alpha.6](https://github.com/mittwald/flow/compare/0.1.0-alpha.5...0.1.0-alpha.6) (2024-02-02)

**Note:** Version bump only for package @mittwald/flow-next-design-tokens
**Note:** Version bump only for package @mittwald/flow-design-tokens

# Change Log

Expand Down Expand Up @@ -59,7 +59,7 @@ All notable changes to this project will be documented in this file. See

# [0.1.0-alpha.1](https://github.com/mittwald/flow/compare/0.1.0-alpha.0...0.1.0-alpha.1) (2024-01-25)

**Note:** Version bump only for package @mittwald/flow-next-design-tokens
**Note:** Version bump only for package @mittwald/flow-design-tokens

# Change Log

Expand Down
2 changes: 1 addition & 1 deletion packages/design-tokens/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @mittwald/flow-next-design-tokens
# @mittwald/flow-design-tokens

This package is part of
[Flow – mittwald design system](https://mittwald.github.io/flow/). See the
Expand Down
2 changes: 1 addition & 1 deletion packages/design-tokens/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@mittwald/flow-next-design-tokens",
"name": "@mittwald/flow-design-tokens",
"version": "0.1.0-alpha.7",
"type": "module",
"description": "The design tokens used in Flow, mittwald’s design system",
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/mdx-components.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { MDXComponents } from "mdx/types";
import Heading from "@mittwald/flow-next-components/Heading";
import Heading from "@mittwald/flow-react-components/Heading";

export function useMDXComponents(components: MDXComponents): MDXComponents {
return {
Expand Down
10 changes: 5 additions & 5 deletions packages/docs/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "@mittwald/flow-next-documentation",
"name": "@mittwald/flow-documentation",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"build": "run next build",
"build:deps": "",
"build:deps:base": "yarn run -T lerna run build:deps --scope=@mittwald/flow-next-documentation",
"build:deps:run": "yarn run -T lerna run build:deps --scope=@mittwald/flow-next-documentation",
"build:deps:base": "yarn run -T lerna run build:deps --scope=@mittwald/flow-documentation",
"build:deps:run": "yarn run -T lerna run build:deps --scope=@mittwald/flow-documentation",
"build:imports": "yarn pnpify node --loader ts-node/esm dev/generateLiveCodeEditorGlobalImports.ts",
"build:watch:dependents": "yarn build:deps:run && run -T lerna watch --scope=@mittwald/flow-next-documentation --include-dependencies -- lerna run build:deps --scope=@mittwald/flow-next-documentation",
"build:watch:dependents": "yarn build:deps:run && run -T lerna watch --scope=@mittwald/flow-documentation --include-dependencies -- lerna run build:deps --scope=@mittwald/flow-documentation",
"dev": "run next dev",
"start": "run next start",
"test:tsc": "tsc --noEmit"
Expand All @@ -20,7 +20,7 @@
"@mdx-js/loader": "^3.0.0",
"@mdx-js/react": "^3.0.0",
"@mfalkenberg/react-live-ssr": "^4.1.7",
"@mittwald/flow-next-components": "workspace:^",
"@mittwald/flow-react-components": "workspace:^",
"@next/mdx": "^14.1.0",
"@types/mdx": "^2.0.11",
"clsx": "^2.1.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { FC, PropsWithChildren, ReactNode } from "react";
import Heading from "@mittwald/flow-next-components/Heading";
import Heading from "@mittwald/flow-react-components/Heading";
import styles from "./MainContent.module.css";

interface Props extends PropsWithChildren {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import React, { FC, Fragment, ReactElement, useId } from "react";
import Navigation, {
NavigationItem,
} from "@mittwald/flow-next-components/Navigation";
import Heading from "@mittwald/flow-next-components/Heading";
} from "@mittwald/flow-react-components/Navigation";
import Heading from "@mittwald/flow-react-components/Heading";
import { usePathname } from "next/navigation";
import styles from "./MainNavigation.module.scss";
import { MdxFile, SerializedMdxFile } from "@/lib/mdx/MdxFile";
Expand Down
6 changes: 3 additions & 3 deletions packages/docs/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import "@mittwald/flow-next-components/styles";
import "@mittwald/flow-react-components/styles";
import "./global.scss";
import "./layout.module.scss";
import type { Metadata } from "next";
import React, { FC, PropsWithChildren } from "react";
import MainNavigation from "@/app/_components/layout/MainNavigation/MainNavigation";
import clsx from "clsx";
import styles from "./layout.module.scss";
import Heading from "@mittwald/flow-next-components/Heading";
import Heading from "@mittwald/flow-react-components/Heading";
import { MdxFileFactory } from "@/lib/mdx/MdxFileFactory";
import Badge from "@mittwald/flow-next-components/Badge";
import Badge from "@mittwald/flow-react-components/Badge";

export const metadata: Metadata = {
title: "Flow – mittwald Design System",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The Flow React Component Library can be installed using a package manager like
`npm` or `yarn`.

```shell
yarn add @mittwald/flow-next-components
yarn add @mittwald/flow-react-components
```

All components are available in this one package for ease of dependency
Expand All @@ -28,5 +28,5 @@ You have to import the bundled stylesheet in order to get the correct component
styles. Add this line to your project's entry point.

```
import "@mittwald/flow-next-components/styles";
import "@mittwald/flow-react-components/styles";
```
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Avatar from "@mittwald/flow-next-components/Avatar";
import Initials from "@mittwald/flow-next-components/Initials";
import Avatar from "@mittwald/flow-react-components/Avatar";
import Initials from "@mittwald/flow-react-components/Initials";

<Row>
<Avatar size="m">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Avatar from "@mittwald/flow-next-components/Avatar";
import Initials from "@mittwald/flow-next-components/Initials";
import Avatar from "@mittwald/flow-react-components/Avatar";
import Initials from "@mittwald/flow-react-components/Initials";

<Avatar>
<Initials>Gillian Gopher</Initials>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Avatar from "@mittwald/flow-next-components/Avatar";
import { Image } from "@mittwald/flow-next-components/Image";
import Avatar from "@mittwald/flow-react-components/Avatar";
import { Image } from "@mittwald/flow-react-components/Image";

<Avatar>
<Image
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Avatar from "@mittwald/flow-next-components/Avatar";
import Initials from "@mittwald/flow-next-components/Initials";
import Avatar from "@mittwald/flow-react-components/Avatar";
import Initials from "@mittwald/flow-react-components/Initials";

<Row>
<Avatar size="s">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Badge from "@mittwald/flow-next-components/Badge";
import { Text } from "@mittwald/flow-next-components/Text";
import Icon from "@mittwald/flow-next-components/Icon";
import Badge from "@mittwald/flow-react-components/Badge";
import { Text } from "@mittwald/flow-react-components/Text";
import Icon from "@mittwald/flow-react-components/Icon";
import { faCirclePlay } from "@fortawesome/free-solid-svg-icons/faCirclePlay";

<Badge>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import Badge from "@mittwald/flow-next-components/Badge";
import Badge from "@mittwald/flow-react-components/Badge";

<Badge>Info</Badge>;
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import Badge from "@mittwald/flow-next-components/Badge";
import Badge from "@mittwald/flow-react-components/Badge";

<Badge />;
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Badge from "@mittwald/flow-next-components/Badge";
import Badge from "@mittwald/flow-react-components/Badge";

<Row>
<Badge variant="info">Info</Badge>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import Button from "@mittwald/flow-next-components/Button";
import Button from "@mittwald/flow-react-components/Button";

<Button>Button</Button>;
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Button from "@mittwald/flow-next-components/Button";
import Icon from "@mittwald/flow-next-components/Icon";
import Button from "@mittwald/flow-react-components/Button";
import Icon from "@mittwald/flow-react-components/Icon";
import faStar from "@fortawesome/free-regular-svg-icons/faStar";

<Button aria-label="Star item">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import Button from "@mittwald/flow-next-components/Button";
import Button from "@mittwald/flow-react-components/Button";

<Button small>Small Button</Button>;
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Button from "@mittwald/flow-next-components/Button";
import Button from "@mittwald/flow-react-components/Button";

<Row>
<Button variant="primary">Primary</Button>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import Checkbox from "@mittwald/flow-next-components/Checkbox";
import Checkbox from "@mittwald/flow-react-components/Checkbox";

<Checkbox>Activate spam protection</Checkbox>;
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import Heading from "@mittwald/flow-next-components/Heading";
import Heading from "@mittwald/flow-react-components/Heading";

<Heading>This is a heading</Heading>;
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Heading from "@mittwald/flow-next-components/Heading";
import Heading from "@mittwald/flow-react-components/Heading";

<>
<Heading level={1}>This is a level 1 heading</Heading>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Icon from "@mittwald/flow-next-components/Icon";
import Icon from "@mittwald/flow-react-components/Icon";
import { faStar } from "@fortawesome/free-regular-svg-icons/faStar";

<Icon faIcon={faStar} style={{ color: "var(--primary--color--800)" }} />;
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Icon from "@mittwald/flow-next-components/Icon";
import Icon from "@mittwald/flow-react-components/Icon";
import { faSnowboarding } from "@fortawesome/free-solid-svg-icons/faSnowboarding";
import { faSnowplow } from "@fortawesome/free-solid-svg-icons/faSnowplow";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Icon from "@mittwald/flow-next-components/Icon";
import Icon from "@mittwald/flow-react-components/Icon";
import faStar from "@fortawesome/free-regular-svg-icons/faStar";

<Icon faIcon={faStar} />;
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Icon from "@mittwald/flow-next-components/Icon";
import Icon from "@mittwald/flow-react-components/Icon";

() => {
const svgString = `\
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Icon from "@mittwald/flow-next-components/Icon";
import Icon from "@mittwald/flow-react-components/Icon";

<Icon>
<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Image } from "@mittwald/flow-next-components/Image";
import { Image } from "@mittwald/flow-react-components/Image";

<Image
src="https://cdn.shopify.com/s/files/1/2022/6883/products/[email protected]?v=1538235544"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import Label from "@mittwald/flow-next-components/Label";
import Label from "@mittwald/flow-react-components/Label";

<Label>This is a label</Label>;
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import LabeledValue from "@mittwald/flow-next-components/LabeledValue";
import Label from "@mittwald/flow-next-components/Label";
import Content from "@mittwald/flow-next-components/Content";
import CopyToClipboardButton from "@mittwald/flow-next-components/CopyToClipboardButton";
import LabeledValue from "@mittwald/flow-react-components/LabeledValue";
import Label from "@mittwald/flow-react-components/Label";
import Content from "@mittwald/flow-react-components/Content";
import CopyToClipboardButton from "@mittwald/flow-react-components/CopyToClipboardButton";

<LabeledValue>
<Label>Project ID</Label>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import LabeledValue from "@mittwald/flow-next-components/LabeledValue";
import Label from "@mittwald/flow-next-components/Label";
import Content from "@mittwald/flow-next-components/Content";
import LabeledValue from "@mittwald/flow-react-components/LabeledValue";
import Label from "@mittwald/flow-react-components/Label";
import Content from "@mittwald/flow-react-components/Content";

<LabeledValue>
<Label>Storage</Label>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import Link from "@mittwald/flow-next-components/Link";
import Link from "@mittwald/flow-react-components/Link";

<Link>This is a link</Link>;
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Navigation from "@mittwald/flow-next-components/Navigation";
import { NavigationItem } from "@mittwald/flow-next-components/Navigation";
import Navigation from "@mittwald/flow-react-components/Navigation";
import { NavigationItem } from "@mittwald/flow-react-components/Navigation";

<Navigation aria-label="Companies">
<NavigationItem href="https://www.apple.com">Apple</NavigationItem>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Navigation from "@mittwald/flow-next-components/Navigation";
import { NavigationItem } from "@mittwald/flow-next-components/Navigation";
import Icon from "@mittwald/flow-next-components/Icon";
import { Text } from "@mittwald/flow-next-components/Text";
import Navigation from "@mittwald/flow-react-components/Navigation";
import { NavigationItem } from "@mittwald/flow-react-components/Navigation";
import Icon from "@mittwald/flow-react-components/Icon";
import { Text } from "@mittwald/flow-react-components/Text";
import { faUser } from "@fortawesome/free-regular-svg-icons/faUser";
import { faHardDrive } from "@fortawesome/free-regular-svg-icons/faHardDrive";
import { faStar } from "@fortawesome/free-regular-svg-icons/faStar";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Note from "@mittwald/flow-next-components/Note";
import Heading from "@mittwald/flow-next-components/Heading";
import Content from "@mittwald/flow-next-components/Content";
import Icon from "@mittwald/flow-next-components/Icon";
import Note from "@mittwald/flow-react-components/Note";
import Heading from "@mittwald/flow-react-components/Heading";
import Content from "@mittwald/flow-react-components/Content";
import Icon from "@mittwald/flow-react-components/Icon";
import { faCirclePlay } from "@fortawesome/free-solid-svg-icons/faCirclePlay";

<Note>
Expand Down
Loading

1 comment on commit 8cf3028

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report for ./packages/components/

St.
Category Percentage Covered / Total
🟢 Statements 98.08% 102/104
🟢 Branches 93.55% 29/31
🟢 Functions 100% 27/27
🟢 Lines 98.06% 101/103

Test suite run success

52 tests passing in 9 suites.

Report generated by 🧪jest coverage report action from 8cf3028

Please sign in to comment.