@deque/cauldron-react 6.3.2-canary.dc169bbf → 6.3.2-canary.ea1aa6dc
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import AriaIsolate from '../../utils/aria-isolate';
|
|
3
|
-
export interface ToastProps {
|
|
3
|
+
export interface ToastProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
4
|
type: 'confirmation' | 'caution' | 'error' | 'action-needed' | 'info';
|
|
5
5
|
onDismiss: () => void;
|
|
6
6
|
dismissText?: string;
|
package/lib/index.js
CHANGED
|
@@ -1932,11 +1932,11 @@ var Toast = /** @class */ (function (_super) {
|
|
|
1932
1932
|
var _a = this.props, type = _a.type, children = _a.children;
|
|
1933
1933
|
// prevent `onDismiss` from being passed-through to DOM
|
|
1934
1934
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
1935
|
-
_a.onDismiss; var dismissText = _a.dismissText, toastRef = _a.toastRef, focus = _a.focus, show = _a.show, dismissible = _a.dismissible, otherProps = tslib.__rest(_a, ["type", "children", "onDismiss", "dismissText", "toastRef", "focus", "show", "dismissible"]);
|
|
1935
|
+
_a.onDismiss; var dismissText = _a.dismissText, toastRef = _a.toastRef, focus = _a.focus, show = _a.show, dismissible = _a.dismissible, className = _a.className, otherProps = tslib.__rest(_a, ["type", "children", "onDismiss", "dismissText", "toastRef", "focus", "show", "dismissible", "className"]);
|
|
1936
1936
|
var scrim = type === 'action-needed' && show ? (React__default["default"].createElement("div", { className: "Scrim--light Scrim--show Scrim--fade-in" })) : null;
|
|
1937
1937
|
var defaultProps = {
|
|
1938
1938
|
tabIndex: -1,
|
|
1939
|
-
className: classNames__default["default"]('Toast', "Toast--".concat(typeMap[type].className), animationClass, { 'Toast--non-dismissible': !dismissible })
|
|
1939
|
+
className: classNames__default["default"]('Toast', "Toast--".concat(typeMap[type].className), animationClass, { 'Toast--non-dismissible': !dismissible }, className)
|
|
1940
1940
|
};
|
|
1941
1941
|
if (!focus) {
|
|
1942
1942
|
defaultProps.role = 'alert';
|
|
@@ -2267,7 +2267,7 @@ var RadioCardGroup = function (_a) {
|
|
|
2267
2267
|
RadioCardGroup.displayName = 'RadioCardGroup';
|
|
2268
2268
|
|
|
2269
2269
|
var Checkbox = React.forwardRef(function (_a, ref) {
|
|
2270
|
-
var id = _a.id, label = _a.label, labelDescription = _a.labelDescription, error = _a.error, checkboxRef = _a.checkboxRef, className = _a.className, onChange = _a.onChange, onFocus = _a.onFocus, onBlur = _a.onBlur, ariaDescribedby = _a["aria-describedby"], _b = _a.disabled, disabled = _b === void 0 ? false : _b, _c = _a.checked, checked = _c === void 0 ? false : _c
|
|
2270
|
+
var id = _a.id, label = _a.label, labelDescription = _a.labelDescription, error = _a.error, checkboxRef = _a.checkboxRef, className = _a.className, onChange = _a.onChange, onFocus = _a.onFocus, onBlur = _a.onBlur, ariaDescribedby = _a["aria-describedby"], _b = _a.disabled, disabled = _b === void 0 ? false : _b, _c = _a.checked, checked = _c === void 0 ? false : _c; _a.children; var other = tslib.__rest(_a, ["id", "label", "labelDescription", "error", "checkboxRef", "className", "onChange", "onFocus", "onBlur", 'aria-describedby', "disabled", "checked", "children"]);
|
|
2271
2271
|
var _d = tslib.__read(React.useState(checked), 2), isChecked = _d[0], setIsChecked = _d[1];
|
|
2272
2272
|
var _e = tslib.__read(React.useState(false), 2), focused = _e[0], setFocused = _e[1];
|
|
2273
2273
|
var checkRef = React.useRef(null);
|
|
@@ -2368,7 +2368,7 @@ var TextField = /** @class */ (function (_super) {
|
|
|
2368
2368
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2369
2369
|
_a.onChange;
|
|
2370
2370
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2371
|
-
_a.defaultValue; var _b = _a.error, error = _b === void 0 ? null : _b, requiredText = _a.requiredText, multiline = _a.multiline, ariaDescribedby = _a["aria-describedby"]
|
|
2371
|
+
_a.defaultValue; var _b = _a.error, error = _b === void 0 ? null : _b, requiredText = _a.requiredText, multiline = _a.multiline, ariaDescribedby = _a["aria-describedby"]; _a.children; var className = _a.className, other = tslib.__rest(_a, ["label", "fieldRef", "value", "onChange", "defaultValue", "error", "requiredText", "multiline", 'aria-describedby', "children", "className"]);
|
|
2372
2372
|
// typescript can't infer the type so it's complaining about
|
|
2373
2373
|
// textarea and input props being incompatible
|
|
2374
2374
|
// we should probably fix this
|
package/package.json
CHANGED