@instructure/ui-list 8.8.0 → 8.8.1-snapshot.63

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 (78) hide show
  1. package/LICENSE.md +27 -0
  2. package/es/InlineList/InlineListItem/index.js +5 -38
  3. package/es/InlineList/InlineListItem/props.js +56 -0
  4. package/es/InlineList/index.js +2 -25
  5. package/{src/InlineList/InlineListItem/types.ts → es/InlineList/props.js} +26 -20
  6. package/es/List/ListItem/index.js +4 -37
  7. package/es/List/ListItem/props.js +56 -0
  8. package/es/List/index.js +4 -41
  9. package/es/List/props.js +60 -0
  10. package/lib/InlineList/InlineListItem/index.js +5 -38
  11. package/lib/InlineList/InlineListItem/props.js +68 -0
  12. package/lib/InlineList/index.js +3 -28
  13. package/lib/InlineList/props.js +65 -0
  14. package/lib/List/ListItem/index.js +4 -37
  15. package/lib/List/ListItem/props.js +68 -0
  16. package/lib/List/index.js +4 -42
  17. package/lib/List/props.js +74 -0
  18. package/package.json +15 -14
  19. package/src/InlineList/InlineListItem/index.tsx +8 -46
  20. package/src/InlineList/InlineListItem/props.ts +105 -0
  21. package/src/InlineList/InlineListItem/styles.ts +1 -1
  22. package/src/InlineList/InlineListItem/theme.ts +1 -1
  23. package/src/InlineList/index.tsx +5 -35
  24. package/src/InlineList/props.ts +102 -0
  25. package/src/List/ListItem/index.tsx +7 -45
  26. package/src/List/ListItem/props.ts +105 -0
  27. package/src/List/ListItem/styles.ts +1 -1
  28. package/src/List/ListItem/theme.ts +1 -1
  29. package/src/List/index.tsx +7 -48
  30. package/src/List/props.ts +111 -0
  31. package/src/List/styles.ts +1 -1
  32. package/src/List/theme.ts +1 -1
  33. package/src/index.ts +4 -4
  34. package/types/InlineList/InlineListItem/index.d.ts +19 -30
  35. package/types/InlineList/InlineListItem/index.d.ts.map +1 -1
  36. package/types/InlineList/InlineListItem/props.d.ts +20 -0
  37. package/types/InlineList/InlineListItem/props.d.ts.map +1 -0
  38. package/types/InlineList/InlineListItem/styles.d.ts +1 -1
  39. package/types/InlineList/InlineListItem/theme.d.ts +1 -1
  40. package/types/InlineList/InlineListItem/theme.d.ts.map +1 -1
  41. package/types/InlineList/index.d.ts +27 -23
  42. package/types/InlineList/index.d.ts.map +1 -1
  43. package/types/InlineList/props.d.ts +20 -0
  44. package/types/InlineList/props.d.ts.map +1 -0
  45. package/types/List/ListItem/index.d.ts +19 -30
  46. package/types/List/ListItem/index.d.ts.map +1 -1
  47. package/types/List/ListItem/props.d.ts +20 -0
  48. package/types/List/ListItem/props.d.ts.map +1 -0
  49. package/types/List/ListItem/styles.d.ts +1 -1
  50. package/types/List/ListItem/theme.d.ts +1 -1
  51. package/types/List/ListItem/theme.d.ts.map +1 -1
  52. package/types/List/index.d.ts +21 -35
  53. package/types/List/index.d.ts.map +1 -1
  54. package/types/List/props.d.ts +21 -0
  55. package/types/List/props.d.ts.map +1 -0
  56. package/types/List/styles.d.ts +1 -1
  57. package/types/List/theme.d.ts +1 -1
  58. package/types/List/theme.d.ts.map +1 -1
  59. package/types/index.d.ts +4 -4
  60. package/es/InlineList/InlineListItem/types.js +0 -1
  61. package/es/InlineList/types.js +0 -1
  62. package/es/List/ListItem/types.js +0 -1
  63. package/es/List/types.js +0 -1
  64. package/lib/InlineList/InlineListItem/types.js +0 -1
  65. package/lib/InlineList/types.js +0 -1
  66. package/lib/List/ListItem/types.js +0 -1
  67. package/lib/List/types.js +0 -1
  68. package/src/InlineList/types.ts +0 -43
  69. package/src/List/ListItem/types.ts +0 -45
  70. package/src/List/types.ts +0 -46
  71. package/types/InlineList/InlineListItem/types.d.ts +0 -12
  72. package/types/InlineList/InlineListItem/types.d.ts.map +0 -1
  73. package/types/InlineList/types.d.ts +0 -10
  74. package/types/InlineList/types.d.ts.map +0 -1
  75. package/types/List/ListItem/types.d.ts +0 -12
  76. package/types/List/ListItem/types.d.ts.map +0 -1
  77. package/types/List/types.d.ts +0 -13
  78. package/types/List/types.d.ts.map +0 -1
@@ -0,0 +1,60 @@
1
+ /*
2
+ * The MIT License (MIT)
3
+ *
4
+ * Copyright (c) 2015 - present Instructure, Inc.
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ * of this software and associated documentation files (the "Software"), to deal
8
+ * in the Software without restriction, including without limitation the rights
9
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ * copies of the Software, and to permit persons to whom the Software is
11
+ * furnished to do so, subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be included in all
14
+ * copies or substantial portions of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ * SOFTWARE.
23
+ */
24
+ import PropTypes from 'prop-types';
25
+ import { Children as ChildrenPropTypes } from '@instructure/ui-prop-types';
26
+ import { ThemeablePropTypes } from '@instructure/emotion';
27
+ import { ListItem } from './ListItem';
28
+ const propTypes = {
29
+ /**
30
+ * Only accepts `<List.Item>` as a child
31
+ */
32
+ children: ChildrenPropTypes.oneOf([ListItem]),
33
+ as: PropTypes.oneOf(['ul', 'ol']),
34
+
35
+ /**
36
+ * One of: none, dashed, solid
37
+ */
38
+ delimiter: PropTypes.oneOf(['none', 'dashed', 'solid']),
39
+
40
+ /**
41
+ * When set, renders the List Items without a list style type.
42
+ */
43
+ isUnstyled: PropTypes.bool,
44
+
45
+ /**
46
+ * Valid values are `0`, `none`, `auto`, `xxx-small`, `xx-small`, `x-small`,
47
+ * `small`, `medium`, `large`, `x-large`, `xx-large`. Apply these values via
48
+ * familiar CSS-like shorthand. For example: `margin="small auto large"`.
49
+ */
50
+ margin: ThemeablePropTypes.spacing,
51
+ size: PropTypes.oneOf(['small', 'medium', 'large']),
52
+
53
+ /**
54
+ * Sets the margin separating each ListItem.
55
+ */
56
+ itemSpacing: PropTypes.oneOf(['none', 'xxx-small', 'xx-small', 'x-small', 'small', 'medium', 'large', 'x-large', 'xx-large']),
57
+ elementRef: PropTypes.func
58
+ };
59
+ const allowedProps = ['children', 'as', 'delimiter', 'isUnstyled', 'margin', 'size', 'itemSpacing', 'elementRef'];
60
+ export { propTypes, allowedProps };
@@ -11,8 +11,6 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
11
11
 
12
12
  var _react = require("react");
13
13
 
14
- var _propTypes = _interopRequireDefault(require("prop-types"));
15
-
16
14
  var _View = require("@instructure/ui-view/lib/View");
17
15
 
18
16
  var _testable = require("@instructure/ui-testable/lib/testable.js");
@@ -25,6 +23,8 @@ var _styles = _interopRequireDefault(require("./styles"));
25
23
 
26
24
  var _theme = _interopRequireDefault(require("./theme"));
27
25
 
26
+ var _props = require("./props");
27
+
28
28
  const _excluded = ["delimiter", "size", "margin", "padding", "elementRef", "children", "spacing", "styles"];
29
29
 
30
30
  var _dec, _dec2, _class, _class2, _temp;
@@ -56,7 +56,7 @@ let InlineListItem = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.def
56
56
  styles = _this$props.styles,
57
57
  rest = (0, _objectWithoutProperties2.default)(_this$props, _excluded);
58
58
  return (0, _emotion.jsx)(_View.View, Object.assign({}, (0, _passthroughProps.passthroughProps)(rest), {
59
- css: styles.inlineListItem,
59
+ css: styles === null || styles === void 0 ? void 0 : styles.inlineListItem,
60
60
  as: "li",
61
61
  margin: margin,
62
62
  padding: padding,
@@ -64,46 +64,13 @@ let InlineListItem = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.def
64
64
  maxWidth: "100%",
65
65
  elementRef: elementRef
66
66
  }), children, (0, _emotion.jsx)("span", {
67
- css: styles.delimiter,
67
+ css: styles === null || styles === void 0 ? void 0 : styles.delimiter,
68
68
  "aria-hidden": "true"
69
69
  }));
70
70
  }
71
71
 
72
- }, _class2.displayName = "InlineListItem", _class2.componentId = 'InlineList.Item', _class2.propTypes = {
73
- // eslint-disable-next-line react/require-default-props
74
- makeStyles: _propTypes.default.func,
75
- // eslint-disable-next-line react/require-default-props
76
- styles: _propTypes.default.object,
77
- children: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func]).isRequired,
78
-
79
- /**
80
- * Inherits delimiter from the parent InlineList component
81
- */
82
- delimiter: _propTypes.default.oneOf(['none', 'pipe', 'slash', 'arrow']),
83
- size: _propTypes.default.oneOf(['small', 'medium', 'large']),
84
-
85
- /**
86
- * Valid values are `0`, `none`, `auto`, `xxx-small`, `xx-small`, `x-small`,
87
- * `small`, `medium`, `large`, `x-large`, `xx-large`. Apply these values via
88
- * familiar CSS-like shorthand. For example: `margin="small auto large"`.
89
- */
90
- margin: _emotion.ThemeablePropTypes.spacing,
91
-
92
- /**
93
- * Valid values are `0`, `none`, `xxx-small`, `xx-small`, `x-small`,
94
- * `small`, `medium`, `large`, `x-large`, `xx-large`. Apply these values via
95
- * familiar CSS-like shorthand. For example: `padding="small x-large large"`.
96
- */
97
- padding: _emotion.ThemeablePropTypes.spacing,
98
-
99
- /**
100
- * Inherits itemSpacing from the parent InlineList component
101
- */
102
- spacing: _propTypes.default.oneOf(['none', 'xxx-small', 'xx-small', 'x-small', 'small', 'medium', 'large', 'x-large', 'xx-large']),
103
- elementRef: _propTypes.default.func
104
- }, _class2.defaultProps = {
72
+ }, _class2.displayName = "InlineListItem", _class2.componentId = 'InlineList.Item', _class2.propTypes = _props.propTypes, _class2.allowedProps = _props.allowedProps, _class2.defaultProps = {
105
73
  padding: 'none',
106
- margin: void 0,
107
74
  spacing: 'none',
108
75
  delimiter: 'none',
109
76
  size: 'medium',
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.allowedProps = exports.propTypes = void 0;
9
+
10
+ var _propTypes = _interopRequireDefault(require("prop-types"));
11
+
12
+ var _emotion = require("@instructure/emotion");
13
+
14
+ /*
15
+ * The MIT License (MIT)
16
+ *
17
+ * Copyright (c) 2015 - present Instructure, Inc.
18
+ *
19
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
20
+ * of this software and associated documentation files (the "Software"), to deal
21
+ * in the Software without restriction, including without limitation the rights
22
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
23
+ * copies of the Software, and to permit persons to whom the Software is
24
+ * furnished to do so, subject to the following conditions:
25
+ *
26
+ * The above copyright notice and this permission notice shall be included in all
27
+ * copies or substantial portions of the Software.
28
+ *
29
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
30
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
31
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
32
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
33
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
34
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
35
+ * SOFTWARE.
36
+ */
37
+ const propTypes = {
38
+ children: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func]).isRequired,
39
+
40
+ /**
41
+ * Inherits delimiter from the parent InlineList component
42
+ */
43
+ delimiter: _propTypes.default.oneOf(['none', 'pipe', 'slash', 'arrow']),
44
+ size: _propTypes.default.oneOf(['small', 'medium', 'large']),
45
+
46
+ /**
47
+ * Valid values are `0`, `none`, `auto`, `xxx-small`, `xx-small`, `x-small`,
48
+ * `small`, `medium`, `large`, `x-large`, `xx-large`. Apply these values via
49
+ * familiar CSS-like shorthand. For example: `margin="small auto large"`.
50
+ */
51
+ margin: _emotion.ThemeablePropTypes.spacing,
52
+
53
+ /**
54
+ * Valid values are `0`, `none`, `xxx-small`, `xx-small`, `x-small`,
55
+ * `small`, `medium`, `large`, `x-large`, `xx-large`. Apply these values via
56
+ * familiar CSS-like shorthand. For example: `padding="small x-large large"`.
57
+ */
58
+ padding: _emotion.ThemeablePropTypes.spacing,
59
+
60
+ /**
61
+ * Inherits itemSpacing from the parent InlineList component
62
+ */
63
+ spacing: _propTypes.default.oneOf(['none', 'xxx-small', 'xx-small', 'x-small', 'small', 'medium', 'large', 'x-large', 'xx-large']),
64
+ elementRef: _propTypes.default.func
65
+ };
66
+ exports.propTypes = propTypes;
67
+ const allowedProps = ['children', 'delimiter', 'size', 'margin', 'padding', 'spacing', 'elementRef'];
68
+ exports.allowedProps = allowedProps;
@@ -13,22 +13,18 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
13
13
 
14
14
  var _react = _interopRequireWildcard(require("react"));
15
15
 
16
- var _propTypes = _interopRequireDefault(require("prop-types"));
17
-
18
16
  var _View = require("@instructure/ui-view/lib/View");
19
17
 
20
- var _emotion = require("@instructure/emotion");
21
-
22
18
  var _passthroughProps = require("@instructure/ui-react-utils/lib/passthroughProps.js");
23
19
 
24
20
  var _safeCloneElement = require("@instructure/ui-react-utils/lib/safeCloneElement.js");
25
21
 
26
- var _Children = require("@instructure/ui-prop-types/lib/Children.js");
27
-
28
22
  var _testable = require("@instructure/ui-testable/lib/testable.js");
29
23
 
30
24
  var _InlineListItem = require("./InlineListItem");
31
25
 
26
+ var _props = require("./props");
27
+
32
28
  const _excluded = ["as", "margin", "elementRef"];
33
29
 
34
30
  var _dec, _class, _class2, _temp;
@@ -66,28 +62,7 @@ let InlineList = (_dec = (0, _testable.testable)(), _dec(_class = (_temp = _clas
66
62
  }), this.renderChildren());
67
63
  }
68
64
 
69
- }, _class2.displayName = "InlineList", _class2.propTypes = {
70
- /**
71
- * Only accepts `<InlineList.Item>` as a child
72
- */
73
- children: _Children.Children.oneOf([_InlineListItem.InlineListItem]),
74
- as: _propTypes.default.oneOf(['ul', 'ol']),
75
-
76
- /**
77
- * Valid values are `0`, `none`, `auto`, `xxx-small`, `xx-small`, `x-small`,
78
- * `small`, `medium`, `large`, `x-large`, `xx-large`. Apply these values via
79
- * familiar CSS-like shorthand. For example: `margin="small auto large"`.
80
- */
81
- margin: _emotion.ThemeablePropTypes.spacing,
82
- size: _propTypes.default.oneOf(['small', 'medium', 'large']),
83
- delimiter: _propTypes.default.oneOf(['none', 'pipe', 'slash', 'arrow']),
84
-
85
- /**
86
- * Sets the margin separating each ListItem.
87
- */
88
- itemSpacing: _propTypes.default.oneOf(['none', 'xxx-small', 'xx-small', 'x-small', 'small', 'medium', 'large', 'x-large', 'xx-large']),
89
- elementRef: _propTypes.default.func
90
- }, _class2.defaultProps = {
65
+ }, _class2.displayName = "InlineList", _class2.propTypes = _props.propTypes, _class2.allowedProps = _props.allowedProps, _class2.defaultProps = {
91
66
  children: null,
92
67
  itemSpacing: 'none',
93
68
  elementRef: el => {},
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.allowedProps = exports.propTypes = void 0;
9
+
10
+ var _propTypes = _interopRequireDefault(require("prop-types"));
11
+
12
+ var _Children = require("@instructure/ui-prop-types/lib/Children.js");
13
+
14
+ var _emotion = require("@instructure/emotion");
15
+
16
+ var _InlineListItem = require("./InlineListItem");
17
+
18
+ /*
19
+ * The MIT License (MIT)
20
+ *
21
+ * Copyright (c) 2015 - present Instructure, Inc.
22
+ *
23
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
24
+ * of this software and associated documentation files (the "Software"), to deal
25
+ * in the Software without restriction, including without limitation the rights
26
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
27
+ * copies of the Software, and to permit persons to whom the Software is
28
+ * furnished to do so, subject to the following conditions:
29
+ *
30
+ * The above copyright notice and this permission notice shall be included in all
31
+ * copies or substantial portions of the Software.
32
+ *
33
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
34
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
35
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
36
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
37
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
38
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
39
+ * SOFTWARE.
40
+ */
41
+ const propTypes = {
42
+ /**
43
+ * Only accepts `<InlineList.Item>` as a child
44
+ */
45
+ children: _Children.Children.oneOf([_InlineListItem.InlineListItem]),
46
+ as: _propTypes.default.oneOf(['ul', 'ol']),
47
+
48
+ /**
49
+ * Valid values are `0`, `none`, `auto`, `xxx-small`, `xx-small`, `x-small`,
50
+ * `small`, `medium`, `large`, `x-large`, `xx-large`. Apply these values via
51
+ * familiar CSS-like shorthand. For example: `margin="small auto large"`.
52
+ */
53
+ margin: _emotion.ThemeablePropTypes.spacing,
54
+ size: _propTypes.default.oneOf(['small', 'medium', 'large']),
55
+ delimiter: _propTypes.default.oneOf(['none', 'pipe', 'slash', 'arrow']),
56
+
57
+ /**
58
+ * Sets the margin separating each ListItem.
59
+ */
60
+ itemSpacing: _propTypes.default.oneOf(['none', 'xxx-small', 'xx-small', 'x-small', 'small', 'medium', 'large', 'x-large', 'xx-large']),
61
+ elementRef: _propTypes.default.func
62
+ };
63
+ exports.propTypes = propTypes;
64
+ const allowedProps = ['children', 'as', 'margin', 'size', 'delimiter', 'itemSpacing', 'elementRef'];
65
+ exports.allowedProps = allowedProps;
@@ -11,8 +11,6 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
11
11
 
12
12
  var _react = require("react");
13
13
 
14
- var _propTypes = _interopRequireDefault(require("prop-types"));
15
-
16
14
  var _View = require("@instructure/ui-view/lib/View");
17
15
 
18
16
  var _testable = require("@instructure/ui-testable/lib/testable.js");
@@ -25,6 +23,8 @@ var _styles = _interopRequireDefault(require("./styles"));
25
23
 
26
24
  var _theme = _interopRequireDefault(require("./theme"));
27
25
 
26
+ var _props = require("./props");
27
+
28
28
  const _excluded = ["delimiter", "spacing", "size", "margin", "padding", "elementRef", "children", "styles"];
29
29
 
30
30
  var _dec, _dec2, _class, _class2, _temp;
@@ -56,7 +56,7 @@ let ListItem = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default),
56
56
  styles = _this$props.styles,
57
57
  rest = (0, _objectWithoutProperties2.default)(_this$props, _excluded);
58
58
  return (0, _emotion.jsx)(_View.View, Object.assign({}, (0, _passthroughProps.passthroughProps)(rest), {
59
- css: styles.listItem,
59
+ css: styles === null || styles === void 0 ? void 0 : styles.listItem,
60
60
  as: "li",
61
61
  margin: margin,
62
62
  padding: padding,
@@ -65,41 +65,8 @@ let ListItem = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default),
65
65
  }), children);
66
66
  }
67
67
 
68
- }, _class2.displayName = "ListItem", _class2.componentId = 'List.Item', _class2.propTypes = {
69
- // eslint-disable-next-line react/require-default-props
70
- makeStyles: _propTypes.default.func,
71
- // eslint-disable-next-line react/require-default-props
72
- styles: _propTypes.default.object,
73
- children: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func]).isRequired,
74
-
75
- /**
76
- * Inherits delimiter from the parent List component.
77
- */
78
- delimiter: _propTypes.default.oneOf(['none', 'dashed', 'solid']),
79
- size: _propTypes.default.oneOf(['small', 'medium', 'large']),
80
-
81
- /**
82
- * Valid values are `0`, `none`, `auto`, `xxx-small`, `xx-small`, `x-small`,
83
- * `small`, `medium`, `large`, `x-large`, `xx-large`. Apply these values via
84
- * familiar CSS-like shorthand. For example: `margin="small auto large"`.
85
- */
86
- margin: _emotion.ThemeablePropTypes.spacing,
87
-
88
- /**
89
- * Valid values are `0`, `none`, `xxx-small`, `xx-small`, `x-small`,
90
- * `small`, `medium`, `large`, `x-large`, `xx-large`. Apply these values via
91
- * familiar CSS-like shorthand. For example: `padding="small x-large large"`.
92
- */
93
- padding: _emotion.ThemeablePropTypes.spacing,
94
-
95
- /**
96
- * Inherits itemSpacing from the parent List component
97
- */
98
- spacing: _propTypes.default.oneOf(['none', 'xxx-small', 'xx-small', 'x-small', 'small', 'medium', 'large', 'x-large', 'xx-large']),
99
- elementRef: _propTypes.default.func
100
- }, _class2.defaultProps = {
68
+ }, _class2.displayName = "ListItem", _class2.componentId = 'List.Item', _class2.propTypes = _props.propTypes, _class2.allowedProps = _props.allowedProps, _class2.defaultProps = {
101
69
  padding: 'none',
102
- margin: void 0,
103
70
  spacing: 'none',
104
71
  delimiter: 'none',
105
72
  size: 'medium',
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.allowedProps = exports.propTypes = void 0;
9
+
10
+ var _propTypes = _interopRequireDefault(require("prop-types"));
11
+
12
+ var _emotion = require("@instructure/emotion");
13
+
14
+ /*
15
+ * The MIT License (MIT)
16
+ *
17
+ * Copyright (c) 2015 - present Instructure, Inc.
18
+ *
19
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
20
+ * of this software and associated documentation files (the "Software"), to deal
21
+ * in the Software without restriction, including without limitation the rights
22
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
23
+ * copies of the Software, and to permit persons to whom the Software is
24
+ * furnished to do so, subject to the following conditions:
25
+ *
26
+ * The above copyright notice and this permission notice shall be included in all
27
+ * copies or substantial portions of the Software.
28
+ *
29
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
30
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
31
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
32
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
33
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
34
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
35
+ * SOFTWARE.
36
+ */
37
+ const propTypes = {
38
+ children: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func]).isRequired,
39
+
40
+ /**
41
+ * Inherits delimiter from the parent List component.
42
+ */
43
+ delimiter: _propTypes.default.oneOf(['none', 'dashed', 'solid']),
44
+ size: _propTypes.default.oneOf(['small', 'medium', 'large']),
45
+
46
+ /**
47
+ * Valid values are `0`, `none`, `auto`, `xxx-small`, `xx-small`, `x-small`,
48
+ * `small`, `medium`, `large`, `x-large`, `xx-large`. Apply these values via
49
+ * familiar CSS-like shorthand. For example: `margin="small auto large"`.
50
+ */
51
+ margin: _emotion.ThemeablePropTypes.spacing,
52
+
53
+ /**
54
+ * Valid values are `0`, `none`, `xxx-small`, `xx-small`, `x-small`,
55
+ * `small`, `medium`, `large`, `x-large`, `xx-large`. Apply these values via
56
+ * familiar CSS-like shorthand. For example: `padding="small x-large large"`.
57
+ */
58
+ padding: _emotion.ThemeablePropTypes.spacing,
59
+
60
+ /**
61
+ * Inherits itemSpacing from the parent List component
62
+ */
63
+ spacing: _propTypes.default.oneOf(['none', 'xxx-small', 'xx-small', 'x-small', 'small', 'medium', 'large', 'x-large', 'xx-large']),
64
+ elementRef: _propTypes.default.func
65
+ };
66
+ exports.propTypes = propTypes;
67
+ const allowedProps = ['children', 'delimiter', 'size', 'margin', 'padding', 'spacing', 'elementRef'];
68
+ exports.allowedProps = allowedProps;