@instructure/ui-list 10.26.1 → 11.0.0
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/CHANGELOG.md +23 -2
- package/es/InlineList/InlineListItem/index.js +6 -6
- package/es/InlineList/InlineListItem/props.js +1 -13
- package/es/InlineList/index.js +9 -6
- package/es/InlineList/props.js +1 -13
- package/es/List/ListItem/index.js +6 -6
- package/es/List/ListItem/props.js +1 -12
- package/es/List/index.js +6 -6
- package/es/List/props.js +1 -14
- package/lib/InlineList/InlineListItem/index.js +5 -5
- package/lib/InlineList/InlineListItem/props.js +1 -13
- package/lib/InlineList/index.js +9 -5
- package/lib/InlineList/props.js +1 -14
- package/lib/List/ListItem/index.js +5 -5
- package/lib/List/ListItem/props.js +1 -12
- package/lib/List/index.js +5 -5
- package/lib/List/props.js +1 -15
- package/package.json +12 -15
- package/src/InlineList/InlineListItem/index.tsx +2 -4
- package/src/InlineList/InlineListItem/props.ts +1 -24
- package/src/InlineList/index.tsx +2 -4
- package/src/InlineList/props.ts +2 -31
- package/src/List/ListItem/index.tsx +2 -4
- package/src/List/ListItem/props.ts +1 -24
- package/src/List/index.tsx +2 -4
- package/src/List/props.ts +2 -33
- package/tsconfig.build.json +0 -2
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/InlineList/InlineListItem/index.d.ts +0 -1
- package/types/InlineList/InlineListItem/index.d.ts.map +1 -1
- package/types/InlineList/InlineListItem/props.d.ts +2 -3
- package/types/InlineList/InlineListItem/props.d.ts.map +1 -1
- package/types/InlineList/index.d.ts +0 -9
- package/types/InlineList/index.d.ts.map +1 -1
- package/types/InlineList/props.d.ts +2 -3
- package/types/InlineList/props.d.ts.map +1 -1
- package/types/List/ListItem/index.d.ts +0 -1
- package/types/List/ListItem/index.d.ts.map +1 -1
- package/types/List/ListItem/props.d.ts +2 -3
- package/types/List/ListItem/props.d.ts.map +1 -1
- package/types/List/index.d.ts +0 -10
- package/types/List/index.d.ts.map +1 -1
- package/types/List/props.d.ts +2 -3
- package/types/List/props.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,9 +3,30 @@
|
|
|
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
|
-
|
|
6
|
+
# [11.0.0](https://github.com/instructure/instructure-ui/compare/v10.26.0...v11.0.0) (2025-10-06)
|
|
7
7
|
|
|
8
|
-
|
|
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`
|
|
9
30
|
|
|
10
31
|
|
|
11
32
|
|
|
@@ -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,
|
|
3
|
+
var _dec, _class, _InlineListItem;
|
|
4
4
|
/*
|
|
5
5
|
* The MIT License (MIT)
|
|
6
6
|
*
|
|
@@ -27,12 +27,11 @@ var _dec, _dec2, _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';
|
|
31
30
|
import { passthroughProps } from '@instructure/ui-react-utils';
|
|
32
31
|
import { withStyle } from '@instructure/emotion';
|
|
33
32
|
import generateStyle from './styles';
|
|
34
33
|
import generateComponentTheme from './theme';
|
|
35
|
-
import {
|
|
34
|
+
import { allowedProps } from './props';
|
|
36
35
|
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
37
36
|
/**
|
|
38
37
|
---
|
|
@@ -40,7 +39,7 @@ parent: InlineList
|
|
|
40
39
|
id: InlineList.Item
|
|
41
40
|
---
|
|
42
41
|
**/
|
|
43
|
-
let InlineListItem = (_dec = withStyle(generateStyle, generateComponentTheme),
|
|
42
|
+
let InlineListItem = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_InlineListItem = class InlineListItem extends Component {
|
|
44
43
|
constructor(...args) {
|
|
45
44
|
super(...args);
|
|
46
45
|
this.ref = null;
|
|
@@ -81,18 +80,19 @@ let InlineListItem = (_dec = withStyle(generateStyle, generateComponentTheme), _
|
|
|
81
80
|
display: "inline-block",
|
|
82
81
|
maxWidth: "100%",
|
|
83
82
|
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.
|
|
90
|
+
}, _InlineListItem.displayName = "InlineListItem", _InlineListItem.componentId = 'InlineList.Item', _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);
|
|
97
97
|
export default InlineListItem;
|
|
98
98
|
export { InlineListItem };
|
|
@@ -22,19 +22,7 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
import PropTypes from 'prop-types';
|
|
26
|
-
|
|
27
25
|
// <unknown> is needed for React 17 compatibility
|
|
28
26
|
|
|
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
|
-
};
|
|
39
27
|
const allowedProps = ['children', 'delimiter', 'size', 'margin', 'padding', 'spacing', 'elementRef'];
|
|
40
|
-
export {
|
|
28
|
+
export { allowedProps };
|
package/es/InlineList/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
2
|
const _excluded = ["as", "margin", "elementRef"];
|
|
3
|
-
var _dec, _class, _InlineList;
|
|
4
3
|
/*
|
|
5
4
|
* The MIT License (MIT)
|
|
6
5
|
*
|
|
@@ -27,9 +26,8 @@ var _dec, _class, _InlineList;
|
|
|
27
26
|
import { Children, Component } from 'react';
|
|
28
27
|
import { View } from '@instructure/ui-view';
|
|
29
28
|
import { passthroughProps, safeCloneElement } from '@instructure/ui-react-utils';
|
|
30
|
-
import { testable } from '@instructure/ui-testable';
|
|
31
29
|
import { InlineListItem } from './InlineListItem';
|
|
32
|
-
import {
|
|
30
|
+
import { allowedProps } from './props';
|
|
33
31
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
34
32
|
/**
|
|
35
33
|
---
|
|
@@ -37,7 +35,7 @@ category: components
|
|
|
37
35
|
---
|
|
38
36
|
|
|
39
37
|
**/
|
|
40
|
-
|
|
38
|
+
class InlineList extends Component {
|
|
41
39
|
constructor(...args) {
|
|
42
40
|
super(...args);
|
|
43
41
|
this.ref = null;
|
|
@@ -76,15 +74,20 @@ let InlineList = (_dec = testable(), _dec(_class = (_InlineList = class InlineLi
|
|
|
76
74
|
padding: "0",
|
|
77
75
|
elementRef: this.handleRef,
|
|
78
76
|
display: "block",
|
|
77
|
+
"data-cid": "InlineList",
|
|
79
78
|
children: this.renderChildren()
|
|
80
79
|
});
|
|
81
80
|
}
|
|
82
|
-
}
|
|
81
|
+
}
|
|
82
|
+
InlineList.displayName = "InlineList";
|
|
83
|
+
InlineList.allowedProps = allowedProps;
|
|
84
|
+
InlineList.defaultProps = {
|
|
83
85
|
itemSpacing: 'none',
|
|
84
86
|
as: 'ul',
|
|
85
87
|
margin: 'none',
|
|
86
88
|
delimiter: 'none',
|
|
87
89
|
size: 'medium'
|
|
88
|
-
}
|
|
90
|
+
};
|
|
91
|
+
InlineList.Item = InlineListItem;
|
|
89
92
|
export default InlineList;
|
|
90
93
|
export { InlineList };
|
package/es/InlineList/props.js
CHANGED
|
@@ -22,17 +22,5 @@
|
|
|
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
|
-
};
|
|
37
25
|
const allowedProps = ['children', 'as', 'margin', 'size', 'delimiter', 'itemSpacing', 'elementRef'];
|
|
38
|
-
export {
|
|
26
|
+
export { 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,
|
|
3
|
+
var _dec, _class, _ListItem;
|
|
4
4
|
/*
|
|
5
5
|
* The MIT License (MIT)
|
|
6
6
|
*
|
|
@@ -27,12 +27,11 @@ var _dec, _dec2, _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';
|
|
31
30
|
import { passthroughProps } from '@instructure/ui-react-utils';
|
|
32
31
|
import { withStyle } from '@instructure/emotion';
|
|
33
32
|
import generateStyle from './styles';
|
|
34
33
|
import generateComponentTheme from './theme';
|
|
35
|
-
import {
|
|
34
|
+
import { allowedProps } from './props';
|
|
36
35
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
37
36
|
/**
|
|
38
37
|
---
|
|
@@ -40,7 +39,7 @@ parent: List
|
|
|
40
39
|
id: List.Item
|
|
41
40
|
---
|
|
42
41
|
**/
|
|
43
|
-
let ListItem = (_dec = withStyle(generateStyle, generateComponentTheme),
|
|
42
|
+
let ListItem = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_ListItem = class ListItem extends Component {
|
|
44
43
|
constructor(...args) {
|
|
45
44
|
super(...args);
|
|
46
45
|
this.ref = null;
|
|
@@ -79,14 +78,15 @@ let ListItem = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 =
|
|
|
79
78
|
padding: padding,
|
|
80
79
|
maxWidth: "100%",
|
|
81
80
|
elementRef: this.handleRef,
|
|
81
|
+
"data-cid": "ListItem",
|
|
82
82
|
children: children
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
|
-
}, _ListItem.displayName = "ListItem", _ListItem.componentId = 'List.Item', _ListItem.
|
|
85
|
+
}, _ListItem.displayName = "ListItem", _ListItem.componentId = 'List.Item', _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);
|
|
91
91
|
export default ListItem;
|
|
92
92
|
export { ListItem };
|
|
@@ -22,18 +22,7 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
import PropTypes from 'prop-types';
|
|
26
|
-
|
|
27
25
|
// <unknown> is needed for React 17 compatibility
|
|
28
26
|
|
|
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
|
-
};
|
|
38
27
|
const allowedProps = ['children', 'delimiter', 'size', 'margin', 'padding', 'spacing', 'elementRef'];
|
|
39
|
-
export {
|
|
28
|
+
export { 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,
|
|
3
|
+
var _dec, _class, _List;
|
|
4
4
|
/*
|
|
5
5
|
* The MIT License (MIT)
|
|
6
6
|
*
|
|
@@ -28,19 +28,18 @@ var _dec, _dec2, _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';
|
|
32
31
|
import { ListItem } from './ListItem';
|
|
33
32
|
import { withStyle } from '@instructure/emotion';
|
|
34
33
|
import generateStyle from './styles';
|
|
35
34
|
import generateComponentTheme from './theme';
|
|
36
|
-
import {
|
|
35
|
+
import { allowedProps } from './props';
|
|
37
36
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
38
37
|
/**
|
|
39
38
|
---
|
|
40
39
|
category: components
|
|
41
40
|
---
|
|
42
41
|
**/
|
|
43
|
-
let List = (_dec = withStyle(generateStyle, generateComponentTheme),
|
|
42
|
+
let List = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_List = class List extends Component {
|
|
44
43
|
constructor(...args) {
|
|
45
44
|
super(...args);
|
|
46
45
|
this.ref = null;
|
|
@@ -87,15 +86,16 @@ let List = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = tes
|
|
|
87
86
|
margin: margin,
|
|
88
87
|
elementRef: this.handleRef,
|
|
89
88
|
display: "block",
|
|
89
|
+
"data-cid": "List",
|
|
90
90
|
children: this.renderChildren()
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
|
-
}, _List.displayName = "List", _List.componentId = 'List', _List.
|
|
93
|
+
}, _List.displayName = "List", _List.componentId = 'List', _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);
|
|
100
100
|
export default List;
|
|
101
101
|
export { List, ListItem };
|
package/es/List/props.js
CHANGED
|
@@ -22,18 +22,5 @@
|
|
|
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
|
-
};
|
|
38
25
|
const allowedProps = ['children', 'as', 'delimiter', 'isUnstyled', 'margin', 'size', 'itemSpacing', 'elementRef'];
|
|
39
|
-
export {
|
|
26
|
+
export { allowedProps };
|
|
@@ -8,7 +8,6 @@ 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");
|
|
12
11
|
var _passthroughProps = require("@instructure/ui-react-utils/lib/passthroughProps.js");
|
|
13
12
|
var _emotion = require("@instructure/emotion");
|
|
14
13
|
var _styles = _interopRequireDefault(require("./styles"));
|
|
@@ -16,7 +15,7 @@ var _theme = _interopRequireDefault(require("./theme"));
|
|
|
16
15
|
var _props = require("./props");
|
|
17
16
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
18
17
|
const _excluded = ["delimiter", "size", "margin", "padding", "elementRef", "children", "spacing", "styles", "lastPlaceholder"];
|
|
19
|
-
var _dec,
|
|
18
|
+
var _dec, _class, _InlineListItem;
|
|
20
19
|
/*
|
|
21
20
|
* The MIT License (MIT)
|
|
22
21
|
*
|
|
@@ -46,7 +45,7 @@ parent: InlineList
|
|
|
46
45
|
id: InlineList.Item
|
|
47
46
|
---
|
|
48
47
|
**/
|
|
49
|
-
let InlineListItem = exports.InlineListItem = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default),
|
|
48
|
+
let InlineListItem = exports.InlineListItem = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_InlineListItem = class InlineListItem extends _react.Component {
|
|
50
49
|
constructor(...args) {
|
|
51
50
|
super(...args);
|
|
52
51
|
this.ref = null;
|
|
@@ -87,17 +86,18 @@ let InlineListItem = exports.InlineListItem = (_dec = (0, _emotion.withStyle)(_s
|
|
|
87
86
|
display: "inline-block",
|
|
88
87
|
maxWidth: "100%",
|
|
89
88
|
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.
|
|
96
|
+
}, _InlineListItem.displayName = "InlineListItem", _InlineListItem.componentId = 'InlineList.Item', _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);
|
|
103
103
|
var _default = exports.default = InlineListItem;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
|
-
exports.
|
|
8
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
6
|
+
exports.allowedProps = void 0;
|
|
9
7
|
/*
|
|
10
8
|
* The MIT License (MIT)
|
|
11
9
|
*
|
|
@@ -32,14 +30,4 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
32
30
|
|
|
33
31
|
// <unknown> is needed for React 17 compatibility
|
|
34
32
|
|
|
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
|
-
};
|
|
45
33
|
const allowedProps = exports.allowedProps = ['children', 'delimiter', 'size', 'margin', 'padding', 'spacing', 'elementRef'];
|
package/lib/InlineList/index.js
CHANGED
|
@@ -10,12 +10,10 @@ 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");
|
|
14
13
|
var _InlineListItem = require("./InlineListItem");
|
|
15
14
|
var _props = require("./props");
|
|
16
15
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
17
16
|
const _excluded = ["as", "margin", "elementRef"];
|
|
18
|
-
var _dec, _class, _InlineList;
|
|
19
17
|
/*
|
|
20
18
|
* The MIT License (MIT)
|
|
21
19
|
*
|
|
@@ -45,7 +43,7 @@ category: components
|
|
|
45
43
|
---
|
|
46
44
|
|
|
47
45
|
**/
|
|
48
|
-
|
|
46
|
+
class InlineList extends _react.Component {
|
|
49
47
|
constructor(...args) {
|
|
50
48
|
super(...args);
|
|
51
49
|
this.ref = null;
|
|
@@ -84,14 +82,20 @@ let InlineList = exports.InlineList = (_dec = (0, _testable.testable)(), _dec(_c
|
|
|
84
82
|
padding: "0",
|
|
85
83
|
elementRef: this.handleRef,
|
|
86
84
|
display: "block",
|
|
85
|
+
"data-cid": "InlineList",
|
|
87
86
|
children: this.renderChildren()
|
|
88
87
|
});
|
|
89
88
|
}
|
|
90
|
-
}
|
|
89
|
+
}
|
|
90
|
+
exports.InlineList = InlineList;
|
|
91
|
+
InlineList.displayName = "InlineList";
|
|
92
|
+
InlineList.allowedProps = _props.allowedProps;
|
|
93
|
+
InlineList.defaultProps = {
|
|
91
94
|
itemSpacing: 'none',
|
|
92
95
|
as: 'ul',
|
|
93
96
|
margin: 'none',
|
|
94
97
|
delimiter: 'none',
|
|
95
98
|
size: 'medium'
|
|
96
|
-
}
|
|
99
|
+
};
|
|
100
|
+
InlineList.Item = _InlineListItem.InlineListItem;
|
|
97
101
|
var _default = exports.default = InlineList;
|
package/lib/InlineList/props.js
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
|
-
exports.
|
|
8
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
var _Children = require("@instructure/ui-prop-types/lib/Children.js");
|
|
10
|
-
var _InlineListItem = require("./InlineListItem");
|
|
6
|
+
exports.allowedProps = void 0;
|
|
11
7
|
/*
|
|
12
8
|
* The MIT License (MIT)
|
|
13
9
|
*
|
|
@@ -32,13 +28,4 @@ var _InlineListItem = require("./InlineListItem");
|
|
|
32
28
|
* SOFTWARE.
|
|
33
29
|
*/
|
|
34
30
|
|
|
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
|
-
};
|
|
44
31
|
const allowedProps = exports.allowedProps = ['children', 'as', 'margin', 'size', 'delimiter', 'itemSpacing', 'elementRef'];
|
|
@@ -8,7 +8,6 @@ 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");
|
|
12
11
|
var _passthroughProps = require("@instructure/ui-react-utils/lib/passthroughProps.js");
|
|
13
12
|
var _emotion = require("@instructure/emotion");
|
|
14
13
|
var _styles = _interopRequireDefault(require("./styles"));
|
|
@@ -16,7 +15,7 @@ var _theme = _interopRequireDefault(require("./theme"));
|
|
|
16
15
|
var _props = require("./props");
|
|
17
16
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
18
17
|
const _excluded = ["delimiter", "spacing", "size", "margin", "padding", "elementRef", "children", "styles"];
|
|
19
|
-
var _dec,
|
|
18
|
+
var _dec, _class, _ListItem;
|
|
20
19
|
/*
|
|
21
20
|
* The MIT License (MIT)
|
|
22
21
|
*
|
|
@@ -46,7 +45,7 @@ parent: List
|
|
|
46
45
|
id: List.Item
|
|
47
46
|
---
|
|
48
47
|
**/
|
|
49
|
-
let ListItem = exports.ListItem = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default),
|
|
48
|
+
let ListItem = exports.ListItem = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_ListItem = class ListItem extends _react.Component {
|
|
50
49
|
constructor(...args) {
|
|
51
50
|
super(...args);
|
|
52
51
|
this.ref = null;
|
|
@@ -85,13 +84,14 @@ let ListItem = exports.ListItem = (_dec = (0, _emotion.withStyle)(_styles.defaul
|
|
|
85
84
|
padding: padding,
|
|
86
85
|
maxWidth: "100%",
|
|
87
86
|
elementRef: this.handleRef,
|
|
87
|
+
"data-cid": "ListItem",
|
|
88
88
|
children: children
|
|
89
89
|
});
|
|
90
90
|
}
|
|
91
|
-
}, _ListItem.displayName = "ListItem", _ListItem.componentId = 'List.Item', _ListItem.
|
|
91
|
+
}, _ListItem.displayName = "ListItem", _ListItem.componentId = 'List.Item', _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);
|
|
97
97
|
var _default = exports.default = ListItem;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
|
-
exports.
|
|
8
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
6
|
+
exports.allowedProps = void 0;
|
|
9
7
|
/*
|
|
10
8
|
* The MIT License (MIT)
|
|
11
9
|
*
|
|
@@ -32,13 +30,4 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
32
30
|
|
|
33
31
|
// <unknown> is needed for React 17 compatibility
|
|
34
32
|
|
|
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
|
-
};
|
|
44
33
|
const allowedProps = exports.allowedProps = ['children', 'delimiter', 'size', 'margin', 'padding', 'spacing', 'elementRef'];
|
package/lib/List/index.js
CHANGED
|
@@ -17,7 +17,6 @@ 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");
|
|
21
20
|
var _ListItem = require("./ListItem");
|
|
22
21
|
var _emotion = require("@instructure/emotion");
|
|
23
22
|
var _styles = _interopRequireDefault(require("./styles"));
|
|
@@ -25,7 +24,7 @@ var _theme = _interopRequireDefault(require("./theme"));
|
|
|
25
24
|
var _props = require("./props");
|
|
26
25
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
27
26
|
const _excluded = ["as", "margin", "isUnstyled", "elementRef", "styles"];
|
|
28
|
-
var _dec,
|
|
27
|
+
var _dec, _class, _List;
|
|
29
28
|
/*
|
|
30
29
|
* The MIT License (MIT)
|
|
31
30
|
*
|
|
@@ -54,7 +53,7 @@ var _dec, _dec2, _class, _List;
|
|
|
54
53
|
category: components
|
|
55
54
|
---
|
|
56
55
|
**/
|
|
57
|
-
let List = exports.List = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default),
|
|
56
|
+
let List = exports.List = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_List = class List extends _react.Component {
|
|
58
57
|
constructor(...args) {
|
|
59
58
|
super(...args);
|
|
60
59
|
this.ref = null;
|
|
@@ -101,14 +100,15 @@ let List = exports.List = (_dec = (0, _emotion.withStyle)(_styles.default, _them
|
|
|
101
100
|
margin: margin,
|
|
102
101
|
elementRef: this.handleRef,
|
|
103
102
|
display: "block",
|
|
103
|
+
"data-cid": "List",
|
|
104
104
|
children: this.renderChildren()
|
|
105
105
|
});
|
|
106
106
|
}
|
|
107
|
-
}, _List.displayName = "List", _List.componentId = 'List', _List.
|
|
107
|
+
}, _List.displayName = "List", _List.componentId = 'List', _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);
|
|
114
114
|
var _default = exports.default = List;
|
package/lib/List/props.js
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
|
-
exports.
|
|
8
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
var _Children = require("@instructure/ui-prop-types/lib/Children.js");
|
|
10
|
-
var _ListItem = require("./ListItem");
|
|
6
|
+
exports.allowedProps = void 0;
|
|
11
7
|
/*
|
|
12
8
|
* The MIT License (MIT)
|
|
13
9
|
*
|
|
@@ -32,14 +28,4 @@ var _ListItem = require("./ListItem");
|
|
|
32
28
|
* SOFTWARE.
|
|
33
29
|
*/
|
|
34
30
|
|
|
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
|
-
};
|
|
45
31
|
const allowedProps = exports.allowedProps = ['children', 'as', 'delimiter', 'isUnstyled', 'margin', 'size', 'itemSpacing', 'elementRef'];
|