@deque/cauldron-react 3.0.1-canary.b96841e1 → 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.
|
@@ -13,7 +13,7 @@ export declare const Address: {
|
|
|
13
13
|
};
|
|
14
14
|
declare type AddressLineProps = React.HTMLAttributes<HTMLElement>;
|
|
15
15
|
export declare const AddressLine: {
|
|
16
|
-
({ children, className, ...other }: AddressLineProps):
|
|
16
|
+
({ children, className, ...other }: AddressLineProps): JSX.Element | null;
|
|
17
17
|
displayName: string;
|
|
18
18
|
propTypes: {
|
|
19
19
|
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
@@ -26,7 +26,7 @@ interface AddressCityStateZipProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
26
26
|
zip: React.ReactNode;
|
|
27
27
|
}
|
|
28
28
|
export declare const AddressCityStateZip: {
|
|
29
|
-
({ city, state, zip, className, ...other }: AddressCityStateZipProps):
|
|
29
|
+
({ city, state, zip, className, ...other }: AddressCityStateZipProps): JSX.Element | null;
|
|
30
30
|
displayName: string;
|
|
31
31
|
propTypes: {
|
|
32
32
|
city: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
@@ -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
|
@@ -2249,7 +2249,7 @@ var Select = React__default.forwardRef(function (_a, ref) {
|
|
|
2249
2249
|
})
|
|
2250
2250
|
: children),
|
|
2251
2251
|
React__default.createElement("div", { className: "arrow-down" })),
|
|
2252
|
-
React__default.createElement("div", { className: "Error"
|
|
2252
|
+
error && (React__default.createElement("div", { id: errorId, className: "Error" }, error))));
|
|
2253
2253
|
/* eslint-disable jsx-a11y/no-onchange */
|
|
2254
2254
|
});
|
|
2255
2255
|
Select.displayName = 'Select';
|
|
@@ -2368,7 +2368,7 @@ var Checkbox = React.forwardRef(function (_a, ref) {
|
|
|
2368
2368
|
(_b = checkRef.current) === null || _b === void 0 ? void 0 : _b.click();
|
|
2369
2369
|
}
|
|
2370
2370
|
} })),
|
|
2371
|
-
React__default.createElement("div", { id: errorId, className: "Error" }, error)));
|
|
2371
|
+
error && (React__default.createElement("div", { id: errorId, className: "Error" }, error))));
|
|
2372
2372
|
});
|
|
2373
2373
|
Checkbox.displayName = 'Checkbox';
|
|
2374
2374
|
|
|
@@ -2475,7 +2475,7 @@ var TextField = /** @class */ (function (_super) {
|
|
|
2475
2475
|
_this.input = input;
|
|
2476
2476
|
setRef(fieldRef, input);
|
|
2477
2477
|
} }, other, inputProps)),
|
|
2478
|
-
React__default.createElement("div", { className: "Error", id: this.errorId }, error)));
|
|
2478
|
+
error && (React__default.createElement("div", { className: "Error", id: this.errorId }, error))));
|
|
2479
2479
|
};
|
|
2480
2480
|
TextField.prototype.onChange = function (e) {
|
|
2481
2481
|
var _a, _b;
|
|
@@ -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) {
|
|
@@ -8216,7 +8217,7 @@ Address.propTypes = {
|
|
|
8216
8217
|
};
|
|
8217
8218
|
var AddressLine = function (_a) {
|
|
8218
8219
|
var children = _a.children, className = _a.className, other = tslib.__rest(_a, ["children", "className"]);
|
|
8219
|
-
return
|
|
8220
|
+
return children ? (React__default.createElement("div", tslib.__assign({ className: classNames('Address__line', className) }, other), children)) : null;
|
|
8220
8221
|
};
|
|
8221
8222
|
AddressLine.displayName = 'AddressLine';
|
|
8222
8223
|
AddressLine.propTypes = {
|
|
@@ -8225,9 +8226,9 @@ AddressLine.propTypes = {
|
|
|
8225
8226
|
};
|
|
8226
8227
|
var AddressCityStateZip = function (_a) {
|
|
8227
8228
|
var city = _a.city, state = _a.state, zip = _a.zip, className = _a.className, other = tslib.__rest(_a, ["city", "state", "zip", "className"]);
|
|
8228
|
-
return
|
|
8229
|
+
return city || state || zip ? (React__default.createElement("div", tslib.__assign({ className: classNames('Address__city-state-zip', className) }, other), [[city, state].filter(Boolean).join(', '), zip]
|
|
8229
8230
|
.filter(Boolean)
|
|
8230
|
-
.join(' ')));
|
|
8231
|
+
.join(' '))) : null;
|
|
8231
8232
|
};
|
|
8232
8233
|
AddressCityStateZip.displayName = 'AddressCityStateZip';
|
|
8233
8234
|
AddressCityStateZip.propTypes = {
|