@campxdev/shared 1.10.91 → 1.10.92

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@campxdev/shared",
3
- "version": "1.10.91",
3
+ "version": "1.10.92",
4
4
  "main": "./exports.ts",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -5,8 +5,9 @@ import {
5
5
  DisabledDeleteIcon,
6
6
  DisabledEditIcon,
7
7
  EditIcon,
8
- ViewIcon,
9
8
  PrintIcon,
9
+ RestoreIcon,
10
+ ViewIcon,
10
11
  } from './Icons'
11
12
 
12
13
  interface ButtonProps extends IconButtonProps {
@@ -120,6 +121,16 @@ export function DeleteButton({
120
121
  )
121
122
  }
122
123
 
124
+ export const RestoreButton = ({ ...props }: ButtonProps) => {
125
+ return (
126
+ <>
127
+ <Button {...props}>
128
+ <RestoreIcon />
129
+ </Button>
130
+ </>
131
+ )
132
+ }
133
+
123
134
  const StyledIconButton = styled(IconButton)<{
124
135
  actionType: 'delete' | 'edit' | 'view' | 'print'
125
136
  }>(({ theme, actionType }) => ({
@@ -98,6 +98,28 @@ export const DeleteIcon = () => {
98
98
  )
99
99
  }
100
100
 
101
+ export const RestoreIcon = () => {
102
+ return (
103
+ <>
104
+ <svg
105
+ xmlns="http://www.w3.org/2000/svg"
106
+ width="17.375"
107
+ height="17.375"
108
+ viewBox="0 0 17.375 17.375"
109
+ >
110
+ <path
111
+ id="Path_19300"
112
+ data-name="Path 19300"
113
+ d="M17.9,9.564A8.347,8.347,0,0,0,9.564,17.9a.333.333,0,0,0,.667,0,7.675,7.675,0,1,1,2.324,5.5h1.74a.333.333,0,1,0,0-.667h-2.5a.321.321,0,0,0-.08.016c-.01,0-.02,0-.03.006a.323.323,0,0,0-.076.042.312.312,0,0,0-.034.019s0,.006-.007.009a.9.9,0,0,0-.08.111s0,0,0,.007a.328.328,0,0,0-.025.129v2.5a.333.333,0,0,0,.667,0V23.914A8.337,8.337,0,1,0,17.9,9.564Z"
114
+ transform="translate(-9.214 -9.214)"
115
+ fill="#1c1c1c"
116
+ stroke="#1c1c1c"
117
+ stroke-width="0.7"
118
+ />
119
+ </svg>
120
+ </>
121
+ )
122
+ }
101
123
  export const DisabledEditIcon = () => {
102
124
  return (
103
125
  <svg
@@ -1,8 +1,9 @@
1
1
  export {
2
- ViewButton,
3
2
  DeleteButton,
4
3
  EditButton,
5
4
  PrintButton,
5
+ RestoreButton,
6
+ ViewButton,
6
7
  } from './IconButtons'
7
8
 
8
9
  export { DateRangeIcon } from './Icons'