@instructure/ui-list 10.26.1-snapshot-2 → 10.26.1

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.
Files changed (44) hide show
  1. package/CHANGELOG.md +2 -23
  2. package/es/InlineList/InlineListItem/index.js +6 -6
  3. package/es/InlineList/InlineListItem/props.js +13 -1
  4. package/es/InlineList/index.js +6 -9
  5. package/es/InlineList/props.js +13 -1
  6. package/es/List/ListItem/index.js +6 -6
  7. package/es/List/ListItem/props.js +12 -1
  8. package/es/List/index.js +6 -6
  9. package/es/List/props.js +14 -1
  10. package/lib/InlineList/InlineListItem/index.js +5 -5
  11. package/lib/InlineList/InlineListItem/props.js +13 -1
  12. package/lib/InlineList/index.js +5 -9
  13. package/lib/InlineList/props.js +14 -1
  14. package/lib/List/ListItem/index.js +5 -5
  15. package/lib/List/ListItem/props.js +12 -1
  16. package/lib/List/index.js +5 -5
  17. package/lib/List/props.js +15 -1
  18. package/package.json +15 -12
  19. package/src/InlineList/InlineListItem/index.tsx +4 -2
  20. package/src/InlineList/InlineListItem/props.ts +24 -1
  21. package/src/InlineList/index.tsx +4 -2
  22. package/src/InlineList/props.ts +31 -2
  23. package/src/List/ListItem/index.tsx +4 -2
  24. package/src/List/ListItem/props.ts +24 -1
  25. package/src/List/index.tsx +4 -2
  26. package/src/List/props.ts +33 -2
  27. package/tsconfig.build.json +2 -0
  28. package/tsconfig.build.tsbuildinfo +1 -1
  29. package/types/InlineList/InlineListItem/index.d.ts +1 -0
  30. package/types/InlineList/InlineListItem/index.d.ts.map +1 -1
  31. package/types/InlineList/InlineListItem/props.d.ts +3 -2
  32. package/types/InlineList/InlineListItem/props.d.ts.map +1 -1
  33. package/types/InlineList/index.d.ts +9 -0
  34. package/types/InlineList/index.d.ts.map +1 -1
  35. package/types/InlineList/props.d.ts +3 -2
  36. package/types/InlineList/props.d.ts.map +1 -1
  37. package/types/List/ListItem/index.d.ts +1 -0
  38. package/types/List/ListItem/index.d.ts.map +1 -1
  39. package/types/List/ListItem/props.d.ts +3 -2
  40. package/types/List/ListItem/props.d.ts.map +1 -1
  41. package/types/List/index.d.ts +10 -0
  42. package/types/List/index.d.ts.map +1 -1
  43. package/types/List/props.d.ts +3 -2
  44. package/types/List/props.d.ts.map +1 -1
package/CHANGELOG.md CHANGED
@@ -3,30 +3,9 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [10.26.1-snapshot-2](https://github.com/instructure/instructure-ui/compare/v10.26.0...v10.26.1-snapshot-2) (2025-10-06)
6
+ ## [10.26.1](https://github.com/instructure/instructure-ui/compare/v10.26.0...v10.26.1) (2025-10-06)
7
7
 
8
-
9
- ### Features
10
-
11
- * **many:** instUI v11 release ([36f5438](https://github.com/instructure/instructure-ui/commit/36f54382669186227ba24798bbf7201ef2f5cd4c))
12
-
13
-
14
- ### BREAKING CHANGES
15
-
16
- * **many:** InstUI v11 contains the following breaking changes:
17
- - React 16 and 17 are no longer supported
18
- - remove `PropTypes` from all packages
19
- - remove `CodeEditor` component
20
- - remove `@instui/theme-registry` package
21
- - remove `@testable`, `@experimental`, `@hack` decorators
22
- - InstUISettingsProvider's `as` prop is removed
23
- - `canvas.use()`, `canvasHighContrast.use()` functions are removed
24
- - `canvasThemeLocal`, `canvasHighContrastThemeLocal` are removed
25
- - `variables` field on theme objects are removed
26
- - remove deprecated props from Table: Row's `isStacked`, Body's
27
- `isStacked`, `hover`, and `headers`
28
- - `Table`'s `caption` prop is now required
29
- - `ui-dom-utils`'s `getComputedStyle` can now return `undefined`
8
+ **Note:** Version bump only for package @instructure/ui-list
30
9
 
31
10
 
32
11
 
@@ -1,6 +1,6 @@
1
1
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
2
2
  const _excluded = ["delimiter", "size", "margin", "padding", "elementRef", "children", "spacing", "styles", "lastPlaceholder"];
3
- var _dec, _class, _InlineListItem;
3
+ var _dec, _dec2, _class, _InlineListItem;
4
4
  /*
5
5
  * The MIT License (MIT)
6
6
  *
@@ -27,11 +27,12 @@ var _dec, _class, _InlineListItem;
27
27
 
28
28
  import { Component } from 'react';
29
29
  import { View } from '@instructure/ui-view';
30
+ import { testable } from '@instructure/ui-testable';
30
31
  import { passthroughProps } from '@instructure/ui-react-utils';
31
32
  import { withStyle } from '@instructure/emotion';
32
33
  import generateStyle from './styles';
33
34
  import generateComponentTheme from './theme';
34
- import { allowedProps } from './props';
35
+ import { propTypes, allowedProps } from './props';
35
36
  import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
36
37
  /**
37
38
  ---
@@ -39,7 +40,7 @@ parent: InlineList
39
40
  id: InlineList.Item
40
41
  ---
41
42
  **/
42
- let InlineListItem = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_InlineListItem = class InlineListItem extends Component {
43
+ let InlineListItem = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = (_InlineListItem = class InlineListItem extends Component {
43
44
  constructor(...args) {
44
45
  super(...args);
45
46
  this.ref = null;
@@ -80,19 +81,18 @@ let InlineListItem = (_dec = withStyle(generateStyle, generateComponentTheme), _
80
81
  display: "inline-block",
81
82
  maxWidth: "100%",
82
83
  elementRef: this.handleRef,
83
- "data-cid": "InlineListItem",
84
84
  children: [children, !lastPlaceholder && _jsx("span", {
85
85
  css: styles === null || styles === void 0 ? void 0 : styles.delimiter,
86
86
  "aria-hidden": "true"
87
87
  })]
88
88
  });
89
89
  }
90
- }, _InlineListItem.displayName = "InlineListItem", _InlineListItem.componentId = 'InlineList.Item', _InlineListItem.allowedProps = allowedProps, _InlineListItem.defaultProps = {
90
+ }, _InlineListItem.displayName = "InlineListItem", _InlineListItem.componentId = 'InlineList.Item', _InlineListItem.propTypes = propTypes, _InlineListItem.allowedProps = allowedProps, _InlineListItem.defaultProps = {
91
91
  padding: 'none',
92
92
  spacing: 'none',
93
93
  delimiter: 'none',
94
94
  size: 'medium',
95
95
  lastPlaceholder: false
96
- }, _InlineListItem)) || _class);
96
+ }, _InlineListItem)) || _class) || _class);
97
97
  export default InlineListItem;
98
98
  export { InlineListItem };
@@ -22,7 +22,19 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
 
25
+ import PropTypes from 'prop-types';
26
+
25
27
  // <unknown> is needed for React 17 compatibility
26
28
 
29
+ const propTypes = {
30
+ children: PropTypes.oneOfType([PropTypes.node, PropTypes.func]).isRequired,
31
+ delimiter: PropTypes.oneOf(['none', 'pipe', 'slash', 'arrow']),
32
+ size: PropTypes.oneOf(['small', 'medium', 'large']),
33
+ margin: PropTypes.string,
34
+ padding: PropTypes.string,
35
+ spacing: PropTypes.oneOf(['none', 'xxx-small', 'xx-small', 'x-small', 'small', 'medium', 'large', 'x-large', 'xx-large']),
36
+ elementRef: PropTypes.func,
37
+ lastPlaceholder: PropTypes.bool
38
+ };
27
39
  const allowedProps = ['children', 'delimiter', 'size', 'margin', 'padding', 'spacing', 'elementRef'];
28
- export { allowedProps };
40
+ export { propTypes, allowedProps };
@@ -1,5 +1,6 @@
1
1
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
2
2
  const _excluded = ["as", "margin", "elementRef"];
3
+ var _dec, _class, _InlineList;
3
4
  /*
4
5
  * The MIT License (MIT)
5
6
  *
@@ -26,8 +27,9 @@ const _excluded = ["as", "margin", "elementRef"];
26
27
  import { Children, Component } from 'react';
27
28
  import { View } from '@instructure/ui-view';
28
29
  import { passthroughProps, safeCloneElement } from '@instructure/ui-react-utils';
30
+ import { testable } from '@instructure/ui-testable';
29
31
  import { InlineListItem } from './InlineListItem';
30
- import { allowedProps } from './props';
32
+ import { propTypes, allowedProps } from './props';
31
33
  import { jsx as _jsx } from "@emotion/react/jsx-runtime";
32
34
  /**
33
35
  ---
@@ -35,7 +37,7 @@ category: components
35
37
  ---
36
38
 
37
39
  **/
38
- class InlineList extends Component {
40
+ let InlineList = (_dec = testable(), _dec(_class = (_InlineList = class InlineList extends Component {
39
41
  constructor(...args) {
40
42
  super(...args);
41
43
  this.ref = null;
@@ -74,20 +76,15 @@ class InlineList extends Component {
74
76
  padding: "0",
75
77
  elementRef: this.handleRef,
76
78
  display: "block",
77
- "data-cid": "InlineList",
78
79
  children: this.renderChildren()
79
80
  });
80
81
  }
81
- }
82
- InlineList.displayName = "InlineList";
83
- InlineList.allowedProps = allowedProps;
84
- InlineList.defaultProps = {
82
+ }, _InlineList.displayName = "InlineList", _InlineList.propTypes = propTypes, _InlineList.allowedProps = allowedProps, _InlineList.defaultProps = {
85
83
  itemSpacing: 'none',
86
84
  as: 'ul',
87
85
  margin: 'none',
88
86
  delimiter: 'none',
89
87
  size: 'medium'
90
- };
91
- InlineList.Item = InlineListItem;
88
+ }, _InlineList.Item = InlineListItem, _InlineList)) || _class);
92
89
  export default InlineList;
93
90
  export { InlineList };
@@ -22,5 +22,17 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
 
25
+ import PropTypes from 'prop-types';
26
+ import { Children as ChildrenPropTypes } from '@instructure/ui-prop-types';
27
+ import { InlineListItem } from './InlineListItem';
28
+ const propTypes = {
29
+ children: ChildrenPropTypes.oneOf([InlineListItem]),
30
+ as: PropTypes.oneOf(['ul', 'ol']),
31
+ margin: PropTypes.string,
32
+ size: PropTypes.oneOf(['small', 'medium', 'large']),
33
+ delimiter: PropTypes.oneOf(['none', 'pipe', 'slash', 'arrow']),
34
+ itemSpacing: PropTypes.oneOf(['none', 'xxx-small', 'xx-small', 'x-small', 'small', 'medium', 'large', 'x-large', 'xx-large']),
35
+ elementRef: PropTypes.func
36
+ };
25
37
  const allowedProps = ['children', 'as', 'margin', 'size', 'delimiter', 'itemSpacing', 'elementRef'];
26
- export { allowedProps };
38
+ export { propTypes, allowedProps };
@@ -1,6 +1,6 @@
1
1
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
2
2
  const _excluded = ["delimiter", "spacing", "size", "margin", "padding", "elementRef", "children", "styles"];
3
- var _dec, _class, _ListItem;
3
+ var _dec, _dec2, _class, _ListItem;
4
4
  /*
5
5
  * The MIT License (MIT)
6
6
  *
@@ -27,11 +27,12 @@ var _dec, _class, _ListItem;
27
27
 
28
28
  import { Component } from 'react';
29
29
  import { View } from '@instructure/ui-view';
30
+ import { testable } from '@instructure/ui-testable';
30
31
  import { passthroughProps } from '@instructure/ui-react-utils';
31
32
  import { withStyle } from '@instructure/emotion';
32
33
  import generateStyle from './styles';
33
34
  import generateComponentTheme from './theme';
34
- import { allowedProps } from './props';
35
+ import { propTypes, allowedProps } from './props';
35
36
  import { jsx as _jsx } from "@emotion/react/jsx-runtime";
36
37
  /**
37
38
  ---
@@ -39,7 +40,7 @@ parent: List
39
40
  id: List.Item
40
41
  ---
41
42
  **/
42
- let ListItem = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_ListItem = class ListItem extends Component {
43
+ let ListItem = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = (_ListItem = class ListItem extends Component {
43
44
  constructor(...args) {
44
45
  super(...args);
45
46
  this.ref = null;
@@ -78,15 +79,14 @@ let ListItem = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_c
78
79
  padding: padding,
79
80
  maxWidth: "100%",
80
81
  elementRef: this.handleRef,
81
- "data-cid": "ListItem",
82
82
  children: children
83
83
  });
84
84
  }
85
- }, _ListItem.displayName = "ListItem", _ListItem.componentId = 'List.Item', _ListItem.allowedProps = allowedProps, _ListItem.defaultProps = {
85
+ }, _ListItem.displayName = "ListItem", _ListItem.componentId = 'List.Item', _ListItem.propTypes = propTypes, _ListItem.allowedProps = allowedProps, _ListItem.defaultProps = {
86
86
  padding: 'none',
87
87
  spacing: 'none',
88
88
  delimiter: 'none',
89
89
  size: 'medium'
90
- }, _ListItem)) || _class);
90
+ }, _ListItem)) || _class) || _class);
91
91
  export default ListItem;
92
92
  export { ListItem };
@@ -22,7 +22,18 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
 
25
+ import PropTypes from 'prop-types';
26
+
25
27
  // <unknown> is needed for React 17 compatibility
26
28
 
29
+ const propTypes = {
30
+ children: PropTypes.oneOfType([PropTypes.node, PropTypes.func]).isRequired,
31
+ delimiter: PropTypes.oneOf(['none', 'dashed', 'solid']),
32
+ size: PropTypes.oneOf(['small', 'medium', 'large']),
33
+ margin: PropTypes.string,
34
+ padding: PropTypes.string,
35
+ spacing: PropTypes.oneOf(['none', 'xxx-small', 'xx-small', 'x-small', 'small', 'medium', 'large', 'x-large', 'xx-large']),
36
+ elementRef: PropTypes.func
37
+ };
27
38
  const allowedProps = ['children', 'delimiter', 'size', 'margin', 'padding', 'spacing', 'elementRef'];
28
- export { allowedProps };
39
+ export { propTypes, allowedProps };
package/es/List/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
2
2
  const _excluded = ["as", "margin", "isUnstyled", "elementRef", "styles"];
3
- var _dec, _class, _List;
3
+ var _dec, _dec2, _class, _List;
4
4
  /*
5
5
  * The MIT License (MIT)
6
6
  *
@@ -28,18 +28,19 @@ var _dec, _class, _List;
28
28
  import { Children, Component } from 'react';
29
29
  import { View } from '@instructure/ui-view';
30
30
  import { passthroughProps, safeCloneElement } from '@instructure/ui-react-utils';
31
+ import { testable } from '@instructure/ui-testable';
31
32
  import { ListItem } from './ListItem';
32
33
  import { withStyle } from '@instructure/emotion';
33
34
  import generateStyle from './styles';
34
35
  import generateComponentTheme from './theme';
35
- import { allowedProps } from './props';
36
+ import { propTypes, allowedProps } from './props';
36
37
  import { jsx as _jsx } from "@emotion/react/jsx-runtime";
37
38
  /**
38
39
  ---
39
40
  category: components
40
41
  ---
41
42
  **/
42
- let List = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_List = class List extends Component {
43
+ let List = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = (_List = class List extends Component {
43
44
  constructor(...args) {
44
45
  super(...args);
45
46
  this.ref = null;
@@ -86,16 +87,15 @@ let List = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class
86
87
  margin: margin,
87
88
  elementRef: this.handleRef,
88
89
  display: "block",
89
- "data-cid": "List",
90
90
  children: this.renderChildren()
91
91
  });
92
92
  }
93
- }, _List.displayName = "List", _List.componentId = 'List', _List.allowedProps = allowedProps, _List.defaultProps = {
93
+ }, _List.displayName = "List", _List.componentId = 'List', _List.propTypes = propTypes, _List.allowedProps = allowedProps, _List.defaultProps = {
94
94
  as: 'ul',
95
95
  delimiter: 'none',
96
96
  isUnstyled: false,
97
97
  size: 'medium',
98
98
  itemSpacing: 'none'
99
- }, _List.Item = ListItem, _List)) || _class);
99
+ }, _List.Item = ListItem, _List)) || _class) || _class);
100
100
  export default List;
101
101
  export { List, ListItem };
package/es/List/props.js CHANGED
@@ -22,5 +22,18 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
 
25
+ import PropTypes from 'prop-types';
26
+ import { Children as ChildrenPropTypes } from '@instructure/ui-prop-types';
27
+ import { ListItem } from './ListItem';
28
+ const propTypes = {
29
+ children: ChildrenPropTypes.oneOf([ListItem]),
30
+ as: PropTypes.oneOf(['ul', 'ol']),
31
+ delimiter: PropTypes.oneOf(['none', 'dashed', 'solid']),
32
+ isUnstyled: PropTypes.bool,
33
+ margin: PropTypes.string,
34
+ size: PropTypes.oneOf(['small', 'medium', 'large']),
35
+ itemSpacing: PropTypes.oneOf(['none', 'xxx-small', 'xx-small', 'x-small', 'small', 'medium', 'large', 'x-large', 'xx-large']),
36
+ elementRef: PropTypes.func
37
+ };
25
38
  const allowedProps = ['children', 'as', 'delimiter', 'isUnstyled', 'margin', 'size', 'itemSpacing', 'elementRef'];
26
- export { allowedProps };
39
+ export { propTypes, allowedProps };
@@ -8,6 +8,7 @@ exports.default = exports.InlineListItem = void 0;
8
8
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
9
9
  var _react = require("react");
10
10
  var _View = require("@instructure/ui-view/lib/View");
11
+ var _testable = require("@instructure/ui-testable/lib/testable.js");
11
12
  var _passthroughProps = require("@instructure/ui-react-utils/lib/passthroughProps.js");
12
13
  var _emotion = require("@instructure/emotion");
13
14
  var _styles = _interopRequireDefault(require("./styles"));
@@ -15,7 +16,7 @@ var _theme = _interopRequireDefault(require("./theme"));
15
16
  var _props = require("./props");
16
17
  var _jsxRuntime = require("@emotion/react/jsx-runtime");
17
18
  const _excluded = ["delimiter", "size", "margin", "padding", "elementRef", "children", "spacing", "styles", "lastPlaceholder"];
18
- var _dec, _class, _InlineListItem;
19
+ var _dec, _dec2, _class, _InlineListItem;
19
20
  /*
20
21
  * The MIT License (MIT)
21
22
  *
@@ -45,7 +46,7 @@ parent: InlineList
45
46
  id: InlineList.Item
46
47
  ---
47
48
  **/
48
- let InlineListItem = exports.InlineListItem = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_InlineListItem = class InlineListItem extends _react.Component {
49
+ let InlineListItem = exports.InlineListItem = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_InlineListItem = class InlineListItem extends _react.Component {
49
50
  constructor(...args) {
50
51
  super(...args);
51
52
  this.ref = null;
@@ -86,18 +87,17 @@ let InlineListItem = exports.InlineListItem = (_dec = (0, _emotion.withStyle)(_s
86
87
  display: "inline-block",
87
88
  maxWidth: "100%",
88
89
  elementRef: this.handleRef,
89
- "data-cid": "InlineListItem",
90
90
  children: [children, !lastPlaceholder && (0, _jsxRuntime.jsx)("span", {
91
91
  css: styles === null || styles === void 0 ? void 0 : styles.delimiter,
92
92
  "aria-hidden": "true"
93
93
  })]
94
94
  });
95
95
  }
96
- }, _InlineListItem.displayName = "InlineListItem", _InlineListItem.componentId = 'InlineList.Item', _InlineListItem.allowedProps = _props.allowedProps, _InlineListItem.defaultProps = {
96
+ }, _InlineListItem.displayName = "InlineListItem", _InlineListItem.componentId = 'InlineList.Item', _InlineListItem.propTypes = _props.propTypes, _InlineListItem.allowedProps = _props.allowedProps, _InlineListItem.defaultProps = {
97
97
  padding: 'none',
98
98
  spacing: 'none',
99
99
  delimiter: 'none',
100
100
  size: 'medium',
101
101
  lastPlaceholder: false
102
- }, _InlineListItem)) || _class);
102
+ }, _InlineListItem)) || _class) || _class);
103
103
  var _default = exports.default = InlineListItem;
@@ -1,9 +1,11 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
- exports.allowedProps = void 0;
7
+ exports.propTypes = exports.allowedProps = void 0;
8
+ var _propTypes = _interopRequireDefault(require("prop-types"));
7
9
  /*
8
10
  * The MIT License (MIT)
9
11
  *
@@ -30,4 +32,14 @@ exports.allowedProps = void 0;
30
32
 
31
33
  // <unknown> is needed for React 17 compatibility
32
34
 
35
+ const propTypes = exports.propTypes = {
36
+ children: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func]).isRequired,
37
+ delimiter: _propTypes.default.oneOf(['none', 'pipe', 'slash', 'arrow']),
38
+ size: _propTypes.default.oneOf(['small', 'medium', 'large']),
39
+ margin: _propTypes.default.string,
40
+ padding: _propTypes.default.string,
41
+ spacing: _propTypes.default.oneOf(['none', 'xxx-small', 'xx-small', 'x-small', 'small', 'medium', 'large', 'x-large', 'xx-large']),
42
+ elementRef: _propTypes.default.func,
43
+ lastPlaceholder: _propTypes.default.bool
44
+ };
33
45
  const allowedProps = exports.allowedProps = ['children', 'delimiter', 'size', 'margin', 'padding', 'spacing', 'elementRef'];
@@ -10,10 +10,12 @@ var _react = require("react");
10
10
  var _View = require("@instructure/ui-view/lib/View");
11
11
  var _passthroughProps = require("@instructure/ui-react-utils/lib/passthroughProps.js");
12
12
  var _safeCloneElement = require("@instructure/ui-react-utils/lib/safeCloneElement.js");
13
+ var _testable = require("@instructure/ui-testable/lib/testable.js");
13
14
  var _InlineListItem = require("./InlineListItem");
14
15
  var _props = require("./props");
15
16
  var _jsxRuntime = require("@emotion/react/jsx-runtime");
16
17
  const _excluded = ["as", "margin", "elementRef"];
18
+ var _dec, _class, _InlineList;
17
19
  /*
18
20
  * The MIT License (MIT)
19
21
  *
@@ -43,7 +45,7 @@ category: components
43
45
  ---
44
46
 
45
47
  **/
46
- class InlineList extends _react.Component {
48
+ let InlineList = exports.InlineList = (_dec = (0, _testable.testable)(), _dec(_class = (_InlineList = class InlineList extends _react.Component {
47
49
  constructor(...args) {
48
50
  super(...args);
49
51
  this.ref = null;
@@ -82,20 +84,14 @@ class InlineList extends _react.Component {
82
84
  padding: "0",
83
85
  elementRef: this.handleRef,
84
86
  display: "block",
85
- "data-cid": "InlineList",
86
87
  children: this.renderChildren()
87
88
  });
88
89
  }
89
- }
90
- exports.InlineList = InlineList;
91
- InlineList.displayName = "InlineList";
92
- InlineList.allowedProps = _props.allowedProps;
93
- InlineList.defaultProps = {
90
+ }, _InlineList.displayName = "InlineList", _InlineList.propTypes = _props.propTypes, _InlineList.allowedProps = _props.allowedProps, _InlineList.defaultProps = {
94
91
  itemSpacing: 'none',
95
92
  as: 'ul',
96
93
  margin: 'none',
97
94
  delimiter: 'none',
98
95
  size: 'medium'
99
- };
100
- InlineList.Item = _InlineListItem.InlineListItem;
96
+ }, _InlineList.Item = _InlineListItem.InlineListItem, _InlineList)) || _class);
101
97
  var _default = exports.default = InlineList;
@@ -1,9 +1,13 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
- exports.allowedProps = void 0;
7
+ exports.propTypes = exports.allowedProps = void 0;
8
+ var _propTypes = _interopRequireDefault(require("prop-types"));
9
+ var _Children = require("@instructure/ui-prop-types/lib/Children.js");
10
+ var _InlineListItem = require("./InlineListItem");
7
11
  /*
8
12
  * The MIT License (MIT)
9
13
  *
@@ -28,4 +32,13 @@ exports.allowedProps = void 0;
28
32
  * SOFTWARE.
29
33
  */
30
34
 
35
+ const propTypes = exports.propTypes = {
36
+ children: _Children.Children.oneOf([_InlineListItem.InlineListItem]),
37
+ as: _propTypes.default.oneOf(['ul', 'ol']),
38
+ margin: _propTypes.default.string,
39
+ size: _propTypes.default.oneOf(['small', 'medium', 'large']),
40
+ delimiter: _propTypes.default.oneOf(['none', 'pipe', 'slash', 'arrow']),
41
+ itemSpacing: _propTypes.default.oneOf(['none', 'xxx-small', 'xx-small', 'x-small', 'small', 'medium', 'large', 'x-large', 'xx-large']),
42
+ elementRef: _propTypes.default.func
43
+ };
31
44
  const allowedProps = exports.allowedProps = ['children', 'as', 'margin', 'size', 'delimiter', 'itemSpacing', 'elementRef'];
@@ -8,6 +8,7 @@ exports.default = exports.ListItem = void 0;
8
8
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
9
9
  var _react = require("react");
10
10
  var _View = require("@instructure/ui-view/lib/View");
11
+ var _testable = require("@instructure/ui-testable/lib/testable.js");
11
12
  var _passthroughProps = require("@instructure/ui-react-utils/lib/passthroughProps.js");
12
13
  var _emotion = require("@instructure/emotion");
13
14
  var _styles = _interopRequireDefault(require("./styles"));
@@ -15,7 +16,7 @@ var _theme = _interopRequireDefault(require("./theme"));
15
16
  var _props = require("./props");
16
17
  var _jsxRuntime = require("@emotion/react/jsx-runtime");
17
18
  const _excluded = ["delimiter", "spacing", "size", "margin", "padding", "elementRef", "children", "styles"];
18
- var _dec, _class, _ListItem;
19
+ var _dec, _dec2, _class, _ListItem;
19
20
  /*
20
21
  * The MIT License (MIT)
21
22
  *
@@ -45,7 +46,7 @@ parent: List
45
46
  id: List.Item
46
47
  ---
47
48
  **/
48
- let ListItem = exports.ListItem = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_ListItem = class ListItem extends _react.Component {
49
+ let ListItem = exports.ListItem = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_ListItem = class ListItem extends _react.Component {
49
50
  constructor(...args) {
50
51
  super(...args);
51
52
  this.ref = null;
@@ -84,14 +85,13 @@ let ListItem = exports.ListItem = (_dec = (0, _emotion.withStyle)(_styles.defaul
84
85
  padding: padding,
85
86
  maxWidth: "100%",
86
87
  elementRef: this.handleRef,
87
- "data-cid": "ListItem",
88
88
  children: children
89
89
  });
90
90
  }
91
- }, _ListItem.displayName = "ListItem", _ListItem.componentId = 'List.Item', _ListItem.allowedProps = _props.allowedProps, _ListItem.defaultProps = {
91
+ }, _ListItem.displayName = "ListItem", _ListItem.componentId = 'List.Item', _ListItem.propTypes = _props.propTypes, _ListItem.allowedProps = _props.allowedProps, _ListItem.defaultProps = {
92
92
  padding: 'none',
93
93
  spacing: 'none',
94
94
  delimiter: 'none',
95
95
  size: 'medium'
96
- }, _ListItem)) || _class);
96
+ }, _ListItem)) || _class) || _class);
97
97
  var _default = exports.default = ListItem;
@@ -1,9 +1,11 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
- exports.allowedProps = void 0;
7
+ exports.propTypes = exports.allowedProps = void 0;
8
+ var _propTypes = _interopRequireDefault(require("prop-types"));
7
9
  /*
8
10
  * The MIT License (MIT)
9
11
  *
@@ -30,4 +32,13 @@ exports.allowedProps = void 0;
30
32
 
31
33
  // <unknown> is needed for React 17 compatibility
32
34
 
35
+ const propTypes = exports.propTypes = {
36
+ children: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func]).isRequired,
37
+ delimiter: _propTypes.default.oneOf(['none', 'dashed', 'solid']),
38
+ size: _propTypes.default.oneOf(['small', 'medium', 'large']),
39
+ margin: _propTypes.default.string,
40
+ padding: _propTypes.default.string,
41
+ spacing: _propTypes.default.oneOf(['none', 'xxx-small', 'xx-small', 'x-small', 'small', 'medium', 'large', 'x-large', 'xx-large']),
42
+ elementRef: _propTypes.default.func
43
+ };
33
44
  const allowedProps = exports.allowedProps = ['children', 'delimiter', 'size', 'margin', 'padding', 'spacing', 'elementRef'];
package/lib/List/index.js CHANGED
@@ -17,6 +17,7 @@ var _react = require("react");
17
17
  var _View = require("@instructure/ui-view/lib/View");
18
18
  var _passthroughProps = require("@instructure/ui-react-utils/lib/passthroughProps.js");
19
19
  var _safeCloneElement = require("@instructure/ui-react-utils/lib/safeCloneElement.js");
20
+ var _testable = require("@instructure/ui-testable/lib/testable.js");
20
21
  var _ListItem = require("./ListItem");
21
22
  var _emotion = require("@instructure/emotion");
22
23
  var _styles = _interopRequireDefault(require("./styles"));
@@ -24,7 +25,7 @@ var _theme = _interopRequireDefault(require("./theme"));
24
25
  var _props = require("./props");
25
26
  var _jsxRuntime = require("@emotion/react/jsx-runtime");
26
27
  const _excluded = ["as", "margin", "isUnstyled", "elementRef", "styles"];
27
- var _dec, _class, _List;
28
+ var _dec, _dec2, _class, _List;
28
29
  /*
29
30
  * The MIT License (MIT)
30
31
  *
@@ -53,7 +54,7 @@ var _dec, _class, _List;
53
54
  category: components
54
55
  ---
55
56
  **/
56
- let List = exports.List = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_List = class List extends _react.Component {
57
+ let List = exports.List = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_List = class List extends _react.Component {
57
58
  constructor(...args) {
58
59
  super(...args);
59
60
  this.ref = null;
@@ -100,15 +101,14 @@ let List = exports.List = (_dec = (0, _emotion.withStyle)(_styles.default, _them
100
101
  margin: margin,
101
102
  elementRef: this.handleRef,
102
103
  display: "block",
103
- "data-cid": "List",
104
104
  children: this.renderChildren()
105
105
  });
106
106
  }
107
- }, _List.displayName = "List", _List.componentId = 'List', _List.allowedProps = _props.allowedProps, _List.defaultProps = {
107
+ }, _List.displayName = "List", _List.componentId = 'List', _List.propTypes = _props.propTypes, _List.allowedProps = _props.allowedProps, _List.defaultProps = {
108
108
  as: 'ul',
109
109
  delimiter: 'none',
110
110
  isUnstyled: false,
111
111
  size: 'medium',
112
112
  itemSpacing: 'none'
113
- }, _List.Item = _ListItem.ListItem, _List)) || _class);
113
+ }, _List.Item = _ListItem.ListItem, _List)) || _class) || _class);
114
114
  var _default = exports.default = List;
package/lib/List/props.js CHANGED
@@ -1,9 +1,13 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
- exports.allowedProps = void 0;
7
+ exports.propTypes = exports.allowedProps = void 0;
8
+ var _propTypes = _interopRequireDefault(require("prop-types"));
9
+ var _Children = require("@instructure/ui-prop-types/lib/Children.js");
10
+ var _ListItem = require("./ListItem");
7
11
  /*
8
12
  * The MIT License (MIT)
9
13
  *
@@ -28,4 +32,14 @@ exports.allowedProps = void 0;
28
32
  * SOFTWARE.
29
33
  */
30
34
 
35
+ const propTypes = exports.propTypes = {
36
+ children: _Children.Children.oneOf([_ListItem.ListItem]),
37
+ as: _propTypes.default.oneOf(['ul', 'ol']),
38
+ delimiter: _propTypes.default.oneOf(['none', 'dashed', 'solid']),
39
+ isUnstyled: _propTypes.default.bool,
40
+ margin: _propTypes.default.string,
41
+ size: _propTypes.default.oneOf(['small', 'medium', 'large']),
42
+ itemSpacing: _propTypes.default.oneOf(['none', 'xxx-small', 'xx-small', 'x-small', 'small', 'medium', 'large', 'x-large', 'xx-large']),
43
+ elementRef: _propTypes.default.func
44
+ };
31
45
  const allowedProps = exports.allowedProps = ['children', 'as', 'delimiter', 'isUnstyled', 'margin', 'size', 'itemSpacing', 'elementRef'];