baseui 0.0.0-next-2141a82 → 0.0.0-next-1b8709e

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.
@@ -41,7 +41,11 @@ const ListItem = /*#__PURE__*/React.forwardRef((props, ref) => {
41
41
  return /*#__PURE__*/React.createElement(Root // flowlint-next-line unclear-type:off
42
42
  , _extends({
43
43
  ref: ref,
44
- $shape: props.shape || SHAPE.DEFAULT
44
+ $shape: props.shape || SHAPE.DEFAULT,
45
+ "aria-label": props['aria-label'],
46
+ "aria-selected": props['aria-selected'],
47
+ id: props.id,
48
+ role: props.role
45
49
  }, rootProps), Artwork && /*#__PURE__*/React.createElement(ArtworkContainer, _extends({
46
50
  $artworkSize: artworkSize,
47
51
  $sublist: Boolean(props.sublist)
@@ -11,9 +11,13 @@ const MenuAdapter = /*#__PURE__*/React.forwardRef((props, ref) => {
11
11
  return /*#__PURE__*/React.createElement(ListItem, {
12
12
  ref: ref,
13
13
  sublist: props.sublist || props.$size === 'compact',
14
+ "aria-label": props['aria-label'],
15
+ "aria-selected": props['aria-selected'],
14
16
  artwork: props.artwork,
15
17
  artworkSize: props.artworkSize,
16
18
  endEnhancer: props.endEnhancer,
19
+ id: props.id,
20
+ role: props.role,
17
21
  overrides: mergeOverrides({
18
22
  Root: {
19
23
  props: {
@@ -69,7 +69,11 @@ var ListItem = /*#__PURE__*/React.forwardRef(function (props, ref) {
69
69
  return /*#__PURE__*/React.createElement(Root // flowlint-next-line unclear-type:off
70
70
  , _extends({
71
71
  ref: ref,
72
- $shape: props.shape || SHAPE.DEFAULT
72
+ $shape: props.shape || SHAPE.DEFAULT,
73
+ "aria-label": props['aria-label'],
74
+ "aria-selected": props['aria-selected'],
75
+ id: props.id,
76
+ role: props.role
73
77
  }, rootProps), Artwork && /*#__PURE__*/React.createElement(ArtworkContainer, _extends({
74
78
  $artworkSize: artworkSize,
75
79
  $sublist: Boolean(props.sublist)
@@ -11,9 +11,13 @@ var MenuAdapter = /*#__PURE__*/React.forwardRef(function (props, ref) {
11
11
  return /*#__PURE__*/React.createElement(ListItem, {
12
12
  ref: ref,
13
13
  sublist: props.sublist || props.$size === 'compact',
14
+ "aria-label": props['aria-label'],
15
+ "aria-selected": props['aria-selected'],
14
16
  artwork: props.artwork,
15
17
  artworkSize: props.artworkSize,
16
18
  endEnhancer: props.endEnhancer,
19
+ id: props.id,
20
+ role: props.role,
17
21
  overrides: mergeOverrides({
18
22
  Root: {
19
23
  props: {
@@ -32,3 +32,12 @@ export class FormControl extends React.Component<
32
32
  FormControlProps,
33
33
  FormControlState
34
34
  > {}
35
+
36
+ export interface FormControlChildProps {
37
+ 'aria-describedby': string | null,
38
+ 'aria-errormessage': string | null,
39
+ key: React.Key,
40
+ disabled: boolean,
41
+ error: boolean,
42
+ positive: boolean
43
+ }
package/list/list-item.js CHANGED
@@ -78,7 +78,11 @@ var ListItem = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
78
78
  return /*#__PURE__*/_react.default.createElement(Root // flowlint-next-line unclear-type:off
79
79
  , _extends({
80
80
  ref: ref,
81
- $shape: props.shape || _constants.SHAPE.DEFAULT
81
+ $shape: props.shape || _constants.SHAPE.DEFAULT,
82
+ "aria-label": props['aria-label'],
83
+ "aria-selected": props['aria-selected'],
84
+ id: props.id,
85
+ role: props.role
82
86
  }, rootProps), Artwork && /*#__PURE__*/_react.default.createElement(ArtworkContainer, _extends({
83
87
  $artworkSize: artworkSize,
84
88
  $sublist: Boolean(props.sublist)
@@ -58,6 +58,10 @@ const ListItem = React.forwardRef<PropsT, HTMLLIElement>((props: PropsT, ref) =>
58
58
  // flowlint-next-line unclear-type:off
59
59
  ref={(ref: any)}
60
60
  $shape={props.shape || SHAPE.DEFAULT}
61
+ aria-label={props['aria-label']}
62
+ aria-selected={props['aria-selected']}
63
+ id={props.id}
64
+ role={props.role}
61
65
  {...rootProps}
62
66
  >
63
67
  {Artwork && (
@@ -29,9 +29,13 @@ var MenuAdapter = /*#__PURE__*/React.forwardRef(function (props, ref) {
29
29
  return /*#__PURE__*/React.createElement(_listItem.default, {
30
30
  ref: ref,
31
31
  sublist: props.sublist || props.$size === 'compact',
32
+ "aria-label": props['aria-label'],
33
+ "aria-selected": props['aria-selected'],
32
34
  artwork: props.artwork,
33
35
  artworkSize: props.artworkSize,
34
36
  endEnhancer: props.endEnhancer,
37
+ id: props.id,
38
+ role: props.role,
35
39
  overrides: (0, _overrides.mergeOverrides)({
36
40
  Root: {
37
41
  props: {
@@ -17,9 +17,13 @@ const MenuAdapter = React.forwardRef<MenuAdapterPropsT, HTMLLIElement>((props, r
17
17
  <ListItem
18
18
  ref={ref}
19
19
  sublist={props.sublist || props.$size === 'compact'}
20
+ aria-label={props['aria-label']}
21
+ aria-selected={props['aria-selected']}
20
22
  artwork={props.artwork}
21
23
  artworkSize={props.artworkSize}
22
24
  endEnhancer={props.endEnhancer}
25
+ id={props.id}
26
+ role={props.role}
23
27
  overrides={mergeOverrides(
24
28
  {
25
29
  Root: {
@@ -44,7 +44,11 @@ export type PropsT = {|
44
44
  shape?: ShapeT,
45
45
  children: React.Node,
46
46
  endEnhancer?: React.AbstractComponent<{}>,
47
+ 'aria-label'?: string,
48
+ 'aria-selected'?: boolean,
49
+ id?: String,
47
50
  overrides?: OverridesT,
51
+ role?: string,
48
52
  sublist?: boolean,
49
53
  |};
50
54
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "baseui",
3
- "version": "0.0.0-next-2141a82",
3
+ "version": "0.0.0-next-1b8709e",
4
4
  "description": "A React Component library implementing the Base design language",
5
5
  "keywords": [
6
6
  "react",