uibee 2.12.1 → 2.12.2

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": "uibee",
3
- "version": "2.12.1",
3
+ "version": "2.12.2",
4
4
  "description": "Shared components, functions and hooks for reuse across Login projects",
5
5
  "homepage": "https://github.com/Login-Linjeforening-for-IT/uibee#readme",
6
6
  "bugs": {
@@ -103,6 +103,7 @@ function CheckboxItem(props: CheckboxItemProps) {
103
103
  <InputLabel
104
104
  label={label}
105
105
  name={name}
106
+ disabled={inputProps.disabled}
106
107
  className='select-none cursor-pointer'
107
108
  />
108
109
  )}
@@ -92,6 +92,7 @@ function RadioItem(props: RadioItemProps) {
92
92
  <InputLabel
93
93
  label={label}
94
94
  name={name}
95
+ disabled={inputProps.disabled}
95
96
  className='select-none cursor-pointer'
96
97
  />
97
98
  )}
@@ -10,6 +10,7 @@ interface FieldWrapperProps {
10
10
  info?: string
11
11
  error?: string
12
12
  description?: string
13
+ textSize?: 'sm' | 'md'
13
14
  children: ReactNode
14
15
  className?: string
15
16
  }
@@ -21,6 +22,7 @@ export default function FieldWrapper({
21
22
  info,
22
23
  error,
23
24
  description,
25
+ textSize = 'sm',
24
26
  children,
25
27
  className,
26
28
  }: FieldWrapperProps) {
@@ -33,7 +35,7 @@ export default function FieldWrapper({
33
35
  label={label}
34
36
  name={name}
35
37
  required={required}
36
- className='ml-1'
38
+ className={`ml-1 ${textSize === 'sm' ? 'text-sm!' : 'text-base!'}`}
37
39
  />
38
40
  )}
39
41
  {info && <InputInfo info={info} />}