@instructure/ui-drilldown 8.21.1-snapshot.10

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.
Files changed (89) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/LICENSE.md +27 -0
  3. package/README.md +30 -0
  4. package/es/Drilldown/DrilldownGroup/index.js +56 -0
  5. package/es/Drilldown/DrilldownGroup/props.js +42 -0
  6. package/es/Drilldown/DrilldownLocator.js +144 -0
  7. package/es/Drilldown/DrilldownOption/index.js +59 -0
  8. package/es/Drilldown/DrilldownOption/props.js +46 -0
  9. package/es/Drilldown/DrilldownPage/index.js +56 -0
  10. package/es/Drilldown/DrilldownPage/props.js +41 -0
  11. package/es/Drilldown/DrilldownSeparator/index.js +52 -0
  12. package/es/Drilldown/DrilldownSeparator/props.js +30 -0
  13. package/es/Drilldown/__examples__/Drilldown.examples.js +299 -0
  14. package/es/Drilldown/index.js +1241 -0
  15. package/es/Drilldown/locator.js +26 -0
  16. package/es/Drilldown/props.js +67 -0
  17. package/es/Drilldown/styles.js +82 -0
  18. package/es/Drilldown/theme.js +43 -0
  19. package/es/index.js +24 -0
  20. package/lib/Drilldown/DrilldownGroup/index.js +42 -0
  21. package/lib/Drilldown/DrilldownGroup/props.js +56 -0
  22. package/lib/Drilldown/DrilldownLocator.js +157 -0
  23. package/lib/Drilldown/DrilldownOption/index.js +45 -0
  24. package/lib/Drilldown/DrilldownOption/props.js +57 -0
  25. package/lib/Drilldown/DrilldownPage/index.js +66 -0
  26. package/lib/Drilldown/DrilldownPage/props.js +56 -0
  27. package/lib/Drilldown/DrilldownSeparator/index.js +38 -0
  28. package/lib/Drilldown/DrilldownSeparator/props.js +41 -0
  29. package/lib/Drilldown/__examples__/Drilldown.examples.js +289 -0
  30. package/lib/Drilldown/index.js +1253 -0
  31. package/lib/Drilldown/locator.js +40 -0
  32. package/lib/Drilldown/props.js +83 -0
  33. package/lib/Drilldown/styles.js +90 -0
  34. package/lib/Drilldown/theme.js +51 -0
  35. package/lib/index.js +13 -0
  36. package/lib/package.json +1 -0
  37. package/package.json +58 -0
  38. package/src/Drilldown/DrilldownGroup/index.tsx +64 -0
  39. package/src/Drilldown/DrilldownGroup/props.ts +149 -0
  40. package/src/Drilldown/DrilldownLocator.ts +101 -0
  41. package/src/Drilldown/DrilldownOption/index.tsx +68 -0
  42. package/src/Drilldown/DrilldownOption/props.ts +224 -0
  43. package/src/Drilldown/DrilldownPage/index.tsx +58 -0
  44. package/src/Drilldown/DrilldownPage/props.ts +129 -0
  45. package/src/Drilldown/DrilldownSeparator/index.tsx +60 -0
  46. package/src/Drilldown/DrilldownSeparator/props.ts +65 -0
  47. package/src/Drilldown/README.md +1515 -0
  48. package/src/Drilldown/__examples__/Drilldown.examples.tsx +318 -0
  49. package/src/Drilldown/index.tsx +1492 -0
  50. package/src/Drilldown/locator.ts +28 -0
  51. package/src/Drilldown/props.ts +378 -0
  52. package/src/Drilldown/styles.ts +95 -0
  53. package/src/Drilldown/theme.ts +47 -0
  54. package/src/index.ts +26 -0
  55. package/tsconfig.build.json +30 -0
  56. package/tsconfig.build.tsbuildinfo +1 -0
  57. package/tsconfig.json +4 -0
  58. package/types/Drilldown/DrilldownGroup/index.d.ts +59 -0
  59. package/types/Drilldown/DrilldownGroup/index.d.ts.map +1 -0
  60. package/types/Drilldown/DrilldownGroup/props.d.ts +65 -0
  61. package/types/Drilldown/DrilldownGroup/props.d.ts.map +1 -0
  62. package/types/Drilldown/DrilldownLocator.d.ts +652 -0
  63. package/types/Drilldown/DrilldownLocator.d.ts.map +1 -0
  64. package/types/Drilldown/DrilldownOption/index.d.ts +134 -0
  65. package/types/Drilldown/DrilldownOption/index.d.ts.map +1 -0
  66. package/types/Drilldown/DrilldownOption/props.d.ts +116 -0
  67. package/types/Drilldown/DrilldownOption/props.d.ts.map +1 -0
  68. package/types/Drilldown/DrilldownPage/index.d.ts +45 -0
  69. package/types/Drilldown/DrilldownPage/index.d.ts.map +1 -0
  70. package/types/Drilldown/DrilldownPage/props.d.ts +51 -0
  71. package/types/Drilldown/DrilldownPage/props.d.ts.map +1 -0
  72. package/types/Drilldown/DrilldownSeparator/index.d.ts +27 -0
  73. package/types/Drilldown/DrilldownSeparator/index.d.ts.map +1 -0
  74. package/types/Drilldown/DrilldownSeparator/props.d.ts +18 -0
  75. package/types/Drilldown/DrilldownSeparator/props.d.ts.map +1 -0
  76. package/types/Drilldown/__examples__/Drilldown.examples.d.ts +5 -0
  77. package/types/Drilldown/__examples__/Drilldown.examples.d.ts.map +1 -0
  78. package/types/Drilldown/index.d.ts +246 -0
  79. package/types/Drilldown/index.d.ts.map +1 -0
  80. package/types/Drilldown/locator.d.ts +4 -0
  81. package/types/Drilldown/locator.d.ts.map +1 -0
  82. package/types/Drilldown/props.d.ts +189 -0
  83. package/types/Drilldown/props.d.ts.map +1 -0
  84. package/types/Drilldown/styles.d.ts +15 -0
  85. package/types/Drilldown/styles.d.ts.map +1 -0
  86. package/types/Drilldown/theme.d.ts +10 -0
  87. package/types/Drilldown/theme.d.ts.map +1 -0
  88. package/types/index.d.ts +3 -0
  89. package/types/index.d.ts.map +1 -0
@@ -0,0 +1,246 @@
1
+ /** @jsx jsx */
2
+ /** @jsxFrag React.Fragment */
3
+ import React, { Component } from 'react';
4
+ import type { OptionsProps, OptionsSeparatorProps } from '@instructure/ui-options';
5
+ import { Popover } from '@instructure/ui-popover';
6
+ import type { SelectableRender } from '@instructure/ui-selectable';
7
+ import { jsx } from '@instructure/emotion';
8
+ import { DrilldownSeparator } from './DrilldownSeparator';
9
+ import { DrilldownOption } from './DrilldownOption';
10
+ import type { DrilldownOptionValue } from './DrilldownOption/props';
11
+ import { DrilldownGroup } from './DrilldownGroup';
12
+ import type { DrilldownGroupProps, GroupChildren } from './DrilldownGroup/props';
13
+ import { DrilldownPage } from './DrilldownPage';
14
+ import type { DrilldownPageProps, PageChildren } from './DrilldownPage/props';
15
+ import type { DrilldownProps, DrilldownStyleProps, DrilldownState, PageChild, OptionChild, GroupChild, SeparatorChild } from './props';
16
+ declare type OptionData = {
17
+ groupProps?: DrilldownGroupProps;
18
+ };
19
+ declare type MappedOption = OptionChild & OptionData;
20
+ declare type MappedPage = DrilldownPageProps & {
21
+ children: PageChildren[];
22
+ };
23
+ declare type PageMap = Record<string, MappedPage>;
24
+ declare type SelectedGroupOptionsMap = Map<string, DrilldownOptionValue>;
25
+ /**
26
+ ---
27
+ category: components
28
+ experimental: true
29
+ ---
30
+ @tsProps
31
+ **/
32
+ declare class Drilldown extends Component<DrilldownProps, DrilldownState> {
33
+ static readonly componentId = "Drilldown";
34
+ static propTypes: import("@instructure/shared-types/types/UtilityTypes").PropValidators<keyof {
35
+ rootPageId: string;
36
+ children?: PageChild | PageChild[] | undefined;
37
+ id?: string | undefined;
38
+ label?: string | undefined;
39
+ disabled?: boolean | undefined;
40
+ rotateFocus?: boolean | undefined;
41
+ as?: import("@instructure/shared-types/types/CommonProps").AsElementType | undefined;
42
+ role?: string | undefined;
43
+ elementRef?: ((el: Element | null) => void) | undefined;
44
+ drilldownRef?: ((el: HTMLDivElement | null) => void) | undefined;
45
+ overflowX?: "hidden" | "auto" | "visible" | undefined;
46
+ overflowY?: "hidden" | "auto" | "visible" | undefined;
47
+ height?: string | number | undefined;
48
+ width?: string | number | undefined;
49
+ maxHeight?: string | number | undefined;
50
+ maxWidth?: string | number | undefined;
51
+ trigger?: React.ReactNode;
52
+ placement?: import("@instructure/ui-position").PlacementPropValues | undefined;
53
+ defaultShow?: boolean | undefined;
54
+ show?: boolean | undefined;
55
+ onToggle?: ((event: React.UIEvent<Element, UIEvent> | React.FocusEvent<Element, Element>, args: {
56
+ shown: boolean;
57
+ drilldown: Drilldown;
58
+ pageHistory: string[];
59
+ goToPage: (pageId: string) => {
60
+ prevPageId: string;
61
+ newPageId: string;
62
+ } | undefined;
63
+ goToPreviousPage: () => {
64
+ prevPageId: string;
65
+ newPageId: string;
66
+ } | undefined;
67
+ }) => void) | undefined;
68
+ onSelect?: ((event: React.SyntheticEvent<Element, Event>, args: {
69
+ value: DrilldownOptionValue | DrilldownOptionValue[];
70
+ isSelected: boolean;
71
+ selectedOption: OptionChild;
72
+ drilldown: Drilldown;
73
+ }) => void) | undefined;
74
+ onDismiss?: ((event: React.UIEvent<Element, UIEvent> | React.FocusEvent<Element, Element>, documentClick: boolean) => void) | undefined;
75
+ onFocus?: ((event: React.FocusEvent<Element, Element>) => void) | undefined;
76
+ onMouseOver?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
77
+ popoverRef?: ((el: Popover | null) => void) | undefined;
78
+ mountNode?: import("@instructure/ui-position").PositionMountNode | undefined;
79
+ positionTarget?: import("@instructure/ui-position").PositionMountNode | undefined;
80
+ constrain?: import("@instructure/ui-position").PositionConstraint | undefined;
81
+ shouldHideOnSelect?: boolean | undefined;
82
+ shouldContainFocus?: boolean | undefined;
83
+ shouldReturnFocus?: boolean | undefined;
84
+ withArrow?: boolean | undefined;
85
+ offsetX?: string | number | undefined;
86
+ offsetY?: string | number | undefined;
87
+ }>;
88
+ static allowedProps: readonly (keyof {
89
+ rootPageId: string;
90
+ children?: PageChild | PageChild[] | undefined;
91
+ id?: string | undefined;
92
+ label?: string | undefined;
93
+ disabled?: boolean | undefined;
94
+ rotateFocus?: boolean | undefined;
95
+ as?: import("@instructure/shared-types/types/CommonProps").AsElementType | undefined;
96
+ role?: string | undefined;
97
+ elementRef?: ((el: Element | null) => void) | undefined;
98
+ drilldownRef?: ((el: HTMLDivElement | null) => void) | undefined;
99
+ overflowX?: "hidden" | "auto" | "visible" | undefined;
100
+ overflowY?: "hidden" | "auto" | "visible" | undefined;
101
+ height?: string | number | undefined;
102
+ width?: string | number | undefined;
103
+ maxHeight?: string | number | undefined;
104
+ maxWidth?: string | number | undefined;
105
+ trigger?: React.ReactNode;
106
+ placement?: import("@instructure/ui-position").PlacementPropValues | undefined;
107
+ defaultShow?: boolean | undefined;
108
+ show?: boolean | undefined;
109
+ onToggle?: ((event: React.UIEvent<Element, UIEvent> | React.FocusEvent<Element, Element>, args: {
110
+ shown: boolean;
111
+ drilldown: Drilldown;
112
+ pageHistory: string[];
113
+ goToPage: (pageId: string) => {
114
+ prevPageId: string;
115
+ newPageId: string;
116
+ } | undefined;
117
+ goToPreviousPage: () => {
118
+ prevPageId: string;
119
+ newPageId: string;
120
+ } | undefined;
121
+ }) => void) | undefined;
122
+ onSelect?: ((event: React.SyntheticEvent<Element, Event>, args: {
123
+ value: DrilldownOptionValue | DrilldownOptionValue[];
124
+ isSelected: boolean;
125
+ selectedOption: OptionChild;
126
+ drilldown: Drilldown;
127
+ }) => void) | undefined;
128
+ onDismiss?: ((event: React.UIEvent<Element, UIEvent> | React.FocusEvent<Element, Element>, documentClick: boolean) => void) | undefined;
129
+ onFocus?: ((event: React.FocusEvent<Element, Element>) => void) | undefined;
130
+ onMouseOver?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
131
+ popoverRef?: ((el: Popover | null) => void) | undefined;
132
+ mountNode?: import("@instructure/ui-position").PositionMountNode | undefined;
133
+ positionTarget?: import("@instructure/ui-position").PositionMountNode | undefined;
134
+ constrain?: import("@instructure/ui-position").PositionConstraint | undefined;
135
+ shouldHideOnSelect?: boolean | undefined;
136
+ shouldContainFocus?: boolean | undefined;
137
+ shouldReturnFocus?: boolean | undefined;
138
+ withArrow?: boolean | undefined;
139
+ offsetX?: string | number | undefined;
140
+ offsetY?: string | number | undefined;
141
+ })[];
142
+ static defaultProps: {
143
+ disabled: boolean;
144
+ rotateFocus: boolean;
145
+ as: string;
146
+ role: string;
147
+ overflowX: string;
148
+ overflowY: string;
149
+ placement: string;
150
+ defaultShow: boolean;
151
+ shouldHideOnSelect: boolean;
152
+ shouldContainFocus: boolean;
153
+ shouldReturnFocus: boolean;
154
+ withArrow: boolean;
155
+ offsetX: number;
156
+ offsetY: number;
157
+ };
158
+ static Group: typeof DrilldownGroup;
159
+ static Option: typeof DrilldownOption;
160
+ static Page: typeof DrilldownPage;
161
+ static Separator: typeof DrilldownSeparator;
162
+ private _drilldownRef;
163
+ private _popover;
164
+ private _trigger;
165
+ private _containerElement;
166
+ readonly _id: string;
167
+ readonly _triggerId: string;
168
+ readonly _headerBackId: string;
169
+ readonly _headerTitleId: string;
170
+ readonly _headerTitleLabelId: string;
171
+ readonly _headerActionId: string;
172
+ private readonly _pageHistory;
173
+ _activeOptionsMap: {
174
+ [optionId: string]: MappedOption;
175
+ };
176
+ _selectedGroupOptionsMap: {
177
+ [groupId: string]: SelectedGroupOptionsMap;
178
+ };
179
+ ref: HTMLDivElement | Element | null;
180
+ handleRef: (el: HTMLDivElement | Element | null) => void;
181
+ handleDrilldownRef: (el: Element | null) => void;
182
+ constructor(props: DrilldownProps);
183
+ componentDidMount(): void;
184
+ componentDidUpdate(_prevProps: DrilldownProps, prevState: DrilldownState): void;
185
+ get makeStylesVariables(): DrilldownStyleProps;
186
+ get activeOptionIds(): string[];
187
+ get activeOptions(): MappedOption[];
188
+ get pages(): PageChild[];
189
+ get pageMap(): PageMap | undefined;
190
+ get isOnRootPage(): boolean;
191
+ get currentPage(): MappedPage | undefined;
192
+ get previousPage(): MappedPage | undefined;
193
+ get exposedNavigationProps(): {
194
+ pageHistory: string[];
195
+ goToPage: (newPageId: string) => {
196
+ prevPageId: string;
197
+ newPageId: string;
198
+ } | undefined;
199
+ goToPreviousPage: () => {
200
+ newPageId: string;
201
+ prevPageId: string;
202
+ } | undefined;
203
+ };
204
+ get currentPageAriaLabel(): string | undefined;
205
+ getChildrenArray<C extends PageChildren | GroupChildren = PageChildren>(children?: C | C[]): C[];
206
+ getPageById(id?: string): MappedPage | undefined;
207
+ getPageChildById(id?: string): MappedOption | undefined;
208
+ setDefaultSelected(): void;
209
+ get selectedGroupOptionIdsArray(): string[];
210
+ get headerChildren(): PageChildren[];
211
+ get shown(): boolean;
212
+ show: (event: React.SyntheticEvent) => void;
213
+ hide: (event: React.SyntheticEvent) => void;
214
+ reset(): void;
215
+ focus(): void;
216
+ focused(): boolean;
217
+ focusOption(id: string): void;
218
+ handleOptionHighlight: (_event: React.SyntheticEvent, { id, direction }: {
219
+ id?: string | undefined;
220
+ direction?: 1 | -1 | undefined;
221
+ }) => void;
222
+ goToPage: (newPageId: string) => {
223
+ prevPageId: string;
224
+ newPageId: string;
225
+ } | undefined;
226
+ goToPreviousPage: () => {
227
+ newPageId: string;
228
+ prevPageId: string;
229
+ } | undefined;
230
+ handleBackButtonClick: () => void;
231
+ handleGroupOptionSelected(event: React.SyntheticEvent, selectedOption: MappedOption): void;
232
+ handleOptionSelect: (event: React.SyntheticEvent, { id }: {
233
+ id?: string | undefined;
234
+ }) => void;
235
+ handleKeyDown: (event: React.KeyboardEvent) => void;
236
+ handleToggle: (event: React.UIEvent | React.FocusEvent, shown: boolean) => void;
237
+ renderList(getOptionProps: SelectableRender['getOptionProps'], getDisabledOptionProps: SelectableRender['getDisabledOptionProps']): (jsx.JSX.Element | (React.ReactElement<OptionsProps, string | React.JSXElementConstructor<any>> | React.ReactElement<OptionsSeparatorProps, string | React.JSXElementConstructor<any>>)[] | null)[] | null;
238
+ renderSeparator(separator: SeparatorChild): jsx.JSX.Element;
239
+ renderOption(option: OptionChild, getOptionProps: SelectableRender['getOptionProps'], getDisabledOptionProps: SelectableRender['getDisabledOptionProps'], groupProps?: DrilldownGroupProps): jsx.JSX.Element | null;
240
+ renderGroup(group: GroupChild, getOptionProps: SelectableRender['getOptionProps'], getDisabledOptionProps: SelectableRender['getDisabledOptionProps'], needsFirstSeparator: boolean, needsLastSeparator: boolean): (React.ReactElement<OptionsProps, string | React.JSXElementConstructor<any>> | React.ReactElement<OptionsSeparatorProps, string | React.JSXElementConstructor<any>>)[] | null;
241
+ renderPage(): jsx.JSX.Element | null;
242
+ render(): jsx.JSX.Element | null;
243
+ }
244
+ export default Drilldown;
245
+ export { Drilldown };
246
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Drilldown/index.tsx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AW,aAAa,GAAG,gBAAgB,SAAS,OAAO,UAYtE;IAED,UAAU,CACR,cAAc,EAAE,gBAAgB,CAAC,gBAAgB,CAAC,EAClD,sBAAsB,EAAE,gBAAgB,CAAC,wBAAwB,CAAC;IAkEpE,eAAe,CAAC,SAAS,EAAE,cAAc;IAczC,YAAY,CACV,MAAM,EAAE,WAAW,EACnB,cAAc,EAAE,gBAAgB,CAAC,gBAAgB,CAAC,EAClD,sBAAsB,EAAE,gBAAgB,CAAC,wBAAwB,CAAC,EAClE,UAAU,CAAC,EAAE,mBAAmB;IAmQlC,WAAW,CACT,KAAK,EAAE,UAAU,EACjB,cAAc,EAAE,gBAAgB,CAAC,gBAAgB,CAAC,EAClD,sBAAsB,EAAE,gBAAgB,CAAC,wBAAwB,CAAC,EAClE,mBAAmB,EAAE,OAAO,EAC5B,kBAAkB,EAAE,OAAO;IAyE7B,UAAU;IAiHV,MAAM;CAgFP;AAED,eAAe,SAAS,CAAA;AACxB,OAAO,EAAE,SAAS,EAAE,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { DrilldownLocator } from './DrilldownLocator';
2
+ export { DrilldownLocator };
3
+ export default DrilldownLocator;
4
+ //# sourceMappingURL=locator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"locator.d.ts","sourceRoot":"","sources":["../../src/Drilldown/locator.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAErD,OAAO,EAAE,gBAAgB,EAAE,CAAA;AAC3B,eAAe,gBAAgB,CAAA"}
@@ -0,0 +1,189 @@
1
+ import React from 'react';
2
+ import { Popover } from '@instructure/ui-popover';
3
+ import type { WithDeterministicIdProps } from '@instructure/ui-react-utils';
4
+ import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
5
+ import type { PlacementPropValues, PositionConstraint, PositionMountNode } from '@instructure/ui-position';
6
+ import type { DrilldownTheme, OtherHTMLAttributes, PropValidators, AsElementType } from '@instructure/shared-types';
7
+ import { DrilldownPage } from './DrilldownPage';
8
+ import type { DrilldownPageProps } from './DrilldownPage/props';
9
+ import { DrilldownGroup } from './DrilldownGroup';
10
+ import type { DrilldownGroupProps } from './DrilldownGroup/props';
11
+ import { DrilldownOption } from './DrilldownOption';
12
+ import type { DrilldownOptionProps, DrilldownOptionValue } from './DrilldownOption/props';
13
+ import { DrilldownSeparator } from './DrilldownSeparator';
14
+ import type { DrilldownSeparatorProps } from './DrilldownSeparator/props';
15
+ import { Drilldown } from './index';
16
+ declare type PageChild = React.ComponentElement<DrilldownPageProps, DrilldownPage>;
17
+ declare type GroupChild = React.ComponentElement<DrilldownGroupProps, DrilldownGroup>;
18
+ declare type OptionChild = React.ComponentElement<DrilldownOptionProps, DrilldownOption>;
19
+ declare type SeparatorChild = React.ComponentElement<DrilldownSeparatorProps, DrilldownSeparator>;
20
+ declare type DrilldownOwnProps = {
21
+ /**
22
+ * The id of the root page
23
+ */
24
+ rootPageId: string;
25
+ /**
26
+ * Children of type `<Drilldown.Page />`
27
+ */
28
+ children?: PageChild | PageChild[];
29
+ /**
30
+ * The id of the `<Drilldown />`
31
+ */
32
+ id?: string;
33
+ /**
34
+ * Description of the `<Drilldown />` (used as `aria-label` attribute)
35
+ */
36
+ label?: string;
37
+ /**
38
+ * Is the `<Drilldown />` disabled
39
+ */
40
+ disabled?: boolean;
41
+ /**
42
+ * Whether the focus should rotate with keyboard navigation
43
+ * when reaching the first or last option
44
+ */
45
+ rotateFocus?: boolean;
46
+ /**
47
+ * Element type to render as.
48
+ */
49
+ as?: AsElementType;
50
+ /**
51
+ * The ARIA role of the element
52
+ */
53
+ role?: string;
54
+ /**
55
+ * A function that returns a reference to root HTML element
56
+ */
57
+ elementRef?: (el: Element | null) => void;
58
+ /**
59
+ * A function that returns a reference to the `<Drilldown />`
60
+ */
61
+ drilldownRef?: (el: HTMLDivElement | null) => void;
62
+ overflowX?: 'auto' | 'hidden' | 'visible';
63
+ overflowY?: 'auto' | 'hidden' | 'visible';
64
+ height?: string | number;
65
+ width?: string | number;
66
+ maxHeight?: string | number;
67
+ maxWidth?: string | number;
68
+ /**
69
+ * The trigger element, if the `<Drilldown />` is to render as a popover
70
+ */
71
+ trigger?: React.ReactNode;
72
+ /**
73
+ * If a trigger is supplied, where should the `<Drilldown />` be placed (relative to the trigger)
74
+ */
75
+ placement?: PlacementPropValues;
76
+ /**
77
+ * Should the `<Drilldown />` be open for the initial render
78
+ */
79
+ defaultShow?: boolean;
80
+ /**
81
+ * Is the `<Drilldown />` open (should be accompanied by `onToggle`)
82
+ */
83
+ show?: boolean;
84
+ /**
85
+ * Callback fired when the `<Drilldown />` is toggled open/closed.
86
+ * When used with `show`, the component will not control its own state.
87
+ */
88
+ onToggle?: (event: React.UIEvent | React.FocusEvent, args: {
89
+ shown: boolean;
90
+ drilldown: Drilldown;
91
+ pageHistory: string[];
92
+ goToPage: (pageId: string) => {
93
+ prevPageId: string;
94
+ newPageId: string;
95
+ } | undefined;
96
+ goToPreviousPage: () => {
97
+ prevPageId: string;
98
+ newPageId: string;
99
+ } | undefined;
100
+ }) => void;
101
+ /**
102
+ * Callback fired when an item within the `<Drilldown />` is selected
103
+ */
104
+ onSelect?: (event: React.SyntheticEvent, args: {
105
+ value: DrilldownOptionValue | DrilldownOptionValue[];
106
+ isSelected: boolean;
107
+ selectedOption: OptionChild;
108
+ drilldown: Drilldown;
109
+ }) => void;
110
+ /**
111
+ * If a trigger is supplied, callback fired when the `<Drilldown />` is closed
112
+ */
113
+ onDismiss?: (event: React.UIEvent | React.FocusEvent, documentClick: boolean) => void;
114
+ /**
115
+ * If a trigger is supplied, callback fired when the `<Drilldown />` trigger is focused
116
+ */
117
+ onFocus?: (event: React.FocusEvent) => void;
118
+ /**
119
+ * If a trigger is supplied, callback fired onMouseOver for the `<Drilldown />` trigger
120
+ */
121
+ onMouseOver?: (event: React.MouseEvent) => void;
122
+ /**
123
+ * If a trigger is supplied, A function that returns a reference to the `<Popover />`
124
+ */
125
+ popoverRef?: (el: Popover | null) => void;
126
+ /**
127
+ * If a trigger is supplied, an element or a function returning an element
128
+ * to use as the mount node for the `<Drilldown />` (defaults to `document.body`)
129
+ */
130
+ mountNode?: PositionMountNode;
131
+ /**
132
+ * Target element for positioning the Popover (if it differs from the trigger)
133
+ */
134
+ positionTarget?: PositionMountNode;
135
+ /**
136
+ * The parent in which to constrain the placement.
137
+ */
138
+ constrain?: PositionConstraint;
139
+ /**
140
+ * If a trigger is supplied, should the `<Drilldown />` hide when an item is selected
141
+ */
142
+ shouldHideOnSelect?: boolean;
143
+ /**
144
+ * Whether focus should be contained within the `<Drilldown/>` when it is open.
145
+ * Works only if `trigger` is provided.
146
+ */
147
+ shouldContainFocus?: boolean;
148
+ /**
149
+ * Whether focus should be returned to the trigger
150
+ * when the `<Drilldown/>` is closed.
151
+ * Works only if `trigger` is provided.
152
+ */
153
+ shouldReturnFocus?: boolean;
154
+ /**
155
+ * Whether or not an arrow pointing to the trigger should be rendered.
156
+ * Works only if `trigger` is provided.
157
+ */
158
+ withArrow?: boolean;
159
+ /**
160
+ * The horizontal offset for the positioned content.
161
+ * Works only if `trigger` is provided.
162
+ */
163
+ offsetX?: string | number;
164
+ /**
165
+ * The vertical offset for the positioned content.
166
+ * Works only if `trigger` is provided.
167
+ */
168
+ offsetY?: string | number;
169
+ };
170
+ declare type PropKeys = keyof DrilldownOwnProps;
171
+ declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
172
+ declare type DrilldownProps = DrilldownOwnProps & WithStyleProps<DrilldownTheme, DrilldownStyle> & WithDeterministicIdProps & OtherHTMLAttributes<DrilldownOwnProps>;
173
+ declare type DrilldownStyle = ComponentStyle<'drilldown' | 'container' | 'headerBack' | 'headerTitle' | 'optionContainer' | 'optionLabelInfo' | 'optionContent'> & {
174
+ headerActionColor: string;
175
+ };
176
+ declare type DrilldownStyleProps = {
177
+ hasHighlightedOption: boolean;
178
+ };
179
+ declare type DrilldownState = {
180
+ isShowingPopover: boolean;
181
+ activePageId: string;
182
+ highlightedOptionId?: string;
183
+ lastSelectedId?: string;
184
+ };
185
+ declare const propTypes: PropValidators<PropKeys>;
186
+ declare const allowedProps: AllowedPropKeys;
187
+ export type { DrilldownProps, DrilldownState, DrilldownStyle, DrilldownStyleProps, DrilldownPageProps, PageChild, GroupChild, OptionChild, SeparatorChild };
188
+ export { propTypes, allowedProps };
189
+ //# sourceMappingURL=props.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/Drilldown/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAA;AAE3E,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1E,OAAO,KAAK,EACV,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EAClB,MAAM,0BAA0B,CAAA;AACjC,OAAO,KAAK,EACV,cAAc,EACd,mBAAmB,EACnB,cAAc,EACd,aAAa,EACd,MAAM,2BAA2B,CAAA;AAElC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,KAAK,EACV,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAA;AAEzE,OAAO,EAAE,SAAS,EAAE,MAAM,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EAAE,MAAM,CAAA;IACpB,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAE5B,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,CAAA;AAED,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAqCvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAsCnB,CAAA;AAED,YAAY,EACV,cAAc,EACd,cAAc,EACd,cAAc,EACd,mBAAmB,EACnB,kBAAkB,EAClB,SAAS,EACT,UAAU,EACV,WAAW,EACX,cAAc,EACf,CAAA;AACD,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
@@ -0,0 +1,15 @@
1
+ import type { DrilldownTheme } from '@instructure/shared-types';
2
+ import type { DrilldownProps, DrilldownStyleProps, DrilldownStyle } from './props';
3
+ /**
4
+ * ---
5
+ * private: true
6
+ * ---
7
+ * Generates the style object from the theme and provided additional information
8
+ * @param {Object} componentTheme The theme variable object.
9
+ * @param {Object} props the props of the component, the style is applied to
10
+ * @param {Object} state the state of the component, the style is applied to
11
+ * @return {Object} The final style object, which will be used in the component
12
+ */
13
+ declare const generateStyle: (componentTheme: DrilldownTheme, _props: DrilldownProps, state: DrilldownStyleProps) => DrilldownStyle;
14
+ export default generateStyle;
15
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/Drilldown/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,KAAK,EACV,cAAc,EACd,mBAAmB,EACnB,cAAc,EACf,MAAM,SAAS,CAAA;AAEhB;;;;;;;;;GASG;AACH,QAAA,MAAM,aAAa,mBACD,cAAc,UACtB,cAAc,SACf,mBAAmB,KACzB,cA+CF,CAAA;AAED,eAAe,aAAa,CAAA"}
@@ -0,0 +1,10 @@
1
+ import type { Theme } from '@instructure/ui-themes';
2
+ import type { DrilldownTheme } from '@instructure/shared-types';
3
+ /**
4
+ * Generates the theme object for the component from the theme and provided additional information
5
+ * @param {Object} theme The actual theme object.
6
+ * @return {Object} The final theme object with the overrides and component variables
7
+ */
8
+ declare const generateComponentTheme: (theme: Theme) => DrilldownTheme;
9
+ export default generateComponentTheme;
10
+ //# sourceMappingURL=theme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/Drilldown/theme.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAA;AACnD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAE/D;;;;GAIG;AACH,QAAA,MAAM,sBAAsB,UAAW,KAAK,KAAG,cAY9C,CAAA;AAED,eAAe,sBAAsB,CAAA"}
@@ -0,0 +1,3 @@
1
+ export { Drilldown } from './Drilldown';
2
+ export type { DrilldownProps } from './Drilldown/props';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,YAAY,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA"}