goobs-frontend 0.9.29 → 0.9.30

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": "goobs-frontend",
3
- "version": "0.9.29",
3
+ "version": "0.9.30",
4
4
  "type": "module",
5
5
  "description": "A comprehensive React-based libary that extends the functionality of Material-UI",
6
6
  "license": "MIT",
@@ -8,8 +8,10 @@ import {
8
8
  alpha,
9
9
  keyframes,
10
10
  } from '@mui/material'
11
- import { Typography } from './../../components/Typography'
12
- import { TypographyPropsVariantOverrides } from '@mui/material'
11
+ import {
12
+ Typography,
13
+ CustomTypographyVariant,
14
+ } from './../../components/Typography'
13
15
 
14
16
  const glowPulse = keyframes`
15
17
  0% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.5); }
@@ -23,7 +25,7 @@ const glowPulse = keyframes`
23
25
  export interface RadioOption {
24
26
  label: string
25
27
  fontColor?: string
26
- fontVariant?: string
28
+ fontVariant?: CustomTypographyVariant
27
29
  }
28
30
 
29
31
  /**
@@ -34,7 +36,7 @@ export interface RadioGroupProps {
34
36
  options: RadioOption[]
35
37
  defaultValue?: string
36
38
  name: string
37
- labelFontVariant?: keyof TypographyPropsVariantOverrides
39
+ labelFontVariant?: CustomTypographyVariant
38
40
  labelFontColor?: string
39
41
  labelText?: string
40
42
  sacredTheme?: boolean
@@ -91,9 +93,7 @@ const RadioGroup: React.FC<RadioGroupProps> = ({
91
93
  <Typography
92
94
  text={labelText || label}
93
95
  fontcolor={sacredTheme ? '#FFD700' : labelFontColor}
94
- fontvariant={
95
- labelFontVariant as keyof TypographyPropsVariantOverrides
96
- }
96
+ fontvariant={labelFontVariant}
97
97
  />
98
98
  </FormLabel>
99
99
  {/* Render the radio group */}
@@ -130,9 +130,7 @@ const RadioGroup: React.FC<RadioGroupProps> = ({
130
130
  fontcolor={
131
131
  sacredTheme ? alpha('#FFD700', 0.9) : option.fontColor
132
132
  }
133
- fontvariant={
134
- option.fontVariant as keyof TypographyPropsVariantOverrides
135
- }
133
+ fontvariant={option.fontVariant}
136
134
  sx={
137
135
  sacredTheme
138
136
  ? {