Skip to content

Commit

Permalink
chore: remove @griffel/react from peerDependencies (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
fredcerdrak authored Dec 4, 2023
1 parent c7e39e1 commit 270c791
Show file tree
Hide file tree
Showing 18 changed files with 45 additions and 49 deletions.
3 changes: 1 addition & 2 deletions components/password-input/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"author": "Axis Communications AB",
"name": "@axiscommunications/fluent-password-input",
"version": "8.5.0",
"description": "Password input for Fluent UI v9",
Expand All @@ -10,6 +9,7 @@
"directory": "components/password-input"
},
"license": "MIT",
"author": "Axis Communications AB",
"exports": {
".": {
"require": "./lib/cjs/index.js",
Expand Down Expand Up @@ -48,7 +48,6 @@
"@fluentui/react-components": "^9.41.0",
"@fluentui/react-icons": "^2.0.223",
"@fluentui/react-utilities": "^9.15.2",
"@griffel/react": "^1.5.18",
"react": ">=16.8.0 <19.0.0",
"react-dom": ">=16.8.0 <19.0.0"
},
Expand Down
3 changes: 1 addition & 2 deletions components/slider/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"author": "Axis Communications AB",
"name": "@axiscommunications/fluent-slider",
"version": "8.5.0",
"description": "Axis branded Slider",
Expand All @@ -10,6 +9,7 @@
"directory": "components/slider"
},
"license": "MIT",
"author": "Axis Communications AB",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
"files": [
Expand Down Expand Up @@ -41,7 +41,6 @@
"@fluentui/react-components": "^9.41.0",
"@fluentui/react-icons": "^2.0.223",
"@fluentui/react-utilities": "^9.15.2",
"@griffel/react": "^1.5.18",
"react": ">=16.8.0 <19.0.0",
"react-dom": ">=16.8.0 <19.0.0",
"scheduler": "^0.20.0"
Expand Down
3 changes: 1 addition & 2 deletions components/stepper/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"author": "Axis Communications AB",
"name": "@axiscommunications/fluent-stepper",
"version": "8.5.0",
"description": "Stepper for Fluent UI v9",
Expand All @@ -10,6 +9,7 @@
"directory": "components/stepper"
},
"license": "MIT",
"author": "Axis Communications AB",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"files": [
Expand Down Expand Up @@ -40,7 +40,6 @@
"@fluentui/react-components": "^9.41.0",
"@fluentui/react-icons": "^2.0.223",
"@fluentui/react-utilities": "^9.15.2",
"@griffel/react": "^1.5.18",
"react": ">=16.8.0 <19.0.0",
"react-dom": ">=16.8.0 <19.0.0",
"scheduler": "^0.20.0"
Expand Down
8 changes: 6 additions & 2 deletions components/stepper/src/step-symbol/use-step-symbol-styles.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import { makeStyles, mergeClasses, shorthands } from "@griffel/react";
import { tokens } from "@fluentui/react-components";
import {
makeStyles,
mergeClasses,
shorthands,
tokens,
} from "@fluentui/react-components";
import type { SlotClassNames } from "@fluentui/react-utilities";
import type { StepSymbolSlots, StepSymbolState } from "./step-symbol.types";

Expand Down
8 changes: 6 additions & 2 deletions components/stepper/src/step/use-step-styles.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import { makeStyles, mergeClasses, shorthands } from "@griffel/react";
import { tokens } from "@fluentui/react-components";
import {
makeStyles,
mergeClasses,
shorthands,
tokens,
} from "@fluentui/react-components";
import type { SlotClassNames } from "@fluentui/react-utilities";
import type { StepSlots, StepState } from "./step.types";

Expand Down
3 changes: 1 addition & 2 deletions components/topbar/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"author": "Axis Communications AB",
"name": "@axiscommunications/fluent-topbar",
"version": "8.5.0",
"description": "Axis branded TopBar",
Expand All @@ -10,6 +9,7 @@
"directory": "components/topbar"
},
"license": "MIT",
"author": "Axis Communications AB",
"exports": {
".": {
"require": "./lib/cjs/index.js",
Expand Down Expand Up @@ -49,7 +49,6 @@
"@fluentui/react-components": "^9.41.0",
"@fluentui/react-icons": "^2.0.223",
"@fluentui/react-utilities": "^9.15.2",
"@griffel/react": "^1.5.18",
"react": ">=16.8.0 <19.0.0",
"react-dom": ">=16.8.0 <19.0.0",
"scheduler": "^0.20.0"
Expand Down
5 changes: 2 additions & 3 deletions examples/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"author": "Axis Communications AB",
"name": "examples",
"version": "8.5.0",
"private": true,
Expand All @@ -11,6 +10,7 @@
"directory": "examples"
},
"license": "MIT",
"author": "Axis Communications AB",
"scripts": {
"build": "vite build",
"build:deploy": "pnpm run build && cp -r ./dist/. ../docs",
Expand All @@ -33,7 +33,6 @@
"@fluentui/react-components": "^9.41.0",
"@fluentui/react-context-selector": "^9.1.42",
"@fluentui/react-icons": "^2.0.223",
"@griffel/react": "^1.5.18",
"@vitejs/plugin-react": "^1.3.2",
"react": "^17.0.2",
"react-dom": "^17.0.2",
Expand All @@ -42,8 +41,8 @@
"vite": "^3.0.9"
},
"devDependencies": {
"@types/node": "^20.9.0",
"@playwright/test": "1.39.0",
"@types/node": "^20.9.0",
"@types/react": "^17.0.67",
"@types/react-dom": "^17.0.21",
"eslint": "^8.53.0",
Expand Down
3 changes: 1 addition & 2 deletions examples/src/landingpage/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { makeStyles, shorthands } from "@griffel/react";
import React from "react";
import { tokens } from "@fluentui/react-components";
import { makeStyles, shorthands, tokens } from "@fluentui/react-components";
import { useLayoutStyles } from "../styles/page";
import { WelcomeMessage } from "./welcome-message/welcome-message.component";
import { WelcomeImage } from "./welcome-image/welcome-image.component";
Expand Down
9 changes: 7 additions & 2 deletions examples/src/stories/icon-page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import * as AxisReactIcons from "@axiscommunications/fluent-icons";
import { AxisIconProps } from "@axiscommunications/fluent-icons";
import { Caption1, Input } from "@fluentui/react-components";
import { makeStyles, mergeClasses, shorthands } from "@griffel/react";
import {
Caption1,
Input,
makeStyles,
mergeClasses,
shorthands,
} from "@fluentui/react-components";
import React from "react";
import { PageHeader } from "../components/page-header";
import { SimpleHeader } from "../components/simple-header";
Expand Down
4 changes: 3 additions & 1 deletion examples/src/stories/theme-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,24 @@ import {
axisLightTheme,
} from "@axiscommunications/fluent-theme";
import {
makeStyles,
Menu,
MenuButton,
MenuItem,
MenuList,
MenuPopover,
MenuTrigger,
mergeClasses,
SelectTabData,
SelectTabEvent,
shorthands,
Switch,
Tab,
TabList,
Theme,
} from "@fluentui/react-components";
import { useAppContext } from "../context/ApplicationStateProvider";
import { DarkThemeRegular } from "@fluentui/react-icons";
import { makeStyles, mergeClasses, shorthands } from "@griffel/react";
import React, { memo, useCallback, useState } from "react";
import { PageHeader } from "../components/page-header";
import { SimpleHeader } from "../components/simple-header";
Expand Down
2 changes: 1 addition & 1 deletion examples/src/styles/static.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { makeStaticStyles } from "@griffel/react";
import { makeStaticStyles } from "@fluentui/react-components";

export const useStaticStyles = makeStaticStyles({
body: {
Expand Down
2 changes: 1 addition & 1 deletion hooks/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"author": "Axis Communications AB",
"name": "@axiscommunications/fluent-hooks",
"version": "8.5.0",
"description": "Hooks",
Expand All @@ -10,6 +9,7 @@
"directory": "hooks"
},
"license": "MIT",
"author": "Axis Communications AB",
"exports": {
".": {
"require": "./lib/cjs/index.js",
Expand Down
6 changes: 4 additions & 2 deletions icons/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"author": "Axis Communications AB",
"name": "@axiscommunications/fluent-icons",
"version": "8.5.0",
"description": "Icons",
Expand All @@ -10,6 +9,7 @@
"directory": "icons"
},
"license": "MIT",
"author": "Axis Communications AB",
"main": "lib/cjs/index.js",
"module": "lib/index.js",
"typings": "lib/index.d.ts",
Expand All @@ -36,6 +36,9 @@
"react:svg:optimize": "svgo --folder=./dist/react-svg --precision=2 --disable=removeViewBox,mergePaths",
"react:svg:unfill": "find ./dist/react-svg -type f -name '*.svg' -exec sed -i.bak 's/fill=\"none\"//g' '{}' \\; && find ./dist/react-svg -type f -name '*.bak' -delete"
},
"dependencies": {
"@griffel/react": "^1.5.18"
},
"devDependencies": {
"@svgr/core": "^5.5.0",
"@types/node": "^20.9.0",
Expand All @@ -50,7 +53,6 @@
"yargs": "^14.2.3"
},
"peerDependencies": {
"@griffel/react": "^1.5.18",
"react": ">=16.8.0 <19.0.0"
},
"packageManager": "[email protected]",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"author": "Axis Communications AB",
"name": "@axiscommunications/fluent-components",
"version": "8.5.0",
"private": true,
Expand All @@ -9,6 +8,7 @@
"url": "https://github.com/AxisCommunications/fluent-components.git"
},
"license": "MIT",
"author": "Axis Communications AB",
"scripts": {
"build": "pnpm -r build",
"check": "pnpm format:check && pnpm lint",
Expand Down
15 changes: 0 additions & 15 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion styles/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"author": "Axis Communications AB",
"name": "@axiscommunications/fluent-styles",
"version": "8.5.0",
"description": "Styles for Fluent UI v9",
Expand All @@ -10,6 +9,7 @@
"directory": "styles"
},
"license": "MIT",
"author": "Axis Communications AB",
"exports": {
".": {
"require": "./lib/cjs/index.js",
Expand Down
2 changes: 1 addition & 1 deletion theme/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"author": "Axis Communications AB",
"name": "@axiscommunications/fluent-theme",
"version": "8.5.0",
"description": "Theme for Fluent UI v9",
Expand All @@ -10,6 +9,7 @@
"directory": "theme"
},
"license": "MIT",
"author": "Axis Communications AB",
"exports": {
".": {
"require": "./lib/cjs/index.js",
Expand Down
14 changes: 7 additions & 7 deletions tools/package.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"author": "Axis Communications AB",
"name": "tools",
"version": "8.5.0",
"private": true,
"author": "Axis Communications AB",
"type": "module",
"scripts": {
"generate": "tsc",
"git:check-dirty": "git diff --quiet || (echo 'workspace dirty!'; git diff; exit 1)",
"lint:eslint": "eslint . --cache",
"lint": "pnpm run lint:eslint && pnpm run generate && pnpm run git:check-dirty"
},
"bin": {
"changelog": "generated/changelog/cli.js",
"commitlint": "generated/commitlint/cli.js",
"release": "generated/release/cli.js"
},
"scripts": {
"generate": "tsc",
"git:check-dirty": "git diff --quiet || (echo 'workspace dirty!'; git diff; exit 1)",
"lint": "pnpm run lint:eslint && pnpm run generate && pnpm run git:check-dirty",
"lint:eslint": "eslint . --cache"
},
"dependencies": {
"cmd-ts": "0.13.0",
"semver": "^7.5.4"
Expand Down

0 comments on commit 270c791

Please sign in to comment.