@deque/cauldron-react 3.0.1-canary.985ca499 → 3.0.1-canary.c806c385
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.
|
@@ -9,6 +9,7 @@ interface StepWithChildren extends BaseStepProps {
|
|
|
9
9
|
}
|
|
10
10
|
interface StepWithTooltip extends BaseStepProps {
|
|
11
11
|
tooltip: React.ReactNode;
|
|
12
|
+
tooltipText: string;
|
|
12
13
|
}
|
|
13
14
|
declare type StepProps = StepWithChildren | StepWithTooltip;
|
|
14
15
|
export declare const Step: {
|
|
@@ -17,6 +18,7 @@ export declare const Step: {
|
|
|
17
18
|
propTypes: {
|
|
18
19
|
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
19
20
|
tooltip: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
21
|
+
tooltipText: PropTypes.Requireable<string>;
|
|
20
22
|
className: PropTypes.Requireable<string>;
|
|
21
23
|
};
|
|
22
24
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { TdHTMLAttributes } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
interface TableCellProps {
|
|
3
|
+
interface TableCellProps extends TdHTMLAttributes<HTMLTableCellElement> {
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
className?: string;
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { ThHTMLAttributes } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
interface TableHeaderProps {
|
|
3
|
+
interface TableHeaderProps extends ThHTMLAttributes<HTMLTableCellElement> {
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
className?: string;
|
|
6
6
|
}
|
package/lib/index.js
CHANGED
|
@@ -8162,7 +8162,7 @@ var Step = function (props) {
|
|
|
8162
8162
|
// list items, therefore it is safe to clobber
|
|
8163
8163
|
// it with the contents of the tooltip in the
|
|
8164
8164
|
// tab stop's accessible name.
|
|
8165
|
-
association: "aria-labelledby" },
|
|
8165
|
+
association: "aria-labelledby", "aria-label": isTooltip(props) ? props.tooltipText : undefined },
|
|
8166
8166
|
React__default.createElement("div", { className: "Stepper__step-indicator" }))) : (React__default.createElement(React__default.Fragment, null,
|
|
8167
8167
|
React__default.createElement("div", { className: "Stepper__step-indicator" }),
|
|
8168
8168
|
'children' in props && (React__default.createElement("div", { className: "Stepper__step-label" }, props.children)))))));
|
|
@@ -8171,6 +8171,7 @@ Step.displayName = 'Step';
|
|
|
8171
8171
|
Step.propTypes = {
|
|
8172
8172
|
children: PropTypes.node,
|
|
8173
8173
|
tooltip: PropTypes.node,
|
|
8174
|
+
tooltipText: PropTypes.string,
|
|
8174
8175
|
className: PropTypes.string
|
|
8175
8176
|
};
|
|
8176
8177
|
var Stepper = function (_a) {
|