Skip to content

Commit

Permalink
Merge branch 'develop' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
elbakerino committed Sep 21, 2023
2 parents 6be2850 + 5269cb4 commit 4ec9c86
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 23 deletions.
12 changes: 6 additions & 6 deletions packages/ctrls-progress/demo/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React from 'react'
import { render } from 'react-dom'
import { createRoot } from 'react-dom/client'
import { App } from './App'

render(
<React.Profiler id="Pickers Demo App" onRender={() => null}>
const root = document.querySelector('#root')
if(!root) throw new Error('Missing PWA root')
createRoot(root)
.render(<React.Profiler id="Pickers Demo App" onRender={() => null}>
<App/>
</React.Profiler>,
document.querySelector('#root'),
)
</React.Profiler>)
24 changes: 12 additions & 12 deletions packages/ctrls-progress/package-lock.json

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

6 changes: 3 additions & 3 deletions packages/ctrls-progress/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ui-controls/progress",
"version": "0.0.3",
"version": "0.0.4",
"description": "Material-UI Button + IconButton with progress (loading/error/success)",
"homepage": "https://bemit.codes",
"author": "Michael Becker <michael@bemit.codes>",
Expand Down Expand Up @@ -39,12 +39,12 @@
"@emotion/react": "^11.9.0",
"@emotion/styled": "^11.8.1",
"react": "^18.0",
"react-progress-state": "~0.2.3",
"react-progress-state": "~0.3.1",
"react-dom": "^18.0"
},
"peerDependencies": {
"@mui/material": "^5.1",
"react-progress-state": "~0.2.3",
"react-progress-state": "~0.2.3 || ~0.3.1",
"react": "^17.0.2 || ^18.0.0",
"react-dom": "^17.0.2 || ^18.0.0"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import Box from '@mui/material/Box'
import { buttonColors, ColorMap } from '@ui-controls/progress/buttonColors'
import { WithConfirmProps } from '@ui-controls/progress/ButtonConfirm'
import { SxProps } from '@mui/material'
import { useButtonProgress } from '@ui-controls/progress/useButtonProgress/useButtonProgress'
import { useButtonProgress } from '@ui-controls/progress/useButtonProgress'

export type ButtonProgressProps = Omit<ButtonProps, 'onClick'> & Partial<WithConfirmProps> & {
progress: ProgressStateValues
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { useTheme } from '@mui/material/styles'
import Box from '@mui/material/Box'
import { SxProps } from '@mui/material'
import { buttonColors, ColorMap } from '@ui-controls/progress/buttonColors'
import { useButtonProgress } from '@ui-controls/progress/useButtonProgress/useButtonProgress'
import { useButtonProgress } from '@ui-controls/progress/useButtonProgress'

export type IconButtonProgressConfirmProps = {
confirmIcon?: React.ReactNode
Expand Down
2 changes: 2 additions & 0 deletions packages/ctrls-progress/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ export * from './ButtonConfirm'
export * from './ButtonProgress'
export * from './IconButtonConfirm'
export * from './IconButtonProgress'
export * from './ListItemButtonConfirm'
export * from './useButtonProgress'
export * from './useWithConfirm'
export * from './useWithProgress'
1 change: 1 addition & 0 deletions packages/ctrls-progress/src/useButtonProgress/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './useButtonProgress'

0 comments on commit 4ec9c86

Please sign in to comment.