Skip to content

Commit

Permalink
Removed old spinner
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkonst committed Sep 12, 2024
1 parent 0365c1d commit aa1b2cc
Show file tree
Hide file tree
Showing 11 changed files with 1,759 additions and 1,848 deletions.
3,354 changes: 1,704 additions & 1,650 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"babel-loader": "9.1.3",
"babel-plugin-annotate-pure-calls": "0.4.0",
"babel-plugin-styled-components": "2.1.4",
"cheerio": "1.0.0-rc.10",
"codecov": "3.8.3",
"enzyme": "3.11.0",
"enzyme-adapter-react-16": "1.15.8",
Expand Down
3 changes: 1 addition & 2 deletions packages/presentation/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ulms/ui-presentation",
"version": "1.10.1",
"version": "1.11.0",
"license": "MIT",
"main": "index.js",
"module": "es/index.js",
Expand All @@ -12,7 +12,6 @@
},
"dependencies": {
"@ulms/ui-icons": "^1.1.0",
"@ulms/ui-spinner": "^1.1.0",
"classnames-es": "2.2.6",
"lodash": "~4.17.21",
"prop-types": "^15.8.1",
Expand Down
3 changes: 2 additions & 1 deletion packages/presentation/src/presentation.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ import PropTypes from 'prop-types'
import scrollIntoView from 'scroll-into-view-if-needed'
import { Icons } from '@ulms/ui-icons'
import { SizeMe } from 'react-sizeme'
import { Spinner } from '@ulms/ui-spinner'
import { TransformWrapper, TransformComponent } from 'react-zoom-pan-pinch'

import { messagesIntl } from '../lang/index'

import Spinner from './spinner'

import css from './presentation.module.css'

function calculateSize(
Expand Down
14 changes: 14 additions & 0 deletions packages/presentation/src/spinner.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import React, { memo } from 'react'
import cn from 'classnames-es'

import css from './spinner.module.css'

function SpinnerComponent(props) {
const { fullscreen = true } = props

return <div className={cn(css.root, { [css.fullscreen]: fullscreen })} />
}

const Spinner = memo(SpinnerComponent)

export default Spinner
37 changes: 37 additions & 0 deletions packages/presentation/src/spinner.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
.root {
width: 60px;
height: 60px;
display: block;
position: relative;
margin: 30px auto;
}

@keyframes spinner {
to {
transform: rotate(360deg);
}
}

.root::before {
content: '';
width: 60px;
height: 60px;
margin-top: -30px;
margin-left: -30px;
box-sizing: border-box;
position: absolute;
top: 50%;
left: 50%;
border-radius: 50%;
border: 2px solid #eee;
border-top-color: #459ff3;
animation: spinner 0.6s linear infinite;
}

.fullscreen {
height: 100vh;
margin: 0 auto;
display: flex;
align-items: center;
justify-content: center;
}
2 changes: 0 additions & 2 deletions packages/spinner/index.js

This file was deleted.

19 changes: 0 additions & 19 deletions packages/spinner/package.json

This file was deleted.

25 changes: 0 additions & 25 deletions packages/spinner/src/spinner.jsx

This file was deleted.

137 changes: 0 additions & 137 deletions packages/spinner/src/spinner.module.css

This file was deleted.

12 changes: 0 additions & 12 deletions packages/spinner/src/spinner.stories.mdx

This file was deleted.

0 comments on commit aa1b2cc

Please sign in to comment.