@activecollab/components 1.0.211 → 1.0.212
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/cjs/components/Dialog/Dialog.js +32 -14
- package/dist/cjs/components/Dialog/Dialog.js.map +1 -1
- package/dist/cjs/components/Dialog/DialogActions.js +4 -0
- package/dist/cjs/components/Dialog/DialogActions.js.map +1 -1
- package/dist/cjs/components/Dialog/DialogContent.js +4 -0
- package/dist/cjs/components/Dialog/DialogContent.js.map +1 -1
- package/dist/cjs/components/Dialog/DialogContentDivider.js +4 -0
- package/dist/cjs/components/Dialog/DialogContentDivider.js.map +1 -1
- package/dist/cjs/components/Dialog/DialogContext.js +18 -0
- package/dist/cjs/components/Dialog/DialogContext.js.map +1 -0
- package/dist/cjs/components/Dialog/DialogTitle.js +2 -0
- package/dist/cjs/components/Dialog/DialogTitle.js.map +1 -1
- package/dist/cjs/components/Dialog/index.js.map +1 -1
- package/dist/esm/components/Dialog/Dialog.d.ts +25 -4
- package/dist/esm/components/Dialog/Dialog.d.ts.map +1 -1
- package/dist/esm/components/Dialog/Dialog.js +32 -13
- package/dist/esm/components/Dialog/Dialog.js.map +1 -1
- package/dist/esm/components/Dialog/DialogActions.d.ts +5 -2
- package/dist/esm/components/Dialog/DialogActions.d.ts.map +1 -1
- package/dist/esm/components/Dialog/DialogActions.js +4 -0
- package/dist/esm/components/Dialog/DialogActions.js.map +1 -1
- package/dist/esm/components/Dialog/DialogContent.d.ts +5 -2
- package/dist/esm/components/Dialog/DialogContent.d.ts.map +1 -1
- package/dist/esm/components/Dialog/DialogContent.js +4 -0
- package/dist/esm/components/Dialog/DialogContent.js.map +1 -1
- package/dist/esm/components/Dialog/DialogContentDivider.d.ts +5 -2
- package/dist/esm/components/Dialog/DialogContentDivider.d.ts.map +1 -1
- package/dist/esm/components/Dialog/DialogContentDivider.js +4 -0
- package/dist/esm/components/Dialog/DialogContentDivider.js.map +1 -1
- package/dist/esm/components/Dialog/DialogContext.d.ts +6 -0
- package/dist/esm/components/Dialog/DialogContext.d.ts.map +1 -0
- package/dist/esm/components/Dialog/DialogContext.js +13 -0
- package/dist/esm/components/Dialog/DialogContext.js.map +1 -0
- package/dist/esm/components/Dialog/DialogTitle.d.ts +6 -5
- package/dist/esm/components/Dialog/DialogTitle.d.ts.map +1 -1
- package/dist/esm/components/Dialog/DialogTitle.js +4 -0
- package/dist/esm/components/Dialog/DialogTitle.js.map +1 -1
- package/dist/esm/components/Dialog/index.d.ts.map +1 -1
- package/dist/esm/components/Dialog/index.js +9 -0
- package/dist/esm/components/Dialog/index.js.map +1 -1
- package/dist/index.js +65 -36
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9194,73 +9194,101 @@
|
|
|
9194
9194
|
})(["padding:20px 30px;", " ", ""], FontStyle, BoxSizingStyle);
|
|
9195
9195
|
StyledDialogActions.displayName = "StyledDialogActions";
|
|
9196
9196
|
|
|
9197
|
-
var
|
|
9197
|
+
var _excluded$m = ["children", "className", "disableDefaultHeading"];
|
|
9198
|
+
// import { useDialogContext } from "./DialogContext";
|
|
9199
|
+
|
|
9200
|
+
var DialogTitle = function DialogTitle(_ref) {
|
|
9198
9201
|
var children = _ref.children,
|
|
9199
|
-
_ref$open = _ref.open,
|
|
9200
|
-
open = _ref$open === void 0 ? false : _ref$open,
|
|
9201
|
-
onClose = _ref.onClose,
|
|
9202
9202
|
className = _ref.className,
|
|
9203
|
-
_ref$
|
|
9204
|
-
|
|
9205
|
-
|
|
9206
|
-
|
|
9207
|
-
|
|
9208
|
-
|
|
9209
|
-
|
|
9210
|
-
|
|
9211
|
-
|
|
9212
|
-
|
|
9213
|
-
|
|
9214
|
-
|
|
9215
|
-
|
|
9216
|
-
className: classNames__default["default"]("c-dialog", className)
|
|
9217
|
-
}, children)));
|
|
9218
|
-
});
|
|
9219
|
-
Dialog.displayName = "Dialog";
|
|
9203
|
+
_ref$disableDefaultHe = _ref.disableDefaultHeading,
|
|
9204
|
+
disableDefaultHeading = _ref$disableDefaultHe === void 0 ? false : _ref$disableDefaultHe,
|
|
9205
|
+
rest = _objectWithoutProperties(_ref, _excluded$m);
|
|
9206
|
+
// useDialogContext();
|
|
9207
|
+
|
|
9208
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledDialogTitle, _extends({
|
|
9209
|
+
className: classNames__default["default"]("c-dialog-title-wrapper", className)
|
|
9210
|
+
}, rest), disableDefaultHeading ? children : /*#__PURE__*/React__default["default"].createElement(Header3, null, children));
|
|
9211
|
+
};
|
|
9212
|
+
DialogTitle.displayName = "DialogTitle";
|
|
9213
|
+
|
|
9214
|
+
var _excluded$l = ["className", "children"];
|
|
9215
|
+
// import { useDialogContext } from "./DialogContext";
|
|
9220
9216
|
|
|
9221
|
-
var _excluded$m = ["className", "children"];
|
|
9222
9217
|
var DialogContent = function DialogContent(_ref) {
|
|
9223
9218
|
var className = _ref.className,
|
|
9224
9219
|
children = _ref.children,
|
|
9225
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
9220
|
+
rest = _objectWithoutProperties(_ref, _excluded$l);
|
|
9221
|
+
// useDialogContext();
|
|
9222
|
+
|
|
9226
9223
|
return /*#__PURE__*/React__default["default"].createElement(StyledDialogContent, _extends({
|
|
9227
9224
|
className: classNames__default["default"]("c-dialog-content", className)
|
|
9228
9225
|
}, rest), children);
|
|
9229
9226
|
};
|
|
9230
9227
|
DialogContent.displayName = "DialogContent";
|
|
9231
9228
|
|
|
9229
|
+
// import { useDialogContext } from "./DialogContext";
|
|
9230
|
+
|
|
9232
9231
|
var DialogContentDivider = function DialogContentDivider(_ref) {
|
|
9233
9232
|
var className = _ref.className;
|
|
9233
|
+
// useDialogContext();
|
|
9234
|
+
|
|
9234
9235
|
return /*#__PURE__*/React__default["default"].createElement(StyledDialogContentDivider, {
|
|
9235
9236
|
className: classNames__default["default"]("c-dialog-content-divider", className)
|
|
9236
9237
|
});
|
|
9237
9238
|
};
|
|
9238
9239
|
DialogContentDivider.displayName = "DialogContentDivider";
|
|
9239
9240
|
|
|
9240
|
-
var _excluded$l = ["children", "className", "disableDefaultHeading"];
|
|
9241
|
-
var DialogTitle = function DialogTitle(_ref) {
|
|
9242
|
-
var children = _ref.children,
|
|
9243
|
-
className = _ref.className,
|
|
9244
|
-
_ref$disableDefaultHe = _ref.disableDefaultHeading,
|
|
9245
|
-
disableDefaultHeading = _ref$disableDefaultHe === void 0 ? false : _ref$disableDefaultHe,
|
|
9246
|
-
rest = _objectWithoutProperties(_ref, _excluded$l);
|
|
9247
|
-
return /*#__PURE__*/React__default["default"].createElement(StyledDialogTitle, _extends({
|
|
9248
|
-
className: classNames__default["default"]("c-dialog-title-wrapper", className)
|
|
9249
|
-
}, rest), disableDefaultHeading ? children : /*#__PURE__*/React__default["default"].createElement(Header3, null, children));
|
|
9250
|
-
};
|
|
9251
|
-
DialogTitle.displayName = "DialogTitle";
|
|
9252
|
-
|
|
9253
9241
|
var _excluded$k = ["className", "children"];
|
|
9242
|
+
// import { useDialogContext } from "./DialogContext";
|
|
9243
|
+
|
|
9254
9244
|
var DialogActions = function DialogActions(_ref) {
|
|
9255
9245
|
var className = _ref.className,
|
|
9256
9246
|
children = _ref.children,
|
|
9257
9247
|
rest = _objectWithoutProperties(_ref, _excluded$k);
|
|
9248
|
+
// useDialogContext();
|
|
9249
|
+
|
|
9258
9250
|
return /*#__PURE__*/React__default["default"].createElement(StyledDialogActions, _extends({
|
|
9259
9251
|
className: classNames__default["default"]("c-dialog-actions", className)
|
|
9260
9252
|
}, rest), children);
|
|
9261
9253
|
};
|
|
9262
9254
|
DialogActions.displayName = "DialogActions";
|
|
9263
9255
|
|
|
9256
|
+
var _Dialog = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
9257
|
+
var children = _ref.children,
|
|
9258
|
+
_ref$open = _ref.open,
|
|
9259
|
+
open = _ref$open === void 0 ? false : _ref$open,
|
|
9260
|
+
onClose = _ref.onClose,
|
|
9261
|
+
className = _ref.className,
|
|
9262
|
+
_ref$enableBackground = _ref.enableBackgroundClick,
|
|
9263
|
+
enableBackgroundClick = _ref$enableBackground === void 0 ? false : _ref$enableBackground,
|
|
9264
|
+
_ref$disableCloseOnEs = _ref.disableCloseOnEsc,
|
|
9265
|
+
disableCloseOnEsc = _ref$disableCloseOnEs === void 0 ? false : _ref$disableCloseOnEs;
|
|
9266
|
+
return (
|
|
9267
|
+
/*#__PURE__*/
|
|
9268
|
+
// <DialogContext.Provider value={{}}>
|
|
9269
|
+
React__default["default"].createElement(Modal, {
|
|
9270
|
+
ref: ref,
|
|
9271
|
+
open: open,
|
|
9272
|
+
onClose: onClose,
|
|
9273
|
+
disableBackgroundClick: !enableBackgroundClick,
|
|
9274
|
+
disableCloseOnEsc: disableCloseOnEsc
|
|
9275
|
+
}, /*#__PURE__*/React__default["default"].createElement(SlideFromTop, {
|
|
9276
|
+
in: open
|
|
9277
|
+
}, /*#__PURE__*/React__default["default"].createElement(StyledDialog, {
|
|
9278
|
+
className: classNames__default["default"]("c-dialog", className)
|
|
9279
|
+
}, children)))
|
|
9280
|
+
// </DialogContext.Provider>
|
|
9281
|
+
);
|
|
9282
|
+
});
|
|
9283
|
+
|
|
9284
|
+
var Dialog = Object.assign({}, _Dialog, {
|
|
9285
|
+
Title: DialogTitle,
|
|
9286
|
+
Content: DialogContent,
|
|
9287
|
+
ContentDivider: DialogContentDivider,
|
|
9288
|
+
Actions: DialogActions
|
|
9289
|
+
});
|
|
9290
|
+
_Dialog.displayName = "Dialog";
|
|
9291
|
+
|
|
9264
9292
|
var ConfirmDialog = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
9265
9293
|
var _ref$open = _ref.open,
|
|
9266
9294
|
open = _ref$open === void 0 ? false : _ref$open,
|
|
@@ -12626,6 +12654,7 @@
|
|
|
12626
12654
|
exports.Wizard = Wizard;
|
|
12627
12655
|
exports.WorkloadIcon = WorkloadIcon$1;
|
|
12628
12656
|
exports.YearMonthPicker = YearMonthPicker;
|
|
12657
|
+
exports._Dialog = _Dialog;
|
|
12629
12658
|
exports.isOptionGroup = isOptionGroup;
|
|
12630
12659
|
exports.layers = layers;
|
|
12631
12660
|
exports.signifierTypes = signifierTypes;
|