@instructure/ui-drilldown 8.27.1-snapshot-2 → 8.27.1-snapshot-7
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 +5 -2
- package/es/Drilldown/index.js +5 -0
- package/es/Drilldown/props.js +3 -1
- package/lib/Drilldown/index.js +5 -0
- package/lib/Drilldown/props.js +3 -1
- package/package.json +20 -20
- package/src/Drilldown/index.tsx +5 -0
- package/src/Drilldown/props.ts +9 -1
- package/src/index.ts +15 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Drilldown/index.d.ts +4 -0
- package/types/Drilldown/index.d.ts.map +1 -1
- package/types/Drilldown/props.d.ts +3 -1
- package/types/Drilldown/props.d.ts.map +1 -1
- package/types/index.d.ts +5 -1
- package/types/index.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,9 +3,12 @@
|
|
|
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
|
-
## [8.27.1-snapshot-
|
|
6
|
+
## [8.27.1-snapshot-7](https://github.com/instructure/instructure-ui/compare/v8.27.0...v8.27.1-snapshot-7) (2022-08-15)
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **ui-drilldown:** add `minHeight` and `minWidth` props to Drilldown ([7e10b29](https://github.com/instructure/instructure-ui/commit/7e10b2966f4dfb79dfdecca62f12c3f9ba5b62b4))
|
|
9
12
|
|
|
10
13
|
|
|
11
14
|
|
package/es/Drilldown/index.js
CHANGED
|
@@ -1057,6 +1057,8 @@ let Drilldown = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle,
|
|
|
1057
1057
|
overflowX = _this$props5.overflowX,
|
|
1058
1058
|
height = _this$props5.height,
|
|
1059
1059
|
width = _this$props5.width,
|
|
1060
|
+
minHeight = _this$props5.minHeight,
|
|
1061
|
+
minWidth = _this$props5.minWidth,
|
|
1060
1062
|
maxHeight = _this$props5.maxHeight,
|
|
1061
1063
|
maxWidth = _this$props5.maxWidth,
|
|
1062
1064
|
role = _this$props5.role,
|
|
@@ -1100,6 +1102,7 @@ let Drilldown = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle,
|
|
|
1100
1102
|
position: "relative",
|
|
1101
1103
|
borderRadius: "small",
|
|
1102
1104
|
width: width,
|
|
1105
|
+
minWidth: maxWidth,
|
|
1103
1106
|
maxWidth: maxWidth,
|
|
1104
1107
|
role: role,
|
|
1105
1108
|
"aria-label": label,
|
|
@@ -1133,6 +1136,8 @@ let Drilldown = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle,
|
|
|
1133
1136
|
overflowX: overflowX,
|
|
1134
1137
|
height: height,
|
|
1135
1138
|
width: width,
|
|
1139
|
+
minHeight: minHeight,
|
|
1140
|
+
minWidth: minWidth,
|
|
1136
1141
|
maxHeight: maxHeight,
|
|
1137
1142
|
maxWidth: maxWidth,
|
|
1138
1143
|
css: styles === null || styles === void 0 ? void 0 : styles.container,
|
package/es/Drilldown/props.js
CHANGED
|
@@ -40,6 +40,8 @@ const propTypes = {
|
|
|
40
40
|
overflowY: PropTypes.oneOf(['auto', 'hidden', 'visible']),
|
|
41
41
|
height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
42
42
|
width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
43
|
+
minHeight: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
44
|
+
minWidth: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
43
45
|
maxHeight: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
44
46
|
maxWidth: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
45
47
|
trigger: PropTypes.node,
|
|
@@ -62,6 +64,6 @@ const propTypes = {
|
|
|
62
64
|
offsetX: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
63
65
|
offsetY: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
|
|
64
66
|
};
|
|
65
|
-
const allowedProps = ['rootPageId', 'children', 'id', 'label', 'disabled', 'rotateFocus', 'as', 'role', 'overflowX', 'overflowY', 'height', 'width', 'maxHeight', 'maxWidth', // Popover version props
|
|
67
|
+
const allowedProps = ['rootPageId', 'children', 'id', 'label', 'disabled', 'rotateFocus', 'as', 'role', 'overflowX', 'overflowY', 'height', 'width', 'minHeight', 'minWidth', 'maxHeight', 'maxWidth', // Popover version props
|
|
66
68
|
'trigger', 'placement', 'defaultShow', 'show', 'onToggle', 'onSelect', 'onDismiss', 'onFocus', 'onMouseOver', 'elementRef', 'drilldownRef', 'popoverRef', 'mountNode', 'positionTarget', 'constrain', 'shouldHideOnSelect', 'shouldContainFocus', 'shouldReturnFocus', 'withArrow', 'offsetX', 'offsetY'];
|
|
67
69
|
export { propTypes, allowedProps };
|
package/lib/Drilldown/index.js
CHANGED
|
@@ -1068,6 +1068,8 @@ let Drilldown = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 =
|
|
|
1068
1068
|
overflowX = _this$props5.overflowX,
|
|
1069
1069
|
height = _this$props5.height,
|
|
1070
1070
|
width = _this$props5.width,
|
|
1071
|
+
minHeight = _this$props5.minHeight,
|
|
1072
|
+
minWidth = _this$props5.minWidth,
|
|
1071
1073
|
maxHeight = _this$props5.maxHeight,
|
|
1072
1074
|
maxWidth = _this$props5.maxWidth,
|
|
1073
1075
|
role = _this$props5.role,
|
|
@@ -1111,6 +1113,7 @@ let Drilldown = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 =
|
|
|
1111
1113
|
position: "relative",
|
|
1112
1114
|
borderRadius: "small",
|
|
1113
1115
|
width: width,
|
|
1116
|
+
minWidth: maxWidth,
|
|
1114
1117
|
maxWidth: maxWidth,
|
|
1115
1118
|
role: role,
|
|
1116
1119
|
"aria-label": label,
|
|
@@ -1144,6 +1147,8 @@ let Drilldown = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 =
|
|
|
1144
1147
|
overflowX: overflowX,
|
|
1145
1148
|
height: height,
|
|
1146
1149
|
width: width,
|
|
1150
|
+
minHeight: minHeight,
|
|
1151
|
+
minWidth: minWidth,
|
|
1147
1152
|
maxHeight: maxHeight,
|
|
1148
1153
|
maxWidth: maxWidth,
|
|
1149
1154
|
css: styles === null || styles === void 0 ? void 0 : styles.container,
|
package/lib/Drilldown/props.js
CHANGED
|
@@ -55,6 +55,8 @@ const propTypes = {
|
|
|
55
55
|
overflowY: _propTypes.default.oneOf(['auto', 'hidden', 'visible']),
|
|
56
56
|
height: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]),
|
|
57
57
|
width: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]),
|
|
58
|
+
minHeight: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]),
|
|
59
|
+
minWidth: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]),
|
|
58
60
|
maxHeight: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]),
|
|
59
61
|
maxWidth: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]),
|
|
60
62
|
trigger: _propTypes.default.node,
|
|
@@ -78,6 +80,6 @@ const propTypes = {
|
|
|
78
80
|
offsetY: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number])
|
|
79
81
|
};
|
|
80
82
|
exports.propTypes = propTypes;
|
|
81
|
-
const allowedProps = ['rootPageId', 'children', 'id', 'label', 'disabled', 'rotateFocus', 'as', 'role', 'overflowX', 'overflowY', 'height', 'width', 'maxHeight', 'maxWidth', // Popover version props
|
|
83
|
+
const allowedProps = ['rootPageId', 'children', 'id', 'label', 'disabled', 'rotateFocus', 'as', 'role', 'overflowX', 'overflowY', 'height', 'width', 'minHeight', 'minWidth', 'maxHeight', 'maxWidth', // Popover version props
|
|
82
84
|
'trigger', 'placement', 'defaultShow', 'show', 'onToggle', 'onSelect', 'onDismiss', 'onFocus', 'onMouseOver', 'elementRef', 'drilldownRef', 'popoverRef', 'mountNode', 'positionTarget', 'constrain', 'shouldHideOnSelect', 'shouldContainFocus', 'shouldReturnFocus', 'withArrow', 'offsetX', 'offsetY'];
|
|
83
85
|
exports.allowedProps = allowedProps;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-drilldown",
|
|
3
|
-
"version": "8.27.1-snapshot-
|
|
3
|
+
"version": "8.27.1-snapshot-7",
|
|
4
4
|
"description": "A drilldown menu component",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -24,28 +24,28 @@
|
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@babel/runtime": "^7.13.10",
|
|
27
|
-
"@instructure/console": "8.27.1-snapshot-
|
|
28
|
-
"@instructure/emotion": "8.27.1-snapshot-
|
|
29
|
-
"@instructure/shared-types": "8.27.1-snapshot-
|
|
30
|
-
"@instructure/ui-dom-utils": "8.27.1-snapshot-
|
|
31
|
-
"@instructure/ui-icons": "8.27.1-snapshot-
|
|
32
|
-
"@instructure/ui-options": "8.27.1-snapshot-
|
|
33
|
-
"@instructure/ui-popover": "8.27.1-snapshot-
|
|
34
|
-
"@instructure/ui-position": "8.27.1-snapshot-
|
|
35
|
-
"@instructure/ui-prop-types": "8.27.1-snapshot-
|
|
36
|
-
"@instructure/ui-react-utils": "8.27.1-snapshot-
|
|
37
|
-
"@instructure/ui-selectable": "8.27.1-snapshot-
|
|
38
|
-
"@instructure/ui-testable": "8.27.1-snapshot-
|
|
39
|
-
"@instructure/ui-utils": "8.27.1-snapshot-
|
|
40
|
-
"@instructure/ui-view": "8.27.1-snapshot-
|
|
27
|
+
"@instructure/console": "8.27.1-snapshot-7",
|
|
28
|
+
"@instructure/emotion": "8.27.1-snapshot-7",
|
|
29
|
+
"@instructure/shared-types": "8.27.1-snapshot-7",
|
|
30
|
+
"@instructure/ui-dom-utils": "8.27.1-snapshot-7",
|
|
31
|
+
"@instructure/ui-icons": "8.27.1-snapshot-7",
|
|
32
|
+
"@instructure/ui-options": "8.27.1-snapshot-7",
|
|
33
|
+
"@instructure/ui-popover": "8.27.1-snapshot-7",
|
|
34
|
+
"@instructure/ui-position": "8.27.1-snapshot-7",
|
|
35
|
+
"@instructure/ui-prop-types": "8.27.1-snapshot-7",
|
|
36
|
+
"@instructure/ui-react-utils": "8.27.1-snapshot-7",
|
|
37
|
+
"@instructure/ui-selectable": "8.27.1-snapshot-7",
|
|
38
|
+
"@instructure/ui-testable": "8.27.1-snapshot-7",
|
|
39
|
+
"@instructure/ui-utils": "8.27.1-snapshot-7",
|
|
40
|
+
"@instructure/ui-view": "8.27.1-snapshot-7",
|
|
41
41
|
"prop-types": "^15"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@instructure/ui-babel-preset": "8.27.1-snapshot-
|
|
45
|
-
"@instructure/ui-color-utils": "8.27.1-snapshot-
|
|
46
|
-
"@instructure/ui-test-locator": "8.27.1-snapshot-
|
|
47
|
-
"@instructure/ui-test-utils": "8.27.1-snapshot-
|
|
48
|
-
"@instructure/ui-themes": "8.27.1-snapshot-
|
|
44
|
+
"@instructure/ui-babel-preset": "8.27.1-snapshot-7",
|
|
45
|
+
"@instructure/ui-color-utils": "8.27.1-snapshot-7",
|
|
46
|
+
"@instructure/ui-test-locator": "8.27.1-snapshot-7",
|
|
47
|
+
"@instructure/ui-test-utils": "8.27.1-snapshot-7",
|
|
48
|
+
"@instructure/ui-themes": "8.27.1-snapshot-7"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"react": ">=16.8 <=18"
|
package/src/Drilldown/index.tsx
CHANGED
|
@@ -1304,6 +1304,8 @@ class Drilldown extends Component<DrilldownProps, DrilldownState> {
|
|
|
1304
1304
|
overflowX,
|
|
1305
1305
|
height,
|
|
1306
1306
|
width,
|
|
1307
|
+
minHeight,
|
|
1308
|
+
minWidth,
|
|
1307
1309
|
maxHeight,
|
|
1308
1310
|
maxWidth,
|
|
1309
1311
|
role,
|
|
@@ -1353,6 +1355,7 @@ class Drilldown extends Component<DrilldownProps, DrilldownState> {
|
|
|
1353
1355
|
position="relative"
|
|
1354
1356
|
borderRadius="small"
|
|
1355
1357
|
width={width}
|
|
1358
|
+
minWidth={maxWidth}
|
|
1356
1359
|
maxWidth={maxWidth}
|
|
1357
1360
|
role={role}
|
|
1358
1361
|
aria-label={label}
|
|
@@ -1391,6 +1394,8 @@ class Drilldown extends Component<DrilldownProps, DrilldownState> {
|
|
|
1391
1394
|
overflowX={overflowX}
|
|
1392
1395
|
height={height}
|
|
1393
1396
|
width={width}
|
|
1397
|
+
minHeight={minHeight}
|
|
1398
|
+
minWidth={minWidth}
|
|
1394
1399
|
maxHeight={maxHeight}
|
|
1395
1400
|
maxWidth={maxWidth}
|
|
1396
1401
|
css={styles?.container}
|
package/src/Drilldown/props.ts
CHANGED
|
@@ -27,10 +27,12 @@ import PropTypes from 'prop-types'
|
|
|
27
27
|
|
|
28
28
|
import { Children, controllable } from '@instructure/ui-prop-types'
|
|
29
29
|
import { PositionPropTypes } from '@instructure/ui-position'
|
|
30
|
+
|
|
30
31
|
import { Popover } from '@instructure/ui-popover'
|
|
31
|
-
import type { WithDeterministicIdProps } from '@instructure/ui-react-utils'
|
|
32
32
|
|
|
33
33
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
|
|
34
|
+
|
|
35
|
+
import type { WithDeterministicIdProps } from '@instructure/ui-react-utils'
|
|
34
36
|
import type {
|
|
35
37
|
PlacementPropValues,
|
|
36
38
|
PositionConstraint,
|
|
@@ -122,6 +124,8 @@ type DrilldownOwnProps = {
|
|
|
122
124
|
overflowY?: 'auto' | 'hidden' | 'visible'
|
|
123
125
|
height?: string | number
|
|
124
126
|
width?: string | number
|
|
127
|
+
minHeight?: string | number
|
|
128
|
+
minWidth?: string | number
|
|
125
129
|
maxHeight?: string | number
|
|
126
130
|
maxWidth?: string | number
|
|
127
131
|
|
|
@@ -300,6 +304,8 @@ const propTypes: PropValidators<PropKeys> = {
|
|
|
300
304
|
overflowY: PropTypes.oneOf(['auto', 'hidden', 'visible']),
|
|
301
305
|
height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
302
306
|
width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
307
|
+
minHeight: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
308
|
+
minWidth: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
303
309
|
maxHeight: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
304
310
|
maxWidth: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
305
311
|
|
|
@@ -337,6 +343,8 @@ const allowedProps: AllowedPropKeys = [
|
|
|
337
343
|
'overflowY',
|
|
338
344
|
'height',
|
|
339
345
|
'width',
|
|
346
|
+
'minHeight',
|
|
347
|
+
'minWidth',
|
|
340
348
|
'maxHeight',
|
|
341
349
|
'maxWidth',
|
|
342
350
|
|
package/src/index.ts
CHANGED
|
@@ -23,4 +23,18 @@
|
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
25
|
export { Drilldown } from './Drilldown'
|
|
26
|
-
|
|
26
|
+
|
|
27
|
+
export type {
|
|
28
|
+
DrilldownProps,
|
|
29
|
+
PageChild as DrilldownPageChild,
|
|
30
|
+
GroupChild as DrilldownGroupChild,
|
|
31
|
+
OptionChild as DrilldownOptionChild,
|
|
32
|
+
SeparatorChild as DrilldownSeparatorChild
|
|
33
|
+
} from './Drilldown/props'
|
|
34
|
+
export type { DrilldownGroupProps } from './Drilldown/DrilldownGroup/props'
|
|
35
|
+
export type { DrilldownOptionProps } from './Drilldown/DrilldownOption/props'
|
|
36
|
+
export type {
|
|
37
|
+
DrilldownPageProps,
|
|
38
|
+
PageChildren as DrilldownPageChildren
|
|
39
|
+
} from './Drilldown/DrilldownPage/props'
|
|
40
|
+
export type { DrilldownSeparatorProps } from './Drilldown/DrilldownSeparator/props'
|