@instructure/ui-drilldown 8.51.1-snapshot-9 → 8.51.1-snapshot-8
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 +2 -5
- package/es/Drilldown/DrilldownOption/index.js +1 -2
- package/es/Drilldown/DrilldownOption/props.js +2 -3
- package/lib/Drilldown/DrilldownOption/index.js +1 -2
- package/lib/Drilldown/DrilldownOption/props.js +2 -3
- package/package.json +20 -20
- package/src/Drilldown/DrilldownOption/index.tsx +1 -2
- package/src/Drilldown/DrilldownOption/props.ts +2 -11
- package/src/Drilldown/props.ts +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Drilldown/DrilldownOption/index.d.ts +0 -3
- package/types/Drilldown/DrilldownOption/index.d.ts.map +1 -1
- package/types/Drilldown/DrilldownOption/props.d.ts +0 -5
- package/types/Drilldown/DrilldownOption/props.d.ts.map +1 -1
- package/types/Drilldown/props.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,12 +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
|
-
## [8.51.1-snapshot-
|
|
6
|
+
## [8.51.1-snapshot-8](https://github.com/instructure/instructure-ui/compare/v8.51.0...v8.51.1-snapshot-8) (2024-02-01)
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
### Features
|
|
10
|
-
|
|
11
|
-
* **ui-drilldown,ui-top-nav-bar:** add shouldCloseOnClick ([c3df722](https://github.com/instructure/instructure-ui/commit/c3df7221b185996713a05d06ef585020bfa67c6b))
|
|
8
|
+
**Note:** Version bump only for package @instructure/ui-drilldown
|
|
12
9
|
|
|
13
10
|
|
|
14
11
|
|
|
@@ -48,8 +48,7 @@ let DrilldownOption = (_dec = withStyle(null, optionsItemThemeGenerator), _dec(_
|
|
|
48
48
|
beforeLabelContentVAlign: 'start',
|
|
49
49
|
afterLabelContentVAlign: 'start',
|
|
50
50
|
as: 'li',
|
|
51
|
-
role: 'menuitem'
|
|
52
|
-
shouldCloseOnClick: 'auto'
|
|
51
|
+
role: 'menuitem'
|
|
53
52
|
}, _class2)) || _class);
|
|
54
53
|
export default DrilldownOption;
|
|
55
54
|
export { DrilldownOption };
|
|
@@ -42,8 +42,7 @@ const propTypes = {
|
|
|
42
42
|
descriptionRole: PropTypes.string,
|
|
43
43
|
onOptionClick: PropTypes.func,
|
|
44
44
|
defaultSelected: PropTypes.bool,
|
|
45
|
-
elementRef: PropTypes.func
|
|
46
|
-
shouldCloseOnClick: PropTypes.oneOf(['auto', 'always', 'never'])
|
|
45
|
+
elementRef: PropTypes.func
|
|
47
46
|
};
|
|
48
|
-
const allowedProps = ['id', 'children', 'subPageId', 'disabled', 'selected', 'value', 'href', 'as', 'role', 'renderLabelInfo', 'renderBeforeLabel', 'renderAfterLabel', 'beforeLabelContentVAlign', 'afterLabelContentVAlign', 'description', 'descriptionRole', 'onOptionClick', 'defaultSelected', 'elementRef'
|
|
47
|
+
const allowedProps = ['id', 'children', 'subPageId', 'disabled', 'selected', 'value', 'href', 'as', 'role', 'renderLabelInfo', 'renderBeforeLabel', 'renderAfterLabel', 'beforeLabelContentVAlign', 'afterLabelContentVAlign', 'description', 'descriptionRole', 'onOptionClick', 'defaultSelected', 'elementRef'];
|
|
49
48
|
export { propTypes, allowedProps };
|
|
@@ -53,7 +53,6 @@ let DrilldownOption = exports.DrilldownOption = (_dec = (0, _emotion.withStyle)(
|
|
|
53
53
|
beforeLabelContentVAlign: 'start',
|
|
54
54
|
afterLabelContentVAlign: 'start',
|
|
55
55
|
as: 'li',
|
|
56
|
-
role: 'menuitem'
|
|
57
|
-
shouldCloseOnClick: 'auto'
|
|
56
|
+
role: 'menuitem'
|
|
58
57
|
}, _class2)) || _class);
|
|
59
58
|
var _default = exports.default = DrilldownOption;
|
|
@@ -49,7 +49,6 @@ const propTypes = exports.propTypes = {
|
|
|
49
49
|
descriptionRole: _propTypes.default.string,
|
|
50
50
|
onOptionClick: _propTypes.default.func,
|
|
51
51
|
defaultSelected: _propTypes.default.bool,
|
|
52
|
-
elementRef: _propTypes.default.func
|
|
53
|
-
shouldCloseOnClick: _propTypes.default.oneOf(['auto', 'always', 'never'])
|
|
52
|
+
elementRef: _propTypes.default.func
|
|
54
53
|
};
|
|
55
|
-
const allowedProps = exports.allowedProps = ['id', 'children', 'subPageId', 'disabled', 'selected', 'value', 'href', 'as', 'role', 'renderLabelInfo', 'renderBeforeLabel', 'renderAfterLabel', 'beforeLabelContentVAlign', 'afterLabelContentVAlign', 'description', 'descriptionRole', 'onOptionClick', 'defaultSelected', 'elementRef'
|
|
54
|
+
const allowedProps = exports.allowedProps = ['id', 'children', 'subPageId', 'disabled', 'selected', 'value', 'href', 'as', 'role', 'renderLabelInfo', 'renderBeforeLabel', 'renderAfterLabel', 'beforeLabelContentVAlign', 'afterLabelContentVAlign', 'description', 'descriptionRole', 'onOptionClick', 'defaultSelected', 'elementRef'];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-drilldown",
|
|
3
|
-
"version": "8.51.1-snapshot-
|
|
3
|
+
"version": "8.51.1-snapshot-8",
|
|
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.23.2",
|
|
27
|
-
"@instructure/console": "8.51.1-snapshot-
|
|
28
|
-
"@instructure/emotion": "8.51.1-snapshot-
|
|
29
|
-
"@instructure/shared-types": "8.51.1-snapshot-
|
|
30
|
-
"@instructure/ui-dom-utils": "8.51.1-snapshot-
|
|
31
|
-
"@instructure/ui-icons": "8.51.1-snapshot-
|
|
32
|
-
"@instructure/ui-options": "8.51.1-snapshot-
|
|
33
|
-
"@instructure/ui-popover": "8.51.1-snapshot-
|
|
34
|
-
"@instructure/ui-position": "8.51.1-snapshot-
|
|
35
|
-
"@instructure/ui-prop-types": "8.51.1-snapshot-
|
|
36
|
-
"@instructure/ui-react-utils": "8.51.1-snapshot-
|
|
37
|
-
"@instructure/ui-selectable": "8.51.1-snapshot-
|
|
38
|
-
"@instructure/ui-testable": "8.51.1-snapshot-
|
|
39
|
-
"@instructure/ui-utils": "8.51.1-snapshot-
|
|
40
|
-
"@instructure/ui-view": "8.51.1-snapshot-
|
|
27
|
+
"@instructure/console": "8.51.1-snapshot-8",
|
|
28
|
+
"@instructure/emotion": "8.51.1-snapshot-8",
|
|
29
|
+
"@instructure/shared-types": "8.51.1-snapshot-8",
|
|
30
|
+
"@instructure/ui-dom-utils": "8.51.1-snapshot-8",
|
|
31
|
+
"@instructure/ui-icons": "8.51.1-snapshot-8",
|
|
32
|
+
"@instructure/ui-options": "8.51.1-snapshot-8",
|
|
33
|
+
"@instructure/ui-popover": "8.51.1-snapshot-8",
|
|
34
|
+
"@instructure/ui-position": "8.51.1-snapshot-8",
|
|
35
|
+
"@instructure/ui-prop-types": "8.51.1-snapshot-8",
|
|
36
|
+
"@instructure/ui-react-utils": "8.51.1-snapshot-8",
|
|
37
|
+
"@instructure/ui-selectable": "8.51.1-snapshot-8",
|
|
38
|
+
"@instructure/ui-testable": "8.51.1-snapshot-8",
|
|
39
|
+
"@instructure/ui-utils": "8.51.1-snapshot-8",
|
|
40
|
+
"@instructure/ui-view": "8.51.1-snapshot-8",
|
|
41
41
|
"prop-types": "^15.8.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@instructure/ui-babel-preset": "8.51.1-snapshot-
|
|
45
|
-
"@instructure/ui-color-utils": "8.51.1-snapshot-
|
|
46
|
-
"@instructure/ui-test-locator": "8.51.1-snapshot-
|
|
47
|
-
"@instructure/ui-test-utils": "8.51.1-snapshot-
|
|
48
|
-
"@instructure/ui-themes": "8.51.1-snapshot-
|
|
44
|
+
"@instructure/ui-babel-preset": "8.51.1-snapshot-8",
|
|
45
|
+
"@instructure/ui-color-utils": "8.51.1-snapshot-8",
|
|
46
|
+
"@instructure/ui-test-locator": "8.51.1-snapshot-8",
|
|
47
|
+
"@instructure/ui-test-utils": "8.51.1-snapshot-8",
|
|
48
|
+
"@instructure/ui-themes": "8.51.1-snapshot-8"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"react": ">=16.8 <=18"
|
|
@@ -44,8 +44,6 @@ type DrilldownOptionValue = string | number | undefined
|
|
|
44
44
|
|
|
45
45
|
type RenderContentVAlign = 'start' | 'center' | 'end'
|
|
46
46
|
|
|
47
|
-
type ShouldCloseOnClick = 'auto' | 'always' | 'never'
|
|
48
|
-
|
|
49
47
|
type DrilldownOptionVariant = Exclude<OptionsItemProps['variant'], 'selected'>
|
|
50
48
|
|
|
51
49
|
type RenderContentProps = {
|
|
@@ -173,11 +171,6 @@ type DrilldownOptionOwnProps = {
|
|
|
173
171
|
* Provides a reference to the underlying html root element
|
|
174
172
|
*/
|
|
175
173
|
elementRef?: (element: Element | null) => void
|
|
176
|
-
|
|
177
|
-
/**
|
|
178
|
-
* Should close the container menu component, if clicked on the option marked with this prop
|
|
179
|
-
*/
|
|
180
|
-
shouldCloseOnClick?: ShouldCloseOnClick
|
|
181
174
|
}
|
|
182
175
|
|
|
183
176
|
type PropKeys = keyof DrilldownOptionOwnProps
|
|
@@ -207,8 +200,7 @@ const propTypes: PropValidators<PropKeys> = {
|
|
|
207
200
|
descriptionRole: PropTypes.string,
|
|
208
201
|
onOptionClick: PropTypes.func,
|
|
209
202
|
defaultSelected: PropTypes.bool,
|
|
210
|
-
elementRef: PropTypes.func
|
|
211
|
-
shouldCloseOnClick: PropTypes.oneOf(['auto', 'always', 'never'])
|
|
203
|
+
elementRef: PropTypes.func
|
|
212
204
|
}
|
|
213
205
|
|
|
214
206
|
const allowedProps: AllowedPropKeys = [
|
|
@@ -230,8 +222,7 @@ const allowedProps: AllowedPropKeys = [
|
|
|
230
222
|
'descriptionRole',
|
|
231
223
|
'onOptionClick',
|
|
232
224
|
'defaultSelected',
|
|
233
|
-
'elementRef'
|
|
234
|
-
'shouldCloseOnClick'
|
|
225
|
+
'elementRef'
|
|
235
226
|
]
|
|
236
227
|
|
|
237
228
|
export type { DrilldownOptionProps, DrilldownOptionValue }
|
package/src/Drilldown/props.ts
CHANGED
|
@@ -146,7 +146,7 @@ type DrilldownOwnProps = {
|
|
|
146
146
|
defaultShow?: boolean
|
|
147
147
|
|
|
148
148
|
/**
|
|
149
|
-
* Is the `<Drilldown />` open (should be accompanied by `onToggle`
|
|
149
|
+
* Is the `<Drilldown />` open (should be accompanied by `onToggle`)
|
|
150
150
|
*/
|
|
151
151
|
show?: boolean // TODO: type controllable(PropTypes.bool, 'onToggle', 'defaultShow')
|
|
152
152
|
|