@deque/cauldron-react 6.16.0-canary.95899edb → 6.16.0-canary.a87196e2

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.
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ interface EmptyStateProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ /** Heading text to be displayed for the empty state. */
4
+ heading: React.ReactNode;
5
+ /** Description for the empty state. */
6
+ description: React.ReactNode;
7
+ /** Slot for primary actions. */
8
+ primaryActions?: React.ReactNode;
9
+ /** Slot for secondary actions. */
10
+ secondaryActions?: React.ReactNode;
11
+ }
12
+ declare const EmptyState: React.ForwardRefExoticComponent<EmptyStateProps & React.RefAttributes<HTMLDivElement>>;
13
+ export default EmptyState;
@@ -14,7 +14,7 @@ export declare const Step: {
14
14
  (props: StepProps): React.JSX.Element;
15
15
  displayName: string;
16
16
  };
17
- interface StepperProps {
17
+ interface StepperProps extends React.HTMLAttributes<HTMLOListElement> {
18
18
  children: React.ReactNode;
19
19
  className?: string;
20
20
  }
package/lib/index.d.ts CHANGED
@@ -65,6 +65,7 @@ export { default as AnchoredOverlay } from './components/AnchoredOverlay';
65
65
  export { default as FieldGroup } from './components/FieldGroup';
66
66
  export { default as PageHeader } from './components/PageHeader';
67
67
  export { default as SectionHeader } from './components/SectionHeader';
68
+ export { default as EmptyState } from './components/EmptyState';
68
69
  /**
69
70
  * Helpers / Utils
70
71
  */
package/lib/index.js CHANGED
@@ -4836,6 +4836,19 @@ var PageHeader = React.forwardRef(function (_a, ref) {
4836
4836
  });
4837
4837
  PageHeader.displayName = 'PageHeader';
4838
4838
 
4839
+ var EmptyState = React.forwardRef(function (_a, ref) {
4840
+ var className = _a.className, heading = _a.heading, description = _a.description, primaryActions = _a.primaryActions, secondaryActions = _a.secondaryActions, props = tslib.__rest(_a, ["className", "heading", "description", "primaryActions", "secondaryActions"]);
4841
+ if (typeof heading === 'string') {
4842
+ heading = React__default["default"].createElement("h2", null, heading);
4843
+ }
4844
+ return (React__default["default"].createElement("div", tslib.__assign({ ref: ref, className: classNames__default["default"]('EmptyState', className) }, props),
4845
+ heading,
4846
+ React__default["default"].createElement("p", null, description),
4847
+ primaryActions && (React__default["default"].createElement("div", { className: "EmptyState__primary" }, primaryActions)),
4848
+ secondaryActions && (React__default["default"].createElement("div", { className: "EmptyState__secondary" }, secondaryActions))));
4849
+ });
4850
+ EmptyState.displayName = 'EmptyState';
4851
+
4839
4852
  var LIGHT_THEME_CLASS = 'cauldron--theme-light';
4840
4853
  var DARK_THEME_CLASS = 'cauldron--theme-dark';
4841
4854
  var ThemeContext = React.createContext({
@@ -4941,6 +4954,7 @@ exports.Dialog = Dialog;
4941
4954
  exports.DialogContent = DialogContent;
4942
4955
  exports.DialogFooter = DialogFooter;
4943
4956
  exports.Drawer = Drawer;
4957
+ exports.EmptyState = EmptyState;
4944
4958
  exports.ExpandCollapsePanel = ExpandCollapsePanel;
4945
4959
  exports.FieldGroup = FieldGroup;
4946
4960
  exports.FieldWrap = FieldWrap;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deque/cauldron-react",
3
- "version": "6.16.0-canary.95899edb",
3
+ "version": "6.16.0-canary.a87196e2",
4
4
  "license": "MPL-2.0",
5
5
  "description": "Fully accessible react components library for Deque Cauldron",
6
6
  "homepage": "https://cauldron.dequelabs.com/",