@doist/reactist 21.2.1 → 21.3.0
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.
- package/dist/reactist.cjs.development.js +6 -4
- package/dist/reactist.cjs.development.js.map +1 -1
- package/dist/reactist.cjs.production.min.js +1 -1
- package/dist/reactist.cjs.production.min.js.map +1 -1
- package/es/text-area/text-area.module.css.js +1 -1
- package/es/toast/use-toasts.js +5 -3
- package/es/toast/use-toasts.js.map +1 -1
- package/lib/text-area/text-area.module.css.js +1 -1
- package/lib/toast/use-toasts.d.ts +5 -1
- package/lib/toast/use-toasts.js +1 -1
- package/lib/toast/use-toasts.js.map +1 -1
- package/package.json +1 -1
- package/styles/reactist.css +1 -1
- package/styles/text-area.css +1 -1
- package/styles/text-area.module.css.css +1 -1
|
@@ -1321,7 +1321,8 @@ function ToastsProvider({
|
|
|
1321
1321
|
defaultAutoDismissDelay = 10
|
|
1322
1322
|
/* seconds */
|
|
1323
1323
|
,
|
|
1324
|
-
defaultDismissLabel = 'Close'
|
|
1324
|
+
defaultDismissLabel = 'Close',
|
|
1325
|
+
containerClassName
|
|
1325
1326
|
}) {
|
|
1326
1327
|
const [toasts, setToasts] = React__default.useState([]);
|
|
1327
1328
|
const {
|
|
@@ -1355,11 +1356,12 @@ function ToastsProvider({
|
|
|
1355
1356
|
return /*#__PURE__*/React__default.createElement(ToastsContext.Provider, {
|
|
1356
1357
|
value: showToast
|
|
1357
1358
|
}, children, /*#__PURE__*/React__default.createElement(portal.Portal, null, toasts.length === 0 ? null : /*#__PURE__*/React__default.createElement(Box, {
|
|
1358
|
-
className: modules_d11e18f0.stackedToastsView,
|
|
1359
|
+
className: [modules_d11e18f0.stackedToastsView, containerClassName],
|
|
1359
1360
|
position: "fixed",
|
|
1360
1361
|
width: "full",
|
|
1361
1362
|
paddingX: padding,
|
|
1362
|
-
paddingBottom: padding
|
|
1363
|
+
paddingBottom: padding,
|
|
1364
|
+
"data-testid": "toasts-container"
|
|
1363
1365
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
1364
1366
|
space: "medium"
|
|
1365
1367
|
}, toasts.map(_ref => {
|
|
@@ -2044,7 +2046,7 @@ const SwitchField = /*#__PURE__*/React.forwardRef(function SwitchField(_ref, ref
|
|
|
2044
2046
|
}, hint) : null);
|
|
2045
2047
|
});
|
|
2046
2048
|
|
|
2047
|
-
var modules_2728c236 = {"textAreaContainer":"
|
|
2049
|
+
var modules_2728c236 = {"textAreaContainer":"_29503131","innerContainer":"_6ea894ce","bordered":"e1e8b6a7","error":"_1b94ff46","autoExpand":"e82223c4"};
|
|
2048
2050
|
|
|
2049
2051
|
const _excluded$o = ["variant", "id", "label", "secondaryLabel", "auxiliaryLabel", "hint", "message", "tone", "maxWidth", "hidden", "aria-describedby", "rows", "autoExpand"];
|
|
2050
2052
|
const TextArea = /*#__PURE__*/React.forwardRef(function TextArea(_ref, ref) {
|