@splunk/react-ui 4.15.0 → 4.16.1

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 (69) hide show
  1. package/Animation.js +2 -2
  2. package/Button.js +32 -30
  3. package/ButtonSimple.js +54 -50
  4. package/CHANGELOG.md +27 -2
  5. package/Calendar.js +12 -12
  6. package/Card.js +10 -10
  7. package/Chip.js +10 -10
  8. package/CloseButton.js +8 -8
  9. package/CollapsiblePanel.js +8 -8
  10. package/Color.js +14 -14
  11. package/ColumnLayout.js +2 -2
  12. package/ComboBox.js +4 -4
  13. package/ControlGroup.js +26 -16
  14. package/Date.js +10 -5
  15. package/Dropdown.js +56 -15
  16. package/File.js +33 -24
  17. package/FormRows.js +6 -6
  18. package/Heading.js +10 -46
  19. package/Image.js +13 -13
  20. package/Link.js +2 -2
  21. package/MIGRATION.md +21 -0
  22. package/Menu.js +20 -20
  23. package/Message.js +24 -24
  24. package/MessageBar.js +24 -24
  25. package/Modal.js +7 -7
  26. package/Multiselect.js +197 -177
  27. package/Number.js +5 -5
  28. package/Paginator.js +19 -19
  29. package/Popover.js +7 -7
  30. package/Progress.js +2 -2
  31. package/Scroll.js +5 -5
  32. package/Search.js +4 -4
  33. package/Select.js +187 -167
  34. package/SplitButton.js +2 -2
  35. package/StepBar.js +10 -10
  36. package/Switch.js +4 -4
  37. package/TabBar.js +2 -2
  38. package/TabLayout.js +3 -0
  39. package/Table.js +95 -46
  40. package/Text.js +19 -19
  41. package/TextArea.js +15 -15
  42. package/Tooltip.js +5 -5
  43. package/Typography.js +1 -1
  44. package/WaitSpinner.js +2 -2
  45. package/package.json +6 -7
  46. package/types/src/Button/Button.d.ts +5 -2
  47. package/types/src/Button/docs/examples/Basic.d.ts +2 -2
  48. package/types/src/ButtonSimple/ButtonSimple.d.ts +10 -11
  49. package/types/src/Date/Icon.d.ts +1 -1
  50. package/types/src/Dropdown/Dropdown.d.ts +12 -7
  51. package/types/src/File/Icon.d.ts +1 -1
  52. package/types/src/File/IconCloud.d.ts +1 -1
  53. package/types/src/File/PaperClip.d.ts +1 -1
  54. package/types/src/File/Retry.d.ts +1 -1
  55. package/types/src/File/Trash.d.ts +1 -1
  56. package/types/src/Multiselect/Compact.d.ts +4 -0
  57. package/types/src/Multiselect/Multiselect.d.ts +4 -1
  58. package/types/src/Number/IncrementIcon.d.ts +1 -1
  59. package/types/src/Select/Select.d.ts +4 -2
  60. package/types/src/Select/SelectBase.d.ts +13 -1
  61. package/types/src/TabLayout/Panel.d.ts +3 -0
  62. package/types/src/TabLayout/TabLayout.d.ts +2 -0
  63. package/types/src/Table/Body.d.ts +2 -0
  64. package/types/src/Table/Row.d.ts +11 -3
  65. package/types/src/Table/Table.d.ts +5 -3
  66. package/types/src/Text/IconOutlinedHide.d.ts +1 -1
  67. package/types/src/Text/IconOutlinedView.d.ts +1 -1
  68. package/types/src/Tooltip/InfoIcon.d.ts +1 -1
  69. package/types/src/Typography/Typography.d.ts +1 -1
package/TextArea.js CHANGED
@@ -196,7 +196,7 @@ var external_prop_types_ = __webpack_require__(1);
196
196
  var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
197
197
 
198
198
  // EXTERNAL MODULE: external "lodash/defer"
199
- var defer_ = __webpack_require__(53);
199
+ var defer_ = __webpack_require__(55);
200
200
  var defer_default = /*#__PURE__*/__webpack_require__.n(defer_);
201
201
 
202
202
  // EXTERNAL MODULE: external "lodash/has"
@@ -1224,8 +1224,8 @@ TextAreaWithTheme.componentType = TextArea_TextArea.componentType;
1224
1224
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CrossMark; });
1225
1225
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
1226
1226
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
1227
- /* harmony import */ var _splunk_react_icons_Close__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(29);
1228
- /* harmony import */ var _splunk_react_icons_Close__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_Close__WEBPACK_IMPORTED_MODULE_1__);
1227
+ /* harmony import */ var _splunk_react_icons_enterprise_Close__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(29);
1228
+ /* harmony import */ var _splunk_react_icons_enterprise_Close__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_enterprise_Close__WEBPACK_IMPORTED_MODULE_1__);
1229
1229
  /* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
1230
1230
  /* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
1231
1231
  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); }
@@ -1259,7 +1259,7 @@ function Prisma16(_ref2) {
1259
1259
 
1260
1260
  function CrossMark(props) {
1261
1261
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ThemedIcon__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"], _extends({
1262
- Enterprise: _splunk_react_icons_Close__WEBPACK_IMPORTED_MODULE_1___default.a,
1262
+ Enterprise: _splunk_react_icons_enterprise_Close__WEBPACK_IMPORTED_MODULE_1___default.a,
1263
1263
  Prisma16: Prisma16,
1264
1264
  Prisma24: Prisma24
1265
1265
  }, props));
@@ -1270,7 +1270,7 @@ function CrossMark(props) {
1270
1270
  /***/ 29:
1271
1271
  /***/ (function(module, exports) {
1272
1272
 
1273
- module.exports = require("@splunk/react-icons/Close");
1273
+ module.exports = require("@splunk/react-icons/enterprise/Close");
1274
1274
 
1275
1275
  /***/ }),
1276
1276
 
@@ -1295,8 +1295,8 @@ module.exports = require("lodash/throttle");
1295
1295
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Search; });
1296
1296
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
1297
1297
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
1298
- /* harmony import */ var _splunk_react_icons_Search__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(54);
1299
- /* harmony import */ var _splunk_react_icons_Search__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_Search__WEBPACK_IMPORTED_MODULE_1__);
1298
+ /* harmony import */ var _splunk_react_icons_enterprise_Search__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(56);
1299
+ /* harmony import */ var _splunk_react_icons_enterprise_Search__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_enterprise_Search__WEBPACK_IMPORTED_MODULE_1__);
1300
1300
  /* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
1301
1301
  /* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
1302
1302
  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); }
@@ -1330,7 +1330,7 @@ function Prisma16(_ref2) {
1330
1330
 
1331
1331
  function Search(props) {
1332
1332
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ThemedIcon__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"], _extends({
1333
- Enterprise: _splunk_react_icons_Search__WEBPACK_IMPORTED_MODULE_1___default.a,
1333
+ Enterprise: _splunk_react_icons_enterprise_Search__WEBPACK_IMPORTED_MODULE_1___default.a,
1334
1334
  Prisma16: Prisma16,
1335
1335
  Prisma24: Prisma24
1336
1336
  }, props));
@@ -1359,17 +1359,17 @@ module.exports = require("lodash/omit");
1359
1359
 
1360
1360
  /***/ }),
1361
1361
 
1362
- /***/ 53:
1362
+ /***/ 55:
1363
1363
  /***/ (function(module, exports) {
1364
1364
 
1365
1365
  module.exports = require("lodash/defer");
1366
1366
 
1367
1367
  /***/ }),
1368
1368
 
1369
- /***/ 54:
1369
+ /***/ 56:
1370
1370
  /***/ (function(module, exports) {
1371
1371
 
1372
- module.exports = require("@splunk/react-icons/Search");
1372
+ module.exports = require("@splunk/react-icons/enterprise/Search");
1373
1373
 
1374
1374
  /***/ }),
1375
1375
 
@@ -1488,8 +1488,8 @@ function Icon(_ref) {
1488
1488
 
1489
1489
 
1490
1490
  if (prismaSize === 'small') {
1491
- var SVG = Prisma16 || Prisma24;
1492
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(SVG, _extends({
1491
+ var SVGEnterprise = Prisma16 || Prisma24;
1492
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(SVGEnterprise, _extends({
1493
1493
  width: "16",
1494
1494
  height: "16"
1495
1495
  }, prismaProps));
@@ -1497,9 +1497,9 @@ function Icon(_ref) {
1497
1497
 
1498
1498
 
1499
1499
  if (density === 'compact') {
1500
- var _SVG = Prisma20 || Prisma24;
1500
+ var _SVGEnterprise = Prisma20 || Prisma24;
1501
1501
 
1502
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_SVG, _extends({
1502
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_SVGEnterprise, _extends({
1503
1503
  width: "20",
1504
1504
  height: "20"
1505
1505
  }, prismaProps));
package/Tooltip.js CHANGED
@@ -179,9 +179,9 @@ var id_ = __webpack_require__(13);
179
179
  // EXTERNAL MODULE: external "@splunk/ui-utils/i18n"
180
180
  var i18n_ = __webpack_require__(4);
181
181
 
182
- // EXTERNAL MODULE: external "@splunk/react-icons/SVG"
183
- var SVG_ = __webpack_require__(32);
184
- var SVG_default = /*#__PURE__*/__webpack_require__.n(SVG_);
182
+ // EXTERNAL MODULE: external "@splunk/react-icons/SVGEnterprise"
183
+ var SVGEnterprise_ = __webpack_require__(32);
184
+ var SVGEnterprise_default = /*#__PURE__*/__webpack_require__.n(SVGEnterprise_);
185
185
 
186
186
  // CONCATENATED MODULE: ./src/Tooltip/InfoIcon.tsx
187
187
  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); }
@@ -197,7 +197,7 @@ function InfoCircle(props) {
197
197
  density = _useSplunkTheme.density;
198
198
 
199
199
  if (family === 'enterprise') {
200
- return /*#__PURE__*/external_react_default.a.createElement(SVG_default.a, _extends({
200
+ return /*#__PURE__*/external_react_default.a.createElement(SVGEnterprise_default.a, _extends({
201
201
  screenReaderText: Object(i18n_["_"])('Info Circle'),
202
202
  viewBox: "0 0 24 24"
203
203
  }, props), /*#__PURE__*/external_react_default.a.createElement("path", {
@@ -824,7 +824,7 @@ module.exports = require("lodash/throttle");
824
824
  /***/ 32:
825
825
  /***/ (function(module, exports) {
826
826
 
827
- module.exports = require("@splunk/react-icons/SVG");
827
+ module.exports = require("@splunk/react-icons/SVGEnterprise");
828
828
 
829
829
  /***/ }),
830
830
 
package/Typography.js CHANGED
@@ -152,7 +152,7 @@ var propTypes = {
152
152
  variant: external_prop_types_default.a.oneOf(mixins_["typographyVariants"]),
153
153
  size: external_prop_types_default.a.number,
154
154
  lineHeight: external_prop_types_default.a.number,
155
- color: external_prop_types_default.a.oneOf(['active', 'default', 'disabled', 'inverted', 'muted']),
155
+ color: external_prop_types_default.a.oneOf(['active', 'default', 'disabled', 'inverted', 'muted', 'inherit']),
156
156
  weight: external_prop_types_default.a.oneOf([300, 400, 500, 600, 700, 800, 900, 'light', 'normal', 'semiBold', 'bold', 'extraBold', 'heavy']),
157
157
  withReset: external_prop_types_default.a.bool
158
158
  };
package/WaitSpinner.js CHANGED
@@ -127,7 +127,7 @@ var external_prop_types_ = __webpack_require__(1);
127
127
  var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
128
128
 
129
129
  // EXTERNAL MODULE: external "@splunk/react-ui/AnimationToggle"
130
- var AnimationToggle_ = __webpack_require__(47);
130
+ var AnimationToggle_ = __webpack_require__(48);
131
131
 
132
132
  // EXTERNAL MODULE: external "@splunk/themes"
133
133
  var themes_ = __webpack_require__(0);
@@ -288,7 +288,7 @@ module.exports = require("@splunk/ui-utils/i18n");
288
288
 
289
289
  /***/ }),
290
290
 
291
- /***/ 47:
291
+ /***/ 48:
292
292
  /***/ (function(module, exports) {
293
293
 
294
294
  module.exports = require("@splunk/react-ui/AnimationToggle");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@splunk/react-ui",
3
- "version": "4.15.0",
3
+ "version": "4.16.1",
4
4
  "description": "Library of React components that implement the Splunk design language",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Splunk Inc.",
@@ -39,7 +39,7 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "@splunk/react-icons": "^3.3.1",
42
- "@splunk/themes": "^0.13.1",
42
+ "@splunk/themes": "^0.15.0",
43
43
  "@splunk/ui-utils": "^1.5.2",
44
44
  "@types/commonmark": "^0.27.0",
45
45
  "@types/lodash": "^4.14.156",
@@ -48,7 +48,6 @@
48
48
  "@types/react-resize-detector": "^3.1.1",
49
49
  "@types/styled-components": "^5.1.0",
50
50
  "@types/tinycolor2": "^1.4.2",
51
- "axe-html-reporter": "^2.2.3",
52
51
  "commonmark": "^0.27.0",
53
52
  "commonmark-react-renderer": "^4.3.2",
54
53
  "decimal.js-light": "^2.2.3",
@@ -68,11 +67,11 @@
68
67
  "@cypress/webpack-dev-server": "^1.8.2",
69
68
  "@splunk/babel-preset": "^3.0.0",
70
69
  "@splunk/cicd-tools": "^0.5.0",
71
- "@splunk/docs-gen": "1.0.0-beta.1",
70
+ "@splunk/docs-gen": "1.0.0-beta.2",
72
71
  "@splunk/eslint-config": "^4.0.0",
73
- "@splunk/react-docs": "1.0.0-beta.1",
72
+ "@splunk/react-docs": "1.0.0-beta.2",
74
73
  "@splunk/stylelint-config": "^4.0.0",
75
- "@splunk/test-runner-utils": "^0.4.0",
74
+ "@splunk/test-runner-utils": "^0.4.1",
76
75
  "@splunk/wdio-functional-test-runner": "^10.1.0",
77
76
  "@splunk/webpack-configs": "^6.0.0",
78
77
  "@storybook/addon-a11y": "^6.5.9",
@@ -97,6 +96,7 @@
97
96
  "@types/webpack-env": "^1.15.2",
98
97
  "@typescript-eslint/eslint-plugin": "^4.8.2",
99
98
  "@typescript-eslint/parser": "^4.8.2",
99
+ "axe-html-reporter": "^2.2.3",
100
100
  "axe-playwright": "^1.1.11",
101
101
  "babel-loader": "^8.0.4",
102
102
  "babel-plugin-istanbul": "^5.1.0",
@@ -143,7 +143,6 @@
143
143
  "stylelint": "^13.0.0",
144
144
  "ts-loader": "^6.2.1",
145
145
  "typescript": "^4.0.5",
146
- "wdio-image-comparison-service": "^1.9.0",
147
146
  "webpack": "^4.16.2",
148
147
  "webpack-cli": "^4.9.2",
149
148
  "webpack-dev-server": "^4.7.4",
@@ -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 Enterprise themes support the following appearances:`default`, `primary`, `secondary`, and `pill`. Prisma themes support the `default`, `primary`, `secondary`, `destructive`, `toggle` and `flat` appearances.
15
+ * @themeNotes Enterprise themes support the following appearances:`default`, `primary`, `secondary`, `destructive` 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
@@ -29,7 +29,9 @@ interface ButtonPropsBase {
29
29
  elementRef?: React.Ref<HTMLAnchorElement | HTMLButtonElement>;
30
30
  /** Turns the button red. If you use this prop, apply other error
31
31
  * indicators, such as an error message, to meet accessibility
32
- * requirements. */
32
+ * requirements.
33
+ * @deprecated
34
+ * */
33
35
  error?: boolean;
34
36
  /** Applies the text that displays on the button. */
35
37
  label?: React.ReactNode;
@@ -68,6 +70,7 @@ declare class Button extends Component<ButtonProps> {
68
70
  static propTypes: React.WeakValidationMap<ClassComponentProps<ButtonPropsBase, Required<Pick<ButtonPropsBase, "disabled" | "selected" | "appearance" | "inline" | "error" | "openInNewContext" | "append" | "prepend" | "isMenu">>, "button", never>> | React.WeakValidationMap<ClassComponentProps<ButtonPropsBase, Required<Pick<ButtonPropsBase, "disabled" | "selected" | "appearance" | "inline" | "error" | "openInNewContext" | "append" | "prepend" | "isMenu">>, "a", "href">>;
69
71
  static defaultProps: Required<Pick<ButtonPropsBase, "disabled" | "selected" | "appearance" | "inline" | "error" | "openInNewContext" | "append" | "prepend" | "isMenu">>;
70
72
  static [legacyRefMode]: boolean;
73
+ constructor(props: Readonly<ButtonProps>);
71
74
  private handleClick;
72
75
  private handleMount;
73
76
  /**
@@ -1,2 +1,2 @@
1
- declare function Buttons(): JSX.Element;
2
- export default Buttons;
1
+ declare function Basic(): JSX.Element;
2
+ export default Basic;