@instructure/ui-drilldown 8.25.1-snapshot-20 → 8.25.1-snapshot-23
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 +1 -1
- package/es/Drilldown/index.js +0 -1
- package/lib/Drilldown/index.js +0 -1
- package/package.json +20 -20
- package/src/Drilldown/index.tsx +0 -1
- package/src/Drilldown/props.ts +21 -20
- package/src/index.ts +1 -5
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Drilldown/index.d.ts +38 -5
- package/types/Drilldown/index.d.ts.map +1 -1
- package/types/Drilldown/props.d.ts +20 -22
- package/types/Drilldown/props.d.ts.map +1 -1
- package/types/index.d.ts +1 -1
- package/types/index.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
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.25.1-snapshot-
|
|
6
|
+
## [8.25.1-snapshot-23](https://github.com/instructure/instructure-ui/compare/v8.25.0...v8.25.1-snapshot-23) (2022-06-30)
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
### Features
|
package/es/Drilldown/index.js
CHANGED
package/lib/Drilldown/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-drilldown",
|
|
3
|
-
"version": "8.25.1-snapshot-
|
|
3
|
+
"version": "8.25.1-snapshot-23",
|
|
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.25.1-snapshot-
|
|
28
|
-
"@instructure/emotion": "8.25.1-snapshot-
|
|
29
|
-
"@instructure/shared-types": "8.25.1-snapshot-
|
|
30
|
-
"@instructure/ui-dom-utils": "8.25.1-snapshot-
|
|
31
|
-
"@instructure/ui-icons": "8.25.1-snapshot-
|
|
32
|
-
"@instructure/ui-options": "8.25.1-snapshot-
|
|
33
|
-
"@instructure/ui-popover": "8.25.1-snapshot-
|
|
34
|
-
"@instructure/ui-position": "8.25.1-snapshot-
|
|
35
|
-
"@instructure/ui-prop-types": "8.25.1-snapshot-
|
|
36
|
-
"@instructure/ui-react-utils": "8.25.1-snapshot-
|
|
37
|
-
"@instructure/ui-selectable": "8.25.1-snapshot-
|
|
38
|
-
"@instructure/ui-testable": "8.25.1-snapshot-
|
|
39
|
-
"@instructure/ui-utils": "8.25.1-snapshot-
|
|
40
|
-
"@instructure/ui-view": "8.25.1-snapshot-
|
|
27
|
+
"@instructure/console": "8.25.1-snapshot-23",
|
|
28
|
+
"@instructure/emotion": "8.25.1-snapshot-23",
|
|
29
|
+
"@instructure/shared-types": "8.25.1-snapshot-23",
|
|
30
|
+
"@instructure/ui-dom-utils": "8.25.1-snapshot-23",
|
|
31
|
+
"@instructure/ui-icons": "8.25.1-snapshot-23",
|
|
32
|
+
"@instructure/ui-options": "8.25.1-snapshot-23",
|
|
33
|
+
"@instructure/ui-popover": "8.25.1-snapshot-23",
|
|
34
|
+
"@instructure/ui-position": "8.25.1-snapshot-23",
|
|
35
|
+
"@instructure/ui-prop-types": "8.25.1-snapshot-23",
|
|
36
|
+
"@instructure/ui-react-utils": "8.25.1-snapshot-23",
|
|
37
|
+
"@instructure/ui-selectable": "8.25.1-snapshot-23",
|
|
38
|
+
"@instructure/ui-testable": "8.25.1-snapshot-23",
|
|
39
|
+
"@instructure/ui-utils": "8.25.1-snapshot-23",
|
|
40
|
+
"@instructure/ui-view": "8.25.1-snapshot-23",
|
|
41
41
|
"prop-types": "^15"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@instructure/ui-babel-preset": "8.25.1-snapshot-
|
|
45
|
-
"@instructure/ui-color-utils": "8.25.1-snapshot-
|
|
46
|
-
"@instructure/ui-test-locator": "8.25.1-snapshot-
|
|
47
|
-
"@instructure/ui-test-utils": "8.25.1-snapshot-
|
|
48
|
-
"@instructure/ui-themes": "8.25.1-snapshot-
|
|
44
|
+
"@instructure/ui-babel-preset": "8.25.1-snapshot-23",
|
|
45
|
+
"@instructure/ui-color-utils": "8.25.1-snapshot-23",
|
|
46
|
+
"@instructure/ui-test-locator": "8.25.1-snapshot-23",
|
|
47
|
+
"@instructure/ui-test-utils": "8.25.1-snapshot-23",
|
|
48
|
+
"@instructure/ui-themes": "8.25.1-snapshot-23"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"react": ">=16.8 <=17"
|
package/src/Drilldown/index.tsx
CHANGED
package/src/Drilldown/props.ts
CHANGED
|
@@ -64,21 +64,6 @@ type SeparatorChild = React.ComponentElement<
|
|
|
64
64
|
DrilldownSeparatorProps,
|
|
65
65
|
DrilldownSeparator
|
|
66
66
|
>
|
|
67
|
-
type DrilldownOnSelectArgs = {
|
|
68
|
-
value: DrilldownOptionValue | DrilldownOptionValue[]
|
|
69
|
-
isSelected: boolean
|
|
70
|
-
selectedOption: OptionChild
|
|
71
|
-
drilldown: Drilldown
|
|
72
|
-
}
|
|
73
|
-
type DrilldownOnToggleArgs = {
|
|
74
|
-
shown: boolean
|
|
75
|
-
drilldown: Drilldown
|
|
76
|
-
pageHistory: string[]
|
|
77
|
-
goToPage: (
|
|
78
|
-
pageId: string
|
|
79
|
-
) => { prevPageId: string; newPageId: string } | undefined
|
|
80
|
-
goToPreviousPage: () => { prevPageId: string; newPageId: string } | undefined
|
|
81
|
-
}
|
|
82
67
|
|
|
83
68
|
type DrilldownOwnProps = {
|
|
84
69
|
/**
|
|
@@ -167,13 +152,31 @@ type DrilldownOwnProps = {
|
|
|
167
152
|
*/
|
|
168
153
|
onToggle?: (
|
|
169
154
|
event: React.UIEvent | React.FocusEvent,
|
|
170
|
-
args:
|
|
155
|
+
args: {
|
|
156
|
+
shown: boolean
|
|
157
|
+
drilldown: Drilldown
|
|
158
|
+
pageHistory: string[]
|
|
159
|
+
goToPage: (
|
|
160
|
+
pageId: string
|
|
161
|
+
) => { prevPageId: string; newPageId: string } | undefined
|
|
162
|
+
goToPreviousPage: () =>
|
|
163
|
+
| { prevPageId: string; newPageId: string }
|
|
164
|
+
| undefined
|
|
165
|
+
}
|
|
171
166
|
) => void
|
|
172
167
|
|
|
173
168
|
/**
|
|
174
169
|
* Callback fired when an item within the `<Drilldown />` is selected
|
|
175
170
|
*/
|
|
176
|
-
onSelect?: (
|
|
171
|
+
onSelect?: (
|
|
172
|
+
event: React.SyntheticEvent,
|
|
173
|
+
args: {
|
|
174
|
+
value: DrilldownOptionValue | DrilldownOptionValue[]
|
|
175
|
+
isSelected: boolean
|
|
176
|
+
selectedOption: OptionChild
|
|
177
|
+
drilldown: Drilldown
|
|
178
|
+
}
|
|
179
|
+
) => void
|
|
177
180
|
|
|
178
181
|
/**
|
|
179
182
|
* If a trigger is supplied, callback fired when the `<Drilldown />` is closed
|
|
@@ -370,8 +373,6 @@ export type {
|
|
|
370
373
|
PageChild,
|
|
371
374
|
GroupChild,
|
|
372
375
|
OptionChild,
|
|
373
|
-
SeparatorChild
|
|
374
|
-
DrilldownOnSelectArgs,
|
|
375
|
-
DrilldownOnToggleArgs
|
|
376
|
+
SeparatorChild
|
|
376
377
|
}
|
|
377
378
|
export { propTypes, allowedProps }
|