@instructure/ui-drilldown 8.25.1-snapshot-17 → 8.25.1-snapshot-20
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/package.json +20 -20
- package/src/Drilldown/props.ts +20 -21
- package/src/index.ts +5 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Drilldown/index.d.ts +4 -38
- package/types/Drilldown/index.d.ts.map +1 -1
- package/types/Drilldown/props.d.ts +22 -20
- 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,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.25.1-snapshot-
|
|
6
|
+
## [8.25.1-snapshot-20](https://github.com/instructure/instructure-ui/compare/v8.25.0...v8.25.1-snapshot-20) (2022-06-30)
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **ui-code-editor:** Add ColorPicker component ([1cbd877](https://github.com/instructure/instructure-ui/commit/1cbd87783da67144ffbd1f6ed535ccd370fd4eeb))
|
|
9
12
|
|
|
10
13
|
|
|
11
14
|
|
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-20",
|
|
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-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",
|
|
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-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"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"react": ">=16.8 <=17"
|
package/src/Drilldown/props.ts
CHANGED
|
@@ -64,6 +64,21 @@ 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
|
+
}
|
|
67
82
|
|
|
68
83
|
type DrilldownOwnProps = {
|
|
69
84
|
/**
|
|
@@ -152,31 +167,13 @@ type DrilldownOwnProps = {
|
|
|
152
167
|
*/
|
|
153
168
|
onToggle?: (
|
|
154
169
|
event: React.UIEvent | React.FocusEvent,
|
|
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
|
-
}
|
|
170
|
+
args: DrilldownOnToggleArgs
|
|
166
171
|
) => void
|
|
167
172
|
|
|
168
173
|
/**
|
|
169
174
|
* Callback fired when an item within the `<Drilldown />` is selected
|
|
170
175
|
*/
|
|
171
|
-
onSelect?: (
|
|
172
|
-
event: React.SyntheticEvent,
|
|
173
|
-
args: {
|
|
174
|
-
value: DrilldownOptionValue | DrilldownOptionValue[]
|
|
175
|
-
isSelected: boolean
|
|
176
|
-
selectedOption: OptionChild
|
|
177
|
-
drilldown: Drilldown
|
|
178
|
-
}
|
|
179
|
-
) => void
|
|
176
|
+
onSelect?: (event: React.SyntheticEvent, args: DrilldownOnSelectArgs) => void
|
|
180
177
|
|
|
181
178
|
/**
|
|
182
179
|
* If a trigger is supplied, callback fired when the `<Drilldown />` is closed
|
|
@@ -373,6 +370,8 @@ export type {
|
|
|
373
370
|
PageChild,
|
|
374
371
|
GroupChild,
|
|
375
372
|
OptionChild,
|
|
376
|
-
SeparatorChild
|
|
373
|
+
SeparatorChild,
|
|
374
|
+
DrilldownOnSelectArgs,
|
|
375
|
+
DrilldownOnToggleArgs
|
|
377
376
|
}
|
|
378
377
|
export { propTypes, allowedProps }
|