@splunk/react-ui 4.12.1 → 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.
- package/.storybook-visual/config/snapshotResolver.js +29 -0
- package/.storybook-visual/main.js +22 -0
- package/.storybook-visual/preview.jsx +31 -0
- package/.storybook-visual/scripts/test.sh +108 -0
- package/.storybook-visual/test-runner.js +108 -0
- package/Accordion.js +4 -4
- package/Anchor.js +2 -2
- package/Animation.js +6 -6
- package/AnimationToggle.js +2 -2
- package/Box.js +2 -2
- package/Button.js +23 -23
- package/ButtonGroup.js +2 -2
- package/ButtonSimple.js +7 -7
- package/CHANGELOG.md +33 -0
- package/Calendar.js +390 -95
- package/Card.js +25 -23
- package/CardLayout.js +2 -2
- package/Chip.js +17 -17
- package/Clickable.js +4 -4
- package/CloseButton.js +15 -15
- package/Code.js +4 -4
- package/CollapsiblePanel.js +15 -11
- package/Color.js +26 -26
- package/ColumnLayout.js +6 -6
- package/ComboBox.js +19 -19
- package/Concertina.js +6 -6
- package/ControlGroup.js +14 -13
- package/Date.js +118 -55
- package/DefinitionList.js +2 -2
- package/Divider.js +194 -0
- package/Dropdown.js +17 -13
- package/EventListener.js +4 -4
- package/File.js +23 -23
- package/FormRows.js +14 -14
- package/Heading.js +2 -2
- package/Image.js +19 -19
- package/JSONTree.js +2 -2
- package/Layer.js +85 -8
- package/Link.js +4 -4
- package/List.js +2 -2
- package/Markdown.js +18 -18
- package/Menu.js +51 -52
- package/Message.js +39 -39
- package/MessageBar.js +29 -29
- package/Modal.js +63 -37
- package/ModalLayer.js +11 -11
- package/Monogram.js +2 -2
- package/Multiselect.js +134 -125
- package/Number.js +8 -6
- package/Paginator.js +48 -48
- package/Paragraph.js +2 -2
- package/Popover.js +186 -19
- package/Progress.js +8 -8
- package/RadioBar.js +2 -2
- package/RadioList.js +4 -4
- package/Resize.js +4 -4
- package/ResultsMenu.js +20 -20
- package/ScreenReaderContent.js +2 -2
- package/Scroll.js +13 -13
- package/ScrollContainerContext.js +154 -3
- package/Search.js +25 -25
- package/Select.js +114 -105
- package/SidePanel.js +6 -6
- package/Slider.js +14 -14
- package/SlidingPanels.js +11 -11
- package/SplitButton.js +511 -0
- package/StaticContent.js +2 -2
- package/StepBar.js +10 -10
- package/Switch.js +8 -8
- package/TabBar.js +15 -15
- package/TabLayout.js +6 -6
- package/Table.js +275 -76
- package/Text.js +51 -42
- package/TextArea.js +41 -33
- package/Tooltip.js +17 -11
- package/TransitionOpen.js +39 -15
- package/Typography.js +4 -4
- package/WaitSpinner.js +4 -4
- package/package.json +12 -14
- package/test-runner-jest.config.js +18 -5
- package/types/src/Button/Button.d.ts +1 -1
- package/types/src/Calendar/Calendar.d.ts +15 -2
- package/types/src/Calendar/DateTable.d.ts +7 -3
- package/types/src/Calendar/Day.d.ts +14 -5
- package/types/src/CollapsiblePanel/CollapsiblePanel.d.ts +7 -3
- package/types/src/Date/Date.d.ts +17 -8
- package/types/src/Date/docs/examples/CustomDate.d.ts +2 -2
- package/types/src/Date/docs/examples/Disabled.d.ts +2 -2
- package/types/src/Date/docs/examples/prisma/WithoutCalendar.d.ts +2 -0
- package/types/src/Divider/Divider.d.ts +20 -0
- package/types/src/Divider/docs/examples/AriaHidden.d.ts +2 -0
- package/types/src/Divider/docs/examples/Basic.d.ts +2 -0
- package/types/src/Divider/docs/examples/CustomStyle.d.ts +2 -0
- package/types/src/Divider/docs/examples/Vertical.d.ts +2 -0
- package/types/src/Divider/index.d.ts +1 -0
- package/types/src/Dropdown/Dropdown.d.ts +11 -3
- package/types/src/Modal/Modal.d.ts +7 -3
- package/types/src/Modal/ModalContext.d.ts +1 -0
- package/types/src/Number/Number.d.ts +5 -1
- package/types/src/Popover/Popover.d.ts +5 -1
- package/types/src/Popover/getPlacement.d.ts +1 -1
- package/types/src/SplitButton/Item.d.ts +45 -0
- package/types/src/SplitButton/SplitButton.d.ts +41 -0
- package/types/src/SplitButton/docs/examples/Basic.d.ts +1 -0
- package/types/src/SplitButton/docs/examples/ChangeLabel.d.ts +1 -0
- package/types/src/SplitButton/docs/examples/Disabled.d.ts +1 -0
- package/types/src/SplitButton/docs/examples/prisma/Basic.d.ts +1 -0
- package/types/src/SplitButton/docs/examples/prisma/Disabled.d.ts +1 -0
- package/types/src/SplitButton/index.d.ts +2 -0
- package/types/src/Table/HeadCell.d.ts +4 -1
- package/types/src/Table/HeadDropdownCell.d.ts +10 -3
- package/types/src/Table/docs/examples/FilterColumnValues.d.ts +14 -0
- package/types/src/Text/Text.d.ts +5 -1
- package/types/src/TextArea/TextArea.d.ts +5 -1
- package/types/src/Tooltip/Tooltip.d.ts +10 -5
- package/types/src/TransitionOpen/TransitionOpen.d.ts +7 -3
- package/types/src/useForceUpdate/index.d.ts +2 -0
- package/types/src/useForceUpdate/useForceUpdate.d.ts +9 -0
- package/types/src/useKeyPress/index.d.ts +37 -0
- package/useForceUpdate.js +151 -0
- package/useKeyPress.js +160 -0
- package/usePrevious.js +2 -2
package/TransitionOpen.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 =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 180);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 180:
|
|
105
105
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
106
|
|
|
107
107
|
"use strict";
|
|
@@ -123,16 +123,16 @@ var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_pr
|
|
|
123
123
|
var external_lodash_ = __webpack_require__(4);
|
|
124
124
|
|
|
125
125
|
// EXTERNAL MODULE: external "@splunk/react-ui/Animation"
|
|
126
|
-
var Animation_ = __webpack_require__(
|
|
126
|
+
var Animation_ = __webpack_require__(34);
|
|
127
127
|
|
|
128
128
|
// EXTERNAL MODULE: external "@splunk/ui-utils/focus"
|
|
129
|
-
var focus_ = __webpack_require__(
|
|
129
|
+
var focus_ = __webpack_require__(28);
|
|
130
130
|
|
|
131
131
|
// EXTERNAL MODULE: external "@splunk/ui-utils/style"
|
|
132
132
|
var style_ = __webpack_require__(32);
|
|
133
133
|
|
|
134
134
|
// EXTERNAL MODULE: external "react-spring"
|
|
135
|
-
var external_react_spring_ = __webpack_require__(
|
|
135
|
+
var external_react_spring_ = __webpack_require__(21);
|
|
136
136
|
|
|
137
137
|
// EXTERNAL MODULE: external "styled-components"
|
|
138
138
|
var external_styled_components_ = __webpack_require__(3);
|
|
@@ -208,6 +208,7 @@ var propTypes = {
|
|
|
208
208
|
outerClassName: external_prop_types_default.a.string,
|
|
209
209
|
outerId: external_prop_types_default.a.string,
|
|
210
210
|
outerStyle: external_prop_types_default.a.object,
|
|
211
|
+
renderChildrenWhenCollapsed: external_prop_types_default.a.bool,
|
|
211
212
|
retainFocus: external_prop_types_default.a.bool,
|
|
212
213
|
takeFocus: external_prop_types_default.a.bool
|
|
213
214
|
};
|
|
@@ -217,6 +218,7 @@ var defaultProps = {
|
|
|
217
218
|
innerStyle: {},
|
|
218
219
|
open: false,
|
|
219
220
|
outerStyle: {},
|
|
221
|
+
renderChildrenWhenCollapsed: false,
|
|
220
222
|
retainFocus: false,
|
|
221
223
|
takeFocus: false
|
|
222
224
|
};
|
|
@@ -307,7 +309,8 @@ var TransitionOpen_TransitionOpen = /*#__PURE__*/function (_Component) {
|
|
|
307
309
|
open = _this$props2.open,
|
|
308
310
|
outerClassName = _this$props2.outerClassName,
|
|
309
311
|
outerId = _this$props2.outerId,
|
|
310
|
-
outerStyle = _this$props2.outerStyle
|
|
312
|
+
outerStyle = _this$props2.outerStyle,
|
|
313
|
+
renderChildrenWhenCollapsed = _this$props2.renderChildrenWhenCollapsed;
|
|
311
314
|
var animating = _this.state.animating;
|
|
312
315
|
var dimension;
|
|
313
316
|
|
|
@@ -330,6 +333,27 @@ var TransitionOpen_TransitionOpen = /*#__PURE__*/function (_Component) {
|
|
|
330
333
|
|
|
331
334
|
}
|
|
332
335
|
}
|
|
336
|
+
|
|
337
|
+
if (!open && !animating && renderChildrenWhenCollapsed) {
|
|
338
|
+
return /*#__PURE__*/external_react_default.a.createElement(Styled, {
|
|
339
|
+
$hideOverflow: false,
|
|
340
|
+
className: Object(style_["toClassName"])(className, outerClassName),
|
|
341
|
+
style: _objectSpread(_objectSpread({}, outerStyle), dimension && _defineProperty({}, dimension, value)),
|
|
342
|
+
id: outerId
|
|
343
|
+
}, /*#__PURE__*/external_react_default.a.createElement(StyledInner, _extends({
|
|
344
|
+
"data-test": "transition-open"
|
|
345
|
+
}, Object(external_lodash_["omit"])(_this.props, Object(external_lodash_["keys"])(TransitionOpen.propTypes)), {
|
|
346
|
+
ref: _this.handleMount,
|
|
347
|
+
tabIndex: -1,
|
|
348
|
+
className: innerClassName,
|
|
349
|
+
id: id,
|
|
350
|
+
onKeyDown: _this.props.retainFocus ? _this.handleTab : undefined,
|
|
351
|
+
style: _objectSpread(_objectSpread({}, innerStyle), {}, {
|
|
352
|
+
transform: transform,
|
|
353
|
+
display: 'none'
|
|
354
|
+
})
|
|
355
|
+
}), children));
|
|
356
|
+
}
|
|
333
357
|
/* eslint-disable jsx-a11y/no-static-element-interactions */
|
|
334
358
|
|
|
335
359
|
|
|
@@ -466,21 +490,21 @@ _defineProperty(TransitionOpen_TransitionOpen, "getDerivedStateFromProps", funct
|
|
|
466
490
|
|
|
467
491
|
/***/ }),
|
|
468
492
|
|
|
469
|
-
/***/
|
|
493
|
+
/***/ 2:
|
|
470
494
|
/***/ (function(module, exports) {
|
|
471
495
|
|
|
472
|
-
module.exports = require("react
|
|
496
|
+
module.exports = require("react");
|
|
473
497
|
|
|
474
498
|
/***/ }),
|
|
475
499
|
|
|
476
|
-
/***/
|
|
500
|
+
/***/ 21:
|
|
477
501
|
/***/ (function(module, exports) {
|
|
478
502
|
|
|
479
|
-
module.exports = require("react");
|
|
503
|
+
module.exports = require("react-spring");
|
|
480
504
|
|
|
481
505
|
/***/ }),
|
|
482
506
|
|
|
483
|
-
/***/
|
|
507
|
+
/***/ 28:
|
|
484
508
|
/***/ (function(module, exports) {
|
|
485
509
|
|
|
486
510
|
module.exports = require("@splunk/ui-utils/focus");
|
|
@@ -494,17 +518,17 @@ module.exports = require("styled-components");
|
|
|
494
518
|
|
|
495
519
|
/***/ }),
|
|
496
520
|
|
|
497
|
-
/***/
|
|
521
|
+
/***/ 32:
|
|
498
522
|
/***/ (function(module, exports) {
|
|
499
523
|
|
|
500
|
-
module.exports = require("@splunk/
|
|
524
|
+
module.exports = require("@splunk/ui-utils/style");
|
|
501
525
|
|
|
502
526
|
/***/ }),
|
|
503
527
|
|
|
504
|
-
/***/
|
|
528
|
+
/***/ 34:
|
|
505
529
|
/***/ (function(module, exports) {
|
|
506
530
|
|
|
507
|
-
module.exports = require("@splunk/ui
|
|
531
|
+
module.exports = require("@splunk/react-ui/Animation");
|
|
508
532
|
|
|
509
533
|
/***/ }),
|
|
510
534
|
|
package/Typography.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 =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 186);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -94,7 +94,7 @@ module.exports = require("prop-types");
|
|
|
94
94
|
|
|
95
95
|
/***/ }),
|
|
96
96
|
|
|
97
|
-
/***/
|
|
97
|
+
/***/ 186:
|
|
98
98
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
99
99
|
|
|
100
100
|
"use strict";
|
|
@@ -117,7 +117,7 @@ var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_pr
|
|
|
117
117
|
var external_lodash_ = __webpack_require__(4);
|
|
118
118
|
|
|
119
119
|
// EXTERNAL MODULE: external "@splunk/themes/mixins"
|
|
120
|
-
var mixins_ = __webpack_require__(
|
|
120
|
+
var mixins_ = __webpack_require__(59);
|
|
121
121
|
var mixins_default = /*#__PURE__*/__webpack_require__.n(mixins_);
|
|
122
122
|
|
|
123
123
|
// EXTERNAL MODULE: external "styled-components"
|
|
@@ -215,7 +215,7 @@ module.exports = require("lodash");
|
|
|
215
215
|
|
|
216
216
|
/***/ }),
|
|
217
217
|
|
|
218
|
-
/***/
|
|
218
|
+
/***/ 59:
|
|
219
219
|
/***/ (function(module, exports) {
|
|
220
220
|
|
|
221
221
|
module.exports = require("@splunk/themes/mixins");
|
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 =
|
|
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
|
-
/***/
|
|
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__(
|
|
123
|
+
var AnimationToggle_ = __webpack_require__(38);
|
|
124
124
|
|
|
125
125
|
// EXTERNAL MODULE: external "@splunk/themes"
|
|
126
126
|
var themes_ = __webpack_require__(0);
|
|
@@ -281,7 +281,7 @@ module.exports = require("styled-components");
|
|
|
281
281
|
|
|
282
282
|
/***/ }),
|
|
283
283
|
|
|
284
|
-
/***/
|
|
284
|
+
/***/ 38:
|
|
285
285
|
/***/ (function(module, exports) {
|
|
286
286
|
|
|
287
287
|
module.exports = require("@splunk/react-ui/AnimationToggle");
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@splunk/react-ui",
|
|
3
|
-
"version": "4.
|
|
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
|
|
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
|
-
"docs:publish:external": "cicd-publish-docs docs --force --suffix=public",
|
|
11
|
+
"docs:publish:external": "cicd-publish-docs docs-external --force --suffix=public",
|
|
12
12
|
"docs:start": "webpack serve --config docs.gen.webpack.config.js",
|
|
13
13
|
"eslint": "eslint src .storybook --ext \".ts,.tsx,.js,.jsx\"",
|
|
14
14
|
"eslint:fix": "yarn run eslint --fix",
|
|
@@ -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:
|
|
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,9 +37,9 @@
|
|
|
40
37
|
"styled-components": "5.1.1"
|
|
41
38
|
},
|
|
42
39
|
"dependencies": {
|
|
43
|
-
"@splunk/react-icons": "^3.
|
|
40
|
+
"@splunk/react-icons": "^3.3.0",
|
|
44
41
|
"@splunk/themes": "^0.13.0",
|
|
45
|
-
"@splunk/ui-utils": "^1.5.
|
|
42
|
+
"@splunk/ui-utils": "^1.5.1",
|
|
46
43
|
"@types/commonmark": "^0.27.0",
|
|
47
44
|
"@types/lodash": "^4.14.156",
|
|
48
45
|
"@types/react": "^16.9.38",
|
|
@@ -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.
|
|
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/${
|
|
28
|
-
|
|
29
|
-
|
|
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:
|
|
41
|
+
resultHtml:
|
|
42
|
+
process.env.STORYBOOK_TEST_A11Y === 'false'
|
|
43
|
+
? 'visual-report.html'
|
|
44
|
+
: 'a11y-report.html',
|
|
32
45
|
},
|
|
33
46
|
],
|
|
34
47
|
],
|
|
@@ -12,7 +12,7 @@ interface ButtonPropsBase {
|
|
|
12
12
|
/** Returns a value on click. Use when composing or testing. */
|
|
13
13
|
action?: string;
|
|
14
14
|
/** Changes the style of the button.
|
|
15
|
-
* @themeNotes
|
|
15
|
+
* @themeNotes Enterprise themes support the following appearances:`default`, `primary`, `secondary`, and `pill`. Prisma themes support the `default`, `primary`, `secondary`, `destructive`, `toggle` and `flat` appearances.
|
|
16
16
|
*/
|
|
17
17
|
appearance?: 'default' | 'secondary' | 'primary' | 'destructive' | 'pill' | 'toggle' | 'flat';
|
|
18
18
|
/** Removes the right border and border-radius of the button so you can
|
|
@@ -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 =
|
|
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<
|
|
4
|
+
declare type DayClickHandler = (event: React.MouseEvent<HTMLTableCellElement>, data: {
|
|
5
5
|
value: string;
|
|
6
6
|
}) => void;
|
|
7
|
-
|
|
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;
|