Skip to content

Commit

Permalink
fix: remove duplications
Browse files Browse the repository at this point in the history
  • Loading branch information
ssagg committed Jun 7, 2024
1 parent 7bbb8bc commit 8ec9261
Show file tree
Hide file tree
Showing 12 changed files with 46 additions and 524 deletions.
357 changes: 24 additions & 333 deletions .pnp.cjs

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
7 changes: 1 addition & 6 deletions ui/image/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,20 @@
"license": "BSD-3-Clause",
"type": "module",
"main": "src/index.ts",
"dependencies": {
"@atls-ui-parts/image": "0.1.1",
"@atls-ui-parts/next-image": "0.1.2"
},
"devDependencies": {
"@emotion/react": "11.11.4",
"@emotion/styled": "11.11.5",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
"@types/styled-system": "5.1.22",
"next": "14.2.3",
"next": "14.1.0",
"react": "18.3.1",
"react-dom": "18.3.1",
"styled-system": "5.1.5"
},
"peerDependencies": {
"@emotion/react": "*",
"@emotion/styled": "*",
"next": "*",
"react": "*",
"react-dom": "*",
"styled-system": "*"
Expand Down
14 changes: 7 additions & 7 deletions ui/sidebar/src/expander/expander.element.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import React from 'react'
import { PropsWithChildren } from 'react'
import { FC } from 'react'
import { motion } from 'framer-motion'
import { useMemo } from 'react'
import React from 'react'
import { PropsWithChildren } from 'react'
import { FC } from 'react'
import { motion } from 'framer-motion'
import { useMemo } from 'react'

import { ExpanderElementProps } from './expander.interfaces'
import { expanderMotionVariants } from './expander.motion'
import { ExpanderElementProps } from './expander.interfaces.js'
import { expanderMotionVariants } from './expander.motion.js'

const ExpanderElement: FC<PropsWithChildren<ExpanderElementProps>> = ({ opened, ...props }) => {
const initial = useMemo(() => (opened ? 'visible' : 'hidden'), [opened])
Expand Down
14 changes: 7 additions & 7 deletions ui/sidebar/src/pinner/pinner.element.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import React from 'react'
import { PropsWithChildren } from 'react'
import { FC } from 'react'
import { motion } from 'framer-motion'
import { useMemo } from 'react'
import React from 'react'
import { PropsWithChildren } from 'react'
import { FC } from 'react'
import { motion } from 'framer-motion'
import { useMemo } from 'react'

import { PinnerElementProps } from './pinner.interface'
import { pinnerMotionVariants } from './pinner.motion'
import { PinnerElementProps } from './pinner.interface.js'
import { pinnerMotionVariants } from './pinner.motion.js'

const PinnerElement: FC<PropsWithChildren<PinnerElementProps>> = ({ opened, ...props }) => {
const initial = useMemo(() => (opened ? 'visible' : 'hidden'), [opened])
Expand Down
12 changes: 6 additions & 6 deletions ui/sidebar/src/switch/switch.component.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import styled from '@emotion/styled'
import styled from '@emotion/styled'

import React from 'react'
import { PropsWithChildren } from 'react'
import { FC } from 'react'
import React from 'react'
import { PropsWithChildren } from 'react'
import { FC } from 'react'

import { SwitchWrapperProps } from './switch.interface'
import { baseSwitchStyles } from './switch.styles'
import { SwitchWrapperProps } from './switch.interface.js'
import { baseSwitchStyles } from './switch.styles.js'

const Switch = styled.div(baseSwitchStyles)

Expand Down
166 changes: 1 addition & 165 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -539,17 +539,6 @@ __metadata:
languageName: node
linkType: hard

"@atls-ui-parts/image@npm:0.1.1":
version: 0.1.1
resolution: "@atls-ui-parts/image@npm:0.1.1"
peerDependencies:
"@emotion/styled": 11.11.0
react: 18.2.0
styled-system: 5.1.5
checksum: 10/bb6e9e0ced6d5c318a7d5733950611968613db53cbc98d36bbcb52ccbd38aa9d1596afb7ad827f569cfb96af44e303817f56f5fddf5a79ed437938323d6df89d
languageName: node
linkType: hard

"@atls-ui-parts/input@npm:0.1.1":
version: 0.1.1
resolution: "@atls-ui-parts/input@npm:0.1.1"
Expand Down Expand Up @@ -580,18 +569,6 @@ __metadata:
languageName: node
linkType: hard

"@atls-ui-parts/next-image@npm:0.1.2":
version: 0.1.2
resolution: "@atls-ui-parts/next-image@npm:0.1.2"
peerDependencies:
"@emotion/styled": 11.11.0
next: ^14.1.0
react: 18.2.0
styled-system: 5.1.5
checksum: 10/d1ff119ef8a38577c1097d53a9debb04e7f96913560e96146edbb6c52711bcd95ec045b4b7114814cb32804b48ec626ccbfffe2ae78d83a22e1820b31df4cdef
languageName: node
linkType: hard

"@atls-ui-parts/portal@npm:0.0.7":
version: 0.0.7
resolution: "@atls-ui-parts/portal@npm:0.0.7"
Expand Down Expand Up @@ -2066,139 +2043,69 @@ __metadata:
languageName: node
linkType: hard

"@next/env@npm:14.2.3":
version: 14.2.3
resolution: "@next/env@npm:14.2.3"
checksum: 10/82b445331d46b4896dc86c0e33a7eaaa6f6abfd2408d49e1cb90fbfd6b26c698ea8e69c911ffe597e30fd8294db4e3445cde44b0771eabbfcd13663a9832a397
languageName: node
linkType: hard

"@next/swc-darwin-arm64@npm:14.1.0":
version: 14.1.0
resolution: "@next/swc-darwin-arm64@npm:14.1.0"
conditions: os=darwin & cpu=arm64
languageName: node
linkType: hard

"@next/swc-darwin-arm64@npm:14.2.3":
version: 14.2.3
resolution: "@next/swc-darwin-arm64@npm:14.2.3"
conditions: os=darwin & cpu=arm64
languageName: node
linkType: hard

"@next/swc-darwin-x64@npm:14.1.0":
version: 14.1.0
resolution: "@next/swc-darwin-x64@npm:14.1.0"
conditions: os=darwin & cpu=x64
languageName: node
linkType: hard

"@next/swc-darwin-x64@npm:14.2.3":
version: 14.2.3
resolution: "@next/swc-darwin-x64@npm:14.2.3"
conditions: os=darwin & cpu=x64
languageName: node
linkType: hard

"@next/swc-linux-arm64-gnu@npm:14.1.0":
version: 14.1.0
resolution: "@next/swc-linux-arm64-gnu@npm:14.1.0"
conditions: os=linux & cpu=arm64 & libc=glibc
languageName: node
linkType: hard

"@next/swc-linux-arm64-gnu@npm:14.2.3":
version: 14.2.3
resolution: "@next/swc-linux-arm64-gnu@npm:14.2.3"
conditions: os=linux & cpu=arm64 & libc=glibc
languageName: node
linkType: hard

"@next/swc-linux-arm64-musl@npm:14.1.0":
version: 14.1.0
resolution: "@next/swc-linux-arm64-musl@npm:14.1.0"
conditions: os=linux & cpu=arm64 & libc=musl
languageName: node
linkType: hard

"@next/swc-linux-arm64-musl@npm:14.2.3":
version: 14.2.3
resolution: "@next/swc-linux-arm64-musl@npm:14.2.3"
conditions: os=linux & cpu=arm64 & libc=musl
languageName: node
linkType: hard

"@next/swc-linux-x64-gnu@npm:14.1.0":
version: 14.1.0
resolution: "@next/swc-linux-x64-gnu@npm:14.1.0"
conditions: os=linux & cpu=x64 & libc=glibc
languageName: node
linkType: hard

"@next/swc-linux-x64-gnu@npm:14.2.3":
version: 14.2.3
resolution: "@next/swc-linux-x64-gnu@npm:14.2.3"
conditions: os=linux & cpu=x64 & libc=glibc
languageName: node
linkType: hard

"@next/swc-linux-x64-musl@npm:14.1.0":
version: 14.1.0
resolution: "@next/swc-linux-x64-musl@npm:14.1.0"
conditions: os=linux & cpu=x64 & libc=musl
languageName: node
linkType: hard

"@next/swc-linux-x64-musl@npm:14.2.3":
version: 14.2.3
resolution: "@next/swc-linux-x64-musl@npm:14.2.3"
conditions: os=linux & cpu=x64 & libc=musl
languageName: node
linkType: hard

"@next/swc-win32-arm64-msvc@npm:14.1.0":
version: 14.1.0
resolution: "@next/swc-win32-arm64-msvc@npm:14.1.0"
conditions: os=win32 & cpu=arm64
languageName: node
linkType: hard

"@next/swc-win32-arm64-msvc@npm:14.2.3":
version: 14.2.3
resolution: "@next/swc-win32-arm64-msvc@npm:14.2.3"
conditions: os=win32 & cpu=arm64
languageName: node
linkType: hard

"@next/swc-win32-ia32-msvc@npm:14.1.0":
version: 14.1.0
resolution: "@next/swc-win32-ia32-msvc@npm:14.1.0"
conditions: os=win32 & cpu=ia32
languageName: node
linkType: hard

"@next/swc-win32-ia32-msvc@npm:14.2.3":
version: 14.2.3
resolution: "@next/swc-win32-ia32-msvc@npm:14.2.3"
conditions: os=win32 & cpu=ia32
languageName: node
linkType: hard

"@next/swc-win32-x64-msvc@npm:14.1.0":
version: 14.1.0
resolution: "@next/swc-win32-x64-msvc@npm:14.1.0"
conditions: os=win32 & cpu=x64
languageName: node
linkType: hard

"@next/swc-win32-x64-msvc@npm:14.2.3":
version: 14.2.3
resolution: "@next/swc-win32-x64-msvc@npm:14.2.3"
conditions: os=win32 & cpu=x64
languageName: node
linkType: hard

"@nodelib/fs.scandir@npm:2.1.5":
version: 2.1.5
resolution: "@nodelib/fs.scandir@npm:2.1.5"
Expand Down Expand Up @@ -2639,16 +2546,6 @@ __metadata:
languageName: node
linkType: hard

"@swc/helpers@npm:0.5.5":
version: 0.5.5
resolution: "@swc/helpers@npm:0.5.5"
dependencies:
"@swc/counter": "npm:^0.1.3"
tslib: "npm:^2.4.0"
checksum: 10/1c5ef04f642542212df28c669438f3e0f459dcde7b448a5b1fcafb2e9e4f13e76d8428535a270e91ed123dd2a21189dbed34086b88a8cf68baf84984d6d0e39b
languageName: node
linkType: hard

"@swc/types@npm:^0.1.5":
version: 0.1.7
resolution: "@swc/types@npm:0.1.7"
Expand Down Expand Up @@ -3309,21 +3206,18 @@ __metadata:
version: 0.0.0-use.local
resolution: "@ui/image@workspace:ui/image"
dependencies:
"@atls-ui-parts/image": "npm:0.1.1"
"@atls-ui-parts/next-image": "npm:0.1.2"
"@emotion/react": "npm:11.11.4"
"@emotion/styled": "npm:11.11.5"
"@types/react": "npm:18.3.3"
"@types/react-dom": "npm:18.3.0"
"@types/styled-system": "npm:5.1.22"
next: "npm:14.2.3"
next: "npm:14.1.0"
react: "npm:18.3.1"
react-dom: "npm:18.3.1"
styled-system: "npm:5.1.5"
peerDependencies:
"@emotion/react": "*"
"@emotion/styled": "*"
next: "*"
react: "*"
react-dom: "*"
styled-system: "*"
Expand Down Expand Up @@ -8498,64 +8392,6 @@ __metadata:
languageName: node
linkType: hard

"next@npm:14.2.3":
version: 14.2.3
resolution: "next@npm:14.2.3"
dependencies:
"@next/env": "npm:14.2.3"
"@next/swc-darwin-arm64": "npm:14.2.3"
"@next/swc-darwin-x64": "npm:14.2.3"
"@next/swc-linux-arm64-gnu": "npm:14.2.3"
"@next/swc-linux-arm64-musl": "npm:14.2.3"
"@next/swc-linux-x64-gnu": "npm:14.2.3"
"@next/swc-linux-x64-musl": "npm:14.2.3"
"@next/swc-win32-arm64-msvc": "npm:14.2.3"
"@next/swc-win32-ia32-msvc": "npm:14.2.3"
"@next/swc-win32-x64-msvc": "npm:14.2.3"
"@swc/helpers": "npm:0.5.5"
busboy: "npm:1.6.0"
caniuse-lite: "npm:^1.0.30001579"
graceful-fs: "npm:^4.2.11"
postcss: "npm:8.4.31"
styled-jsx: "npm:5.1.1"
peerDependencies:
"@opentelemetry/api": ^1.1.0
"@playwright/test": ^1.41.2
react: ^18.2.0
react-dom: ^18.2.0
sass: ^1.3.0
dependenciesMeta:
"@next/swc-darwin-arm64":
optional: true
"@next/swc-darwin-x64":
optional: true
"@next/swc-linux-arm64-gnu":
optional: true
"@next/swc-linux-arm64-musl":
optional: true
"@next/swc-linux-x64-gnu":
optional: true
"@next/swc-linux-x64-musl":
optional: true
"@next/swc-win32-arm64-msvc":
optional: true
"@next/swc-win32-ia32-msvc":
optional: true
"@next/swc-win32-x64-msvc":
optional: true
peerDependenciesMeta:
"@opentelemetry/api":
optional: true
"@playwright/test":
optional: true
sass:
optional: true
bin:
next: dist/bin/next
checksum: 10/666c9770206ce693732a6d772297f1ddb3ce72f59862fa4cd104c5536da596026f758c4c9256ea790cf22d1bb8a15e27e5ea9455c948f72a9e3ca61fb745b0f5
languageName: node
linkType: hard

"node-gyp@npm:latest":
version: 10.1.0
resolution: "node-gyp@npm:10.1.0"
Expand Down

0 comments on commit 8ec9261

Please # to comment.