@splunk/react-ui 4.13.0 → 4.14.0

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 (109) hide show
  1. package/.storybook-visual/config/snapshotResolver.js +29 -0
  2. package/.storybook-visual/main.js +22 -0
  3. package/.storybook-visual/preview.jsx +31 -0
  4. package/.storybook-visual/scripts/test.sh +108 -0
  5. package/.storybook-visual/test-runner.js +108 -0
  6. package/Accordion.js +4 -4
  7. package/Anchor.js +2 -2
  8. package/Animation.js +6 -6
  9. package/AnimationToggle.js +2 -2
  10. package/Box.js +2 -2
  11. package/Button.js +28 -28
  12. package/ButtonGroup.js +2 -2
  13. package/ButtonSimple.js +2 -2
  14. package/CHANGELOG.md +16 -1
  15. package/Calendar.js +365 -70
  16. package/Card.js +30 -28
  17. package/CardLayout.js +2 -2
  18. package/Chip.js +10 -10
  19. package/Clickable.js +9 -9
  20. package/CloseButton.js +8 -8
  21. package/Code.js +4 -4
  22. package/CollapsiblePanel.js +15 -11
  23. package/Color.js +27 -27
  24. package/ColumnLayout.js +6 -6
  25. package/ComboBox.js +19 -19
  26. package/Concertina.js +6 -6
  27. package/ControlGroup.js +14 -13
  28. package/Date.js +118 -55
  29. package/DefinitionList.js +2 -2
  30. package/Divider.js +194 -0
  31. package/Dropdown.js +13 -13
  32. package/EventListener.js +4 -4
  33. package/File.js +16 -16
  34. package/FormRows.js +14 -14
  35. package/Heading.js +2 -2
  36. package/Image.js +12 -12
  37. package/JSONTree.js +2 -2
  38. package/Layer.js +85 -8
  39. package/Link.js +9 -9
  40. package/List.js +2 -2
  41. package/Markdown.js +18 -18
  42. package/Menu.js +32 -32
  43. package/Message.js +32 -32
  44. package/MessageBar.js +22 -22
  45. package/Modal.js +63 -37
  46. package/ModalLayer.js +11 -11
  47. package/Monogram.js +2 -2
  48. package/Multiselect.js +61 -61
  49. package/Number.js +8 -6
  50. package/Paginator.js +17 -17
  51. package/Paragraph.js +2 -2
  52. package/Popover.js +175 -17
  53. package/Progress.js +8 -8
  54. package/RadioBar.js +2 -2
  55. package/RadioList.js +4 -4
  56. package/Resize.js +4 -4
  57. package/ResultsMenu.js +20 -20
  58. package/ScreenReaderContent.js +2 -2
  59. package/Scroll.js +13 -13
  60. package/ScrollContainerContext.js +154 -3
  61. package/Search.js +28 -28
  62. package/Select.js +41 -41
  63. package/SidePanel.js +6 -6
  64. package/Slider.js +14 -14
  65. package/SlidingPanels.js +11 -11
  66. package/SplitButton.js +12 -12
  67. package/StaticContent.js +2 -2
  68. package/StepBar.js +10 -10
  69. package/Switch.js +8 -8
  70. package/TabBar.js +15 -15
  71. package/TabLayout.js +6 -6
  72. package/Table.js +249 -67
  73. package/Text.js +31 -30
  74. package/TextArea.js +31 -31
  75. package/Tooltip.js +17 -11
  76. package/TransitionOpen.js +39 -15
  77. package/Typography.js +4 -4
  78. package/WaitSpinner.js +4 -70
  79. package/package.json +10 -12
  80. package/test-runner-jest.config.js +18 -5
  81. package/types/src/Calendar/Calendar.d.ts +15 -2
  82. package/types/src/Calendar/DateTable.d.ts +7 -3
  83. package/types/src/Calendar/Day.d.ts +14 -5
  84. package/types/src/CollapsiblePanel/CollapsiblePanel.d.ts +7 -3
  85. package/types/src/Date/Date.d.ts +17 -8
  86. package/types/src/Date/docs/examples/CustomDate.d.ts +2 -2
  87. package/types/src/Date/docs/examples/Disabled.d.ts +2 -2
  88. package/types/src/Date/docs/examples/prisma/WithoutCalendar.d.ts +2 -0
  89. package/types/src/Divider/Divider.d.ts +20 -0
  90. package/types/src/Divider/docs/examples/AriaHidden.d.ts +2 -0
  91. package/types/src/Divider/docs/examples/Basic.d.ts +2 -0
  92. package/types/src/Divider/docs/examples/CustomStyle.d.ts +2 -0
  93. package/types/src/Divider/docs/examples/Vertical.d.ts +2 -0
  94. package/types/src/Divider/index.d.ts +1 -0
  95. package/types/src/Modal/Modal.d.ts +7 -3
  96. package/types/src/Modal/ModalContext.d.ts +1 -0
  97. package/types/src/Number/Number.d.ts +5 -1
  98. package/types/src/SplitButton/docs/examples/Disabled.d.ts +1 -1
  99. package/types/src/SplitButton/docs/examples/prisma/Disabled.d.ts +1 -1
  100. package/types/src/Table/docs/examples/FilterColumnValues.d.ts +14 -0
  101. package/types/src/Tooltip/Tooltip.d.ts +10 -5
  102. package/types/src/TransitionOpen/TransitionOpen.d.ts +7 -3
  103. package/types/src/WaitSpinner/WaitSpinner.d.ts +1 -1
  104. package/types/src/useKeyPress/index.d.ts +37 -0
  105. package/useForceUpdate.js +2 -2
  106. package/{useIsSsr.js → useKeyPress.js} +56 -49
  107. package/usePrevious.js +2 -2
  108. package/types/src/useIsSsr/index.d.ts +0 -2
  109. package/types/src/useIsSsr/useIsSsr.d.ts +0 -8
package/WaitSpinner.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 177);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 181);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
101
101
 
102
102
  /***/ }),
103
103
 
104
- /***/ 177:
104
+ /***/ 181:
105
105
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
106
106
 
107
107
  "use strict";
@@ -120,7 +120,7 @@ var external_prop_types_ = __webpack_require__(1);
120
120
  var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
121
121
 
122
122
  // EXTERNAL MODULE: external "@splunk/react-ui/AnimationToggle"
123
- var AnimationToggle_ = __webpack_require__(36);
123
+ var AnimationToggle_ = __webpack_require__(38);
124
124
 
125
125
  // EXTERNAL MODULE: external "@splunk/themes"
126
126
  var themes_ = __webpack_require__(0);
@@ -198,9 +198,6 @@ var StyledEnterpriseCircle = external_styled_components_default.a.circle.withCon
198
198
  enterprise: Object(external_styled_components_["css"])(["stroke-dasharray:34 19;"])
199
199
  }));
200
200
 
201
- // EXTERNAL MODULE: ./src/useIsSsr/index.ts + 1 modules
202
- var useIsSsr = __webpack_require__(80);
203
-
204
201
  // CONCATENATED MODULE: ./src/WaitSpinner/WaitSpinner.tsx
205
202
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
206
203
 
@@ -214,7 +211,6 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
214
211
 
215
212
 
216
213
 
217
-
218
214
  var propTypes = {
219
215
  elementRef: external_prop_types_default.a.oneOfType([external_prop_types_default.a.func, external_prop_types_default.a.object]),
220
216
  screenReaderText: external_prop_types_default.a.string,
@@ -236,12 +232,6 @@ function WaitSpinner(_ref) {
236
232
  isPrisma = _useSplunkTheme.isPrisma;
237
233
 
238
234
  var viewBox = isPrisma ? '0 0 40 40' : '0 0 19 19';
239
- var isSsr = Object(useIsSsr["default"])();
240
-
241
- if (isSsr) {
242
- return null;
243
- }
244
-
245
235
  return /*#__PURE__*/external_react_default.a.createElement(Styled, _extends({
246
236
  "data-test": "wait-spinner"
247
237
  }, otherProps), /*#__PURE__*/external_react_default.a.createElement(StyledSvg, {
@@ -291,7 +281,7 @@ module.exports = require("styled-components");
291
281
 
292
282
  /***/ }),
293
283
 
294
- /***/ 36:
284
+ /***/ 38:
295
285
  /***/ (function(module, exports) {
296
286
 
297
287
  module.exports = require("@splunk/react-ui/AnimationToggle");
@@ -303,62 +293,6 @@ module.exports = require("@splunk/react-ui/AnimationToggle");
303
293
 
304
294
  module.exports = require("@splunk/ui-utils/i18n");
305
295
 
306
- /***/ }),
307
-
308
- /***/ 80:
309
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
310
-
311
- "use strict";
312
- // ESM COMPAT FLAG
313
- __webpack_require__.r(__webpack_exports__);
314
-
315
- // EXPORTS
316
- __webpack_require__.d(__webpack_exports__, "default", function() { return /* reexport */ src_useIsSsr_useIsSsr; });
317
-
318
- // EXTERNAL MODULE: external "react"
319
- var external_react_ = __webpack_require__(2);
320
-
321
- // CONCATENATED MODULE: ./src/useIsSsr/useIsSsr.tsx
322
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
323
-
324
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
325
-
326
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
327
-
328
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
329
-
330
- function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
331
-
332
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
333
-
334
-
335
- /**
336
- * This is a private component not intended for use outside @splunk/react-ui
337
- *
338
- * Checks if the application is server side rendered and returns boolean
339
- * to be used in components that utilize "window" or "document" objects.
340
- */
341
-
342
- var useIsSsr_useIsSsr = function useIsSsr() {
343
- // we always start off in "SSR mode", to ensure our initial browser render
344
- var _useState = Object(external_react_["useState"])(true),
345
- _useState2 = _slicedToArray(_useState, 2),
346
- isSsr = _useState2[0],
347
- setIsSsr = _useState2[1];
348
-
349
- Object(external_react_["useEffect"])(function () {
350
- // `useEffect` never runs on the server, so we must be on the client if
351
- // we hit this block
352
- setIsSsr(false);
353
- }, []);
354
- return isSsr;
355
- };
356
-
357
- /* harmony default export */ var src_useIsSsr_useIsSsr = (useIsSsr_useIsSsr);
358
- // CONCATENATED MODULE: ./src/useIsSsr/index.ts
359
-
360
-
361
-
362
296
  /***/ })
363
297
 
364
298
  /******/ });
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@splunk/react-ui",
3
- "version": "4.13.0",
3
+ "version": "4.14.0",
4
4
  "description": "Library of React components that implement the Splunk design language",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Splunk Inc.",
7
7
  "scripts": {
8
- "build": "cross-env NODE_ENV=production webpack && yarn types:build && yarn build-storybook",
8
+ "build": "cross-env NODE_ENV=production webpack && yarn types:build",
9
9
  "docs": "NODE_ENV=production webpack --config docs.gen.webpack.config.js",
10
10
  "docs:publish": "cicd-publish-docs docs --force",
11
11
  "docs:publish:external": "cicd-publish-docs docs-external --force --suffix=public",
@@ -17,20 +17,17 @@
17
17
  "lint:ci": "yarn run eslint:ci && yarn run stylelint",
18
18
  "start": "cross-env NODE_ENV=development webpack --watch",
19
19
  "storybook": "start-storybook -p 6006",
20
- "storybook:test": "./.storybook/scripts/test.sh",
21
- "storybook:test:all": "./.storybook/scripts/test.sh --all",
22
- "storybook:build": "./.storybook/scripts/build.sh",
20
+ "storybook:test": "./.storybook-visual/scripts/test.sh",
21
+ "storybook:test:all": "./.storybook-visual/scripts/test.sh --all",
22
+ "storybook:a11y": "./.storybook-visual/scripts/test.sh --a11y",
23
+ "storybook:a11y:all": "./.storybook-visual/scripts/test.sh --a11y --all",
24
+ "storybook:build": "yarn build-storybook",
23
25
  "stylelint": "stylelint \"src/**/*.{ts,tsx,js,jsx}\" --config stylelint.config.js",
24
26
  "test": "jest",
25
27
  "test:ci": "JEST_JUNIT_OUTPUT_DIR=./test-reports JEST_JUNIT_OUTPUT_NAME=unit-results.xml JEST_JUNIT_CLASSNAME=unit yarn run test --ci --reporters=default jest-junit --coverage --coverageDirectory=coverage_report/coverage_maps_unit --coverageReporters=cobertura",
26
28
  "test:watch": "jest --watch",
27
- "test:functional": "splunk-wdio-functional-test-runner functional.local.conf.js",
28
- "test:functional:coverage": "cross-env NODE_ENV=test-coverage splunk-wdio-functional-test-runner functional.local.conf.js --coverage",
29
- "test:functional:ci": "cross-env NODE_ENV=test-coverage splunk-wdio-functional-test-runner functional.ci.conf.js --coverage-maps",
30
- "test:functional:cloud": "splunk-wdio-functional-test-runner functional.cloud.conf.js",
31
29
  "test:cypress": "yarn cypress open-ct",
32
30
  "test:cypress:ci": "yarn cypress run-ct",
33
- "test:visual:cloud": "splunk-wdio-functional-test-runner functional.visual.conf.js",
34
31
  "types:build": "tsc --emitDeclarationOnly --declaration --declarationDir ./types && node ./scripts/pruneTypes.js",
35
32
  "types:start": "yarn types:build --watch"
36
33
  },
@@ -40,7 +37,7 @@
40
37
  "styled-components": "5.1.1"
41
38
  },
42
39
  "dependencies": {
43
- "@splunk/react-icons": "^3.2.0",
40
+ "@splunk/react-icons": "^3.3.0",
44
41
  "@splunk/themes": "^0.13.0",
45
42
  "@splunk/ui-utils": "^1.5.1",
46
43
  "@types/commonmark": "^0.27.0",
@@ -82,7 +79,7 @@
82
79
  "@storybook/addon-interactions": "^6.5.9",
83
80
  "@storybook/csf": "^0.0.1",
84
81
  "@storybook/react": "^6.5.9",
85
- "@storybook/test-runner": "^0.4.0",
82
+ "@storybook/test-runner": "^0.9.0",
86
83
  "@storybook/testing-react": "^1.3.0",
87
84
  "@testing-library/cypress": "^8.0.2",
88
85
  "@testing-library/jest-dom": "^5.16.1",
@@ -125,6 +122,7 @@
125
122
  "fs-readdir-recursive": "^1.0.0",
126
123
  "glob": "^7.1.6",
127
124
  "html-webpack-plugin": "^3.2.0",
125
+ "http-server": "^14.1.1",
128
126
  "jest": "^25.1.0",
129
127
  "jest-image-snapshot": "^5.1.0",
130
128
  "jest-junit": "^10.0.0",
@@ -18,17 +18,30 @@ module.exports = {
18
18
  '^.+\\.examples\\.[jt]sx?$': '@storybook/test-runner/playwright/transform',
19
19
  '^.+\\.tsx?$': 'babel-jest',
20
20
  },
21
- snapshotResolver: '<rootDir>/.storybook/config/snapshotResolver.js',
21
+ snapshotResolver: '<rootDir>/.storybook-visual/config/snapshotResolver.js',
22
22
  reporters: [
23
23
  'default',
24
24
  [
25
25
  'jest-stare',
26
26
  {
27
- resultDir: `./test-reports/${process.env.STORYBOOK_TEST_BROWSER}-${process.env.STORYBOOK_THEME_FAMILY}`,
28
- reportTitle: `Visual A11y Test Report - ${process.env.STORYBOOK_TEST_BROWSER} ${process.env.STORYBOOK_THEME_FAMILY}`,
29
- reportHeadline: `Visual A11y Test Report - ${process.env.STORYBOOK_TEST_BROWSER} ${process.env.STORYBOOK_THEME_FAMILY}`,
27
+ resultDir: `./test-reports/${
28
+ process.env.STORYBOOK_TEST_A11Y === 'false' ? 'visual' : 'a11y'
29
+ }/${process.env.STORYBOOK_TEST_BROWSER}-${process.env.STORYBOOK_THEME_FAMILY}`,
30
+ reportTitle: `${
31
+ process.env.STORYBOOK_TEST_A11Y === 'false' ? 'Visual' : 'A11y'
32
+ } Test Report - ${process.env.STORYBOOK_TEST_BROWSER} ${
33
+ process.env.STORYBOOK_THEME_FAMILY
34
+ }`,
35
+ reportHeadline: `${
36
+ process.env.STORYBOOK_TEST_A11Y === 'false' ? 'Visual' : 'A11y'
37
+ } Test Report - ${process.env.STORYBOOK_TEST_BROWSER} ${
38
+ process.env.STORYBOOK_THEME_FAMILY
39
+ }`,
30
40
  hidePending: true,
31
- resultHtml: `visual-report.html`,
41
+ resultHtml:
42
+ process.env.STORYBOOK_TEST_A11Y === 'false'
43
+ ? 'visual-report.html'
44
+ : 'a11y-report.html',
32
45
  },
33
46
  ],
34
47
  ],
@@ -2,12 +2,17 @@ import React, { Component } from 'react';
2
2
  import { DateTableChangeHandler } from './DateTable';
3
3
  import { ClassComponentProps } from '../utils/types';
4
4
  declare type CalendarChangeHandler = DateTableChangeHandler;
5
+ declare const calendarActiveSelector = "[data-active-day=\"true\"]";
5
6
  interface CalendarPropsBase {
6
7
  /**
7
8
  * The id of the description. When placed in a ControlGroup, this automatically set to the
8
9
  * ControlGroup's help component.
9
10
  */
10
11
  describedBy?: string;
12
+ /**
13
+ * A React ref which is set to the DOM element when the component mounts and null when it unmounts.
14
+ */
15
+ elementRef?: React.Ref<HTMLDivElement>;
11
16
  /** Highlight today's day. */
12
17
  highlightToday?: boolean;
13
18
  /**
@@ -31,20 +36,28 @@ declare type CalendarProps = ClassComponentProps<CalendarPropsBase, typeof defau
31
36
  interface CalendarState {
32
37
  internalValue: string;
33
38
  todayValue: string;
39
+ source: 'day' | 'month' | null;
34
40
  }
35
41
  declare class Calendar extends Component<CalendarProps, CalendarState> {
36
42
  private monthHeaderId;
37
43
  private todayTimerId?;
44
+ private calendarRef;
38
45
  static propTypes: React.WeakValidationMap<ClassComponentProps<CalendarPropsBase, Required<Pick<CalendarPropsBase, "value" | "locale">>, "div", never>>;
39
46
  static defaultProps: Required<Pick<CalendarPropsBase, "value" | "locale">>;
40
47
  constructor(props: Readonly<CalendarProps>);
41
48
  componentDidMount(): void;
42
49
  componentWillUnmount(): void;
43
- componentDidUpdate(prevProps: Readonly<CalendarProps>): void;
50
+ componentDidUpdate(prevProps: Readonly<CalendarProps>, prevState: Readonly<CalendarState>): void;
51
+ /**
52
+ * Place focus on the active day.
53
+ */
54
+ focusActiveDay(): void;
44
55
  private getToday;
45
56
  private handleMonthChange;
57
+ private handleDayChange;
46
58
  private static validateValue;
59
+ private handleCalendarMount;
47
60
  render(): JSX.Element;
48
61
  }
49
62
  export default Calendar;
50
- export { CalendarChangeHandler };
63
+ export { CalendarChangeHandler, calendarActiveSelector };
@@ -1,18 +1,21 @@
1
+ import React from 'react';
1
2
  import PropTypes from 'prop-types';
2
- import { DayClickHandler } from './Day';
3
3
  import { ComponentProps } from '../utils/types';
4
- declare type DateTableChangeHandler = DayClickHandler;
4
+ declare type DateTableChangeHandler = (event: React.MouseEvent<HTMLTableCellElement> | React.KeyboardEvent<HTMLTableCellElement>, data: {
5
+ value: string;
6
+ }) => void;
5
7
  interface DateTablePropsBase {
6
8
  displayValue: string;
7
9
  highlightToday?: boolean;
8
10
  labelledBy?: string;
9
11
  locale?: string;
10
12
  onChange?: DateTableChangeHandler;
13
+ onInternalChange?: DateTableChangeHandler;
11
14
  selectedValue: string;
12
15
  todayValue?: string;
13
16
  }
14
17
  declare type DateTableProps = ComponentProps<DateTablePropsBase, 'table'>;
15
- declare function DateTable({ displayValue, highlightToday, labelledBy, locale, onChange, selectedValue, todayValue, ...otherProps }: DateTableProps): JSX.Element;
18
+ declare function DateTable({ displayValue, highlightToday, labelledBy, locale, onChange, onInternalChange, selectedValue, todayValue, ...otherProps }: DateTableProps): JSX.Element;
16
19
  declare namespace DateTable {
17
20
  var propTypes: {
18
21
  displayValue: PropTypes.Validator<string>;
@@ -20,6 +23,7 @@ declare namespace DateTable {
20
23
  labelledBy: PropTypes.Requireable<string>;
21
24
  locale: PropTypes.Requireable<string>;
22
25
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
26
+ onInternalChange: PropTypes.Requireable<(...args: any[]) => any>;
23
27
  selectedValue: PropTypes.Validator<string>;
24
28
  todayValue: PropTypes.Requireable<string>;
25
29
  };
@@ -1,31 +1,40 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { ComponentProps } from '../utils/types';
4
- declare type DayClickHandler = (event: React.MouseEvent<HTMLButtonElement>, data: {
4
+ declare type DayClickHandler = (event: React.MouseEvent<HTMLTableCellElement>, data: {
5
5
  value: string;
6
6
  }) => void;
7
- interface DayPropsBase {
8
- /** Day number to be displayed */
7
+ declare type DayKeyDownHandler = (event: React.KeyboardEvent<HTMLTableCellElement>, data: {
9
8
  value: string;
9
+ }) => void;
10
+ interface DayPropsBase {
11
+ /** Whether or not this day has the active cursor. */
12
+ active?: boolean;
10
13
  /** Locale set by language and localization specifiers. */
11
14
  locale?: string;
12
15
  /** Callback for click */
13
16
  onClick?: DayClickHandler;
17
+ /** Callback for keyDown */
18
+ onKeyDown?: DayKeyDownHandler;
14
19
  /** Whether or not this day is selected. */
15
20
  selected?: boolean;
16
21
  /** Indicate the day is today. */
17
22
  today?: boolean;
23
+ /** Day number to be displayed */
24
+ value: string;
18
25
  }
19
26
  declare type DayProps = ComponentProps<DayPropsBase, 'td'>;
20
- declare function Day({ locale, onClick, selected, today, value, ...otherProps }: DayProps): JSX.Element;
27
+ declare function Day({ active, locale, onClick, onKeyDown, selected, today, value, ...otherProps }: DayProps): JSX.Element;
21
28
  declare namespace Day {
22
29
  var propTypes: {
30
+ active: PropTypes.Requireable<boolean>;
23
31
  locale: PropTypes.Requireable<string>;
24
32
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
33
+ onKeydown: PropTypes.Requireable<(...args: any[]) => any>;
25
34
  selected: PropTypes.Requireable<boolean>;
26
35
  today: PropTypes.Requireable<boolean>;
27
36
  value: PropTypes.Requireable<string>;
28
37
  };
29
38
  }
30
39
  export default Day;
31
- export { DayClickHandler };
40
+ export { DayClickHandler, DayKeyDownHandler };
@@ -65,6 +65,10 @@ interface CollapsiblePanelPropsBase {
65
65
  * is permitted, as is `null` (which will use the CSS default of "visible")
66
66
  */
67
67
  overflow?: string;
68
+ /**
69
+ * When true, children are always rendered whether collapsed or not.
70
+ */
71
+ renderChildrenWhenCollapsed?: boolean;
68
72
  /**
69
73
  * Displays the name of the panel in its title bar.
70
74
  */
@@ -83,7 +87,7 @@ interface CollapsiblePanelUncontrolledProps extends CollapsiblePanelPropsBase {
83
87
  defaultOpen?: boolean;
84
88
  open?: never;
85
89
  }
86
- declare const defaultProps: Required<Pick<CollapsiblePanelPropsBase, 'disabled' | 'overflow' | 'titleWithActions'>>;
90
+ declare const defaultProps: Required<Pick<CollapsiblePanelPropsBase, 'disabled' | 'overflow' | 'renderChildrenWhenCollapsed' | 'titleWithActions'>>;
87
91
  declare type CollapsiblePanelProps = ClassComponentProps<CollapsiblePanelControlledProps | CollapsiblePanelUncontrolledProps, typeof defaultProps, 'div'>;
88
92
  interface CollapsiblePanelState {
89
93
  animating: boolean;
@@ -93,8 +97,8 @@ declare class CollapsiblePanel extends Component<CollapsiblePanelProps, Collapsi
93
97
  private controlledExternally;
94
98
  private containerId;
95
99
  private toggleId;
96
- static propTypes: React.WeakValidationMap<CollapsiblePanelControlledProps & Required<Pick<CollapsiblePanelPropsBase, "overflow" | "disabled" | "titleWithActions">> & Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "slot" | "style" | "onChange" | "onPause" | "className" | "color" | "id" | "lang" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is">> | React.WeakValidationMap<CollapsiblePanelUncontrolledProps & Required<Pick<CollapsiblePanelPropsBase, "overflow" | "disabled" | "titleWithActions">> & Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "slot" | "style" | "onChange" | "onPause" | "className" | "color" | "id" | "lang" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is">>;
97
- static defaultProps: Required<Pick<CollapsiblePanelPropsBase, "overflow" | "disabled" | "titleWithActions">>;
100
+ static propTypes: React.WeakValidationMap<CollapsiblePanelControlledProps & Required<Pick<CollapsiblePanelPropsBase, "overflow" | "disabled" | "renderChildrenWhenCollapsed" | "titleWithActions">> & Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "slot" | "style" | "onChange" | "onPause" | "className" | "color" | "id" | "lang" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is">> | React.WeakValidationMap<CollapsiblePanelUncontrolledProps & Required<Pick<CollapsiblePanelPropsBase, "overflow" | "disabled" | "renderChildrenWhenCollapsed" | "titleWithActions">> & Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "slot" | "style" | "onChange" | "onPause" | "className" | "color" | "id" | "lang" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is">>;
101
+ static defaultProps: Required<Pick<CollapsiblePanelPropsBase, "overflow" | "disabled" | "renderChildrenWhenCollapsed" | "titleWithActions">>;
98
102
  constructor(props: Readonly<CollapsiblePanelProps>);
99
103
  componentDidUpdate(prevProps: Readonly<CollapsiblePanelProps>): void;
100
104
  private handleRequestClose;