@campxdev/shared 0.6.15 → 0.6.17

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": "0.6.15",
3
+ "version": "0.6.17",
4
4
  "main": "./exports.ts",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -3,9 +3,8 @@ import React from 'react'
3
3
 
4
4
  interface ActionButtonProps extends ButtonProps {
5
5
  loading?: boolean
6
- variant: ButtonProps['variant']
7
- // [key: string]: any
8
- // variant?: any
6
+ [key: string]: any
7
+ variant?: any
9
8
  }
10
9
 
11
10
  export default function ActionButton({
@@ -12,7 +12,7 @@ import { Controller } from 'react-hook-form'
12
12
  import FormLabel from './FormLabel'
13
13
 
14
14
  interface Props extends RadioGroupProps {
15
- label: string
15
+ label?: ReactNode
16
16
  name: string
17
17
  control: any
18
18
  sx?: any
@@ -84,14 +84,7 @@ const RadioComponent = ({ label, required, row, options, name, field }) => {
84
84
  return (
85
85
  <>
86
86
  <Box>
87
- <Box sx={{ display: 'flex' }}>
88
- <Typography variant="subtitle2">{label}</Typography>
89
- {required && (
90
- <Typography fontSize={14} component={'span'} color="error">
91
- {' *'}
92
- </Typography>
93
- )}
94
- </Box>
87
+ {label && <FormLabel label={label} required={required} />}
95
88
  <MuiRadioGroup
96
89
  value={field.value}
97
90
  onChange={field.onChange}