@deque/cauldron-react 3.0.1-canary.80ed76e7 → 3.0.1-canary.8523174c
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>;
|
|
@@ -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;
|
|
@@ -8216,7 +8216,7 @@ Address.propTypes = {
|
|
|
8216
8216
|
};
|
|
8217
8217
|
var AddressLine = function (_a) {
|
|
8218
8218
|
var children = _a.children, className = _a.className, other = tslib.__rest(_a, ["children", "className"]);
|
|
8219
|
-
return
|
|
8219
|
+
return children ? (React__default.createElement("div", tslib.__assign({ className: classNames('Address__line', className) }, other), children)) : null;
|
|
8220
8220
|
};
|
|
8221
8221
|
AddressLine.displayName = 'AddressLine';
|
|
8222
8222
|
AddressLine.propTypes = {
|
|
@@ -8225,9 +8225,9 @@ AddressLine.propTypes = {
|
|
|
8225
8225
|
};
|
|
8226
8226
|
var AddressCityStateZip = function (_a) {
|
|
8227
8227
|
var city = _a.city, state = _a.state, zip = _a.zip, className = _a.className, other = tslib.__rest(_a, ["city", "state", "zip", "className"]);
|
|
8228
|
-
return
|
|
8228
|
+
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
8229
|
.filter(Boolean)
|
|
8230
|
-
.join(' ')));
|
|
8230
|
+
.join(' '))) : null;
|
|
8231
8231
|
};
|
|
8232
8232
|
AddressCityStateZip.displayName = 'AddressCityStateZip';
|
|
8233
8233
|
AddressCityStateZip.propTypes = {
|