@@ -7,9 +7,10 @@ import { useProviderProps } from '../../../provider';
7
7
import { FormContext , useFormProps } from '../Form/Form' ;
8
8
import {
9
9
BaseProps ,
10
- BLOCK_STYLES ,
10
+ CONTAINER_STYLES ,
11
+ ContainerStyleProps ,
11
12
extractStyles ,
12
- OUTER_STYLES ,
13
+ Styles ,
13
14
tasty ,
14
15
} from '../../../tasty' ;
15
16
import { FieldWrapper } from '../FieldWrapper' ;
@@ -29,7 +30,6 @@ const WRAPPER_STYLES = {
29
30
'' : '1fr' ,
30
31
'has-sider' : 'max-content 1fr' ,
31
32
} ,
32
- placeItems : 'baseline start' ,
33
33
} ;
34
34
35
35
const CheckGroupElement = tasty ( {
@@ -52,8 +52,10 @@ const CheckGroupElement = tasty({
52
52
export interface CubeCheckboxGroupProps
53
53
extends BaseProps ,
54
54
AriaCheckboxGroupProps ,
55
- FormFieldProps {
55
+ FormFieldProps ,
56
+ ContainerStyleProps {
56
57
orientation ?: 'vertical' | 'horizontal' ;
58
+ inputStyles ?: Styles ;
57
59
}
58
60
59
61
function CheckboxGroup ( props : WithNullableValue < CubeCheckboxGroupProps > , ref ) {
@@ -78,19 +80,19 @@ function CheckboxGroup(props: WithNullableValue<CubeCheckboxGroupProps>, ref) {
78
80
requiredMark = true ,
79
81
tooltip,
80
82
labelSuffix,
83
+ inputStyles,
81
84
...otherProps
82
85
} = props ;
83
86
let domRef = useDOMRef ( ref ) ;
84
87
85
- let styles = extractStyles ( otherProps , OUTER_STYLES , WRAPPER_STYLES ) ;
86
- let groupStyles = extractStyles ( otherProps , BLOCK_STYLES ) ;
88
+ let styles = extractStyles ( otherProps , CONTAINER_STYLES , WRAPPER_STYLES ) ;
87
89
88
90
let state = useCheckboxGroupState ( props ) ;
89
91
let { groupProps, labelProps } = useCheckboxGroup ( props , state ) ;
90
92
91
93
let radioGroup = (
92
94
< CheckGroupElement
93
- styles = { groupStyles }
95
+ styles = { inputStyles }
94
96
mods = { {
95
97
horizontal : orientation === 'horizontal' ,
96
98
} }
0 commit comments