@instructure/ui-drilldown 8.25.1-snapshot-20 → 8.25.1-snapshot-21

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 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-20](https://github.com/instructure/instructure-ui/compare/v8.25.0...v8.25.1-snapshot-20) (2022-06-30)
6
+ ## [8.25.1-snapshot-21](https://github.com/instructure/instructure-ui/compare/v8.25.0...v8.25.1-snapshot-21) (2022-06-30)
7
7
 
8
8
 
9
9
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-drilldown",
3
- "version": "8.25.1-snapshot-20",
3
+ "version": "8.25.1-snapshot-21",
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-20",
28
- "@instructure/emotion": "8.25.1-snapshot-20",
29
- "@instructure/shared-types": "8.25.1-snapshot-20",
30
- "@instructure/ui-dom-utils": "8.25.1-snapshot-20",
31
- "@instructure/ui-icons": "8.25.1-snapshot-20",
32
- "@instructure/ui-options": "8.25.1-snapshot-20",
33
- "@instructure/ui-popover": "8.25.1-snapshot-20",
34
- "@instructure/ui-position": "8.25.1-snapshot-20",
35
- "@instructure/ui-prop-types": "8.25.1-snapshot-20",
36
- "@instructure/ui-react-utils": "8.25.1-snapshot-20",
37
- "@instructure/ui-selectable": "8.25.1-snapshot-20",
38
- "@instructure/ui-testable": "8.25.1-snapshot-20",
39
- "@instructure/ui-utils": "8.25.1-snapshot-20",
40
- "@instructure/ui-view": "8.25.1-snapshot-20",
27
+ "@instructure/console": "8.25.1-snapshot-21",
28
+ "@instructure/emotion": "8.25.1-snapshot-21",
29
+ "@instructure/shared-types": "8.25.1-snapshot-21",
30
+ "@instructure/ui-dom-utils": "8.25.1-snapshot-21",
31
+ "@instructure/ui-icons": "8.25.1-snapshot-21",
32
+ "@instructure/ui-options": "8.25.1-snapshot-21",
33
+ "@instructure/ui-popover": "8.25.1-snapshot-21",
34
+ "@instructure/ui-position": "8.25.1-snapshot-21",
35
+ "@instructure/ui-prop-types": "8.25.1-snapshot-21",
36
+ "@instructure/ui-react-utils": "8.25.1-snapshot-21",
37
+ "@instructure/ui-selectable": "8.25.1-snapshot-21",
38
+ "@instructure/ui-testable": "8.25.1-snapshot-21",
39
+ "@instructure/ui-utils": "8.25.1-snapshot-21",
40
+ "@instructure/ui-view": "8.25.1-snapshot-21",
41
41
  "prop-types": "^15"
42
42
  },
43
43
  "devDependencies": {
44
- "@instructure/ui-babel-preset": "8.25.1-snapshot-20",
45
- "@instructure/ui-color-utils": "8.25.1-snapshot-20",
46
- "@instructure/ui-test-locator": "8.25.1-snapshot-20",
47
- "@instructure/ui-test-utils": "8.25.1-snapshot-20",
48
- "@instructure/ui-themes": "8.25.1-snapshot-20"
44
+ "@instructure/ui-babel-preset": "8.25.1-snapshot-21",
45
+ "@instructure/ui-color-utils": "8.25.1-snapshot-21",
46
+ "@instructure/ui-test-locator": "8.25.1-snapshot-21",
47
+ "@instructure/ui-test-utils": "8.25.1-snapshot-21",
48
+ "@instructure/ui-themes": "8.25.1-snapshot-21"
49
49
  },
50
50
  "peerDependencies": {
51
51
  "react": ">=16.8 <=17"
@@ -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: DrilldownOnToggleArgs
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?: (event: React.SyntheticEvent, args: DrilldownOnSelectArgs) => void
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 }
package/src/index.ts CHANGED
@@ -23,8 +23,4 @@
23
23
  */
24
24
 
25
25
  export { Drilldown } from './Drilldown'
26
- export type {
27
- DrilldownProps,
28
- DrilldownOnSelectArgs,
29
- DrilldownOnToggleArgs
30
- } from './Drilldown/props'
26
+ export type { DrilldownProps } from './Drilldown/props'