@activecollab/components 1.0.212 → 1.0.214
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 +3 -1
- package/dist/cjs/components/Dialog/Dialog.js.map +1 -1
- package/dist/esm/components/Dialog/Dialog.d.ts.map +1 -1
- package/dist/esm/components/Dialog/Dialog.js +3 -1
- package/dist/esm/components/Dialog/Dialog.js.map +1 -1
- package/dist/index.js +3 -1
- 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 -2
|
@@ -47,6 +47,9 @@ var _Dialog = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
47
47
|
);
|
|
48
48
|
});
|
|
49
49
|
exports._Dialog = _Dialog;
|
|
50
|
+
_Dialog.displayName = "Dialog";
|
|
51
|
+
|
|
52
|
+
// https://github.com/DefinitelyTyped/DefinitelyTyped/issues/34757
|
|
50
53
|
var Dialog = Object.assign({}, _Dialog, {
|
|
51
54
|
Title: _DialogTitle.DialogTitle,
|
|
52
55
|
Content: _DialogContent.DialogContent,
|
|
@@ -54,5 +57,4 @@ var Dialog = Object.assign({}, _Dialog, {
|
|
|
54
57
|
Actions: _DialogActions.DialogActions
|
|
55
58
|
});
|
|
56
59
|
exports.Dialog = Dialog;
|
|
57
|
-
_Dialog.displayName = "Dialog";
|
|
58
60
|
//# sourceMappingURL=Dialog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.js","names":["_Dialog","forwardRef","ref","children","open","onClose","className","enableBackgroundClick","disableCloseOnEsc","classnames","Dialog","Object","assign","Title","DialogTitle","Content","DialogContent","ContentDivider","DialogContentDivider","Actions","DialogActions"
|
|
1
|
+
{"version":3,"file":"Dialog.js","names":["_Dialog","forwardRef","ref","children","open","onClose","className","enableBackgroundClick","disableCloseOnEsc","classnames","displayName","Dialog","Object","assign","Title","DialogTitle","Content","DialogContent","ContentDivider","DialogContentDivider","Actions","DialogActions"],"sources":["../../../../src/components/Dialog/Dialog.tsx"],"sourcesContent":["import React, { forwardRef, PropsWithChildren } from \"react\";\nimport classnames from \"classnames\";\nimport { Modal } from \"../Modal\";\nimport { SlideFromTop } from \"../Transitions/SlideFromTop\";\nimport { StyledDialog } from \"./Styles\";\n\n// import { DialogContext } from \"./DialogContext\";\n\nimport { DialogTitle } from \"./DialogTitle\";\nimport { DialogContent } from \"./DialogContent\";\nimport { DialogContentDivider } from \"./DialogContentDivider\";\nimport { DialogActions } from \"./DialogActions\";\n\nexport interface DialogProps {\n open?: boolean;\n onClose?: () => void;\n className?: string;\n enableBackgroundClick?: boolean;\n disableCloseOnEsc?: boolean;\n}\n\nexport const _Dialog = forwardRef<\n HTMLDivElement,\n PropsWithChildren<DialogProps>\n>(\n (\n {\n children,\n open = false,\n onClose,\n className,\n enableBackgroundClick = false,\n disableCloseOnEsc = false,\n },\n ref\n ) => {\n return (\n // <DialogContext.Provider value={{}}>\n <Modal\n ref={ref}\n open={open}\n onClose={onClose}\n disableBackgroundClick={!enableBackgroundClick}\n disableCloseOnEsc={disableCloseOnEsc}\n >\n <SlideFromTop in={open}>\n <StyledDialog className={classnames(\"c-dialog\", className)}>\n {children}\n </StyledDialog>\n </SlideFromTop>\n </Modal>\n // </DialogContext.Provider>\n );\n }\n);\n\n_Dialog.displayName = \"Dialog\";\n\n// https://github.com/DefinitelyTyped/DefinitelyTyped/issues/34757\nexport const Dialog = Object.assign({}, _Dialog, {\n Title: DialogTitle,\n Content: DialogContent,\n ContentDivider: DialogContentDivider,\n Actions: DialogActions,\n});\n"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;AACA;AAAgD;AAAA;AAAA;AALhD;;AAeO,IAAMA,OAAO,gBAAG,IAAAC,iBAAU,EAI/B,gBASEC,GAAG,EACA;EAAA,IARDC,QAAQ,QAARA,QAAQ;IAAA,iBACRC,IAAI;IAAJA,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{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../src/components/Dialog/Dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAa7D,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,eAAO,MAAM,OAAO;;wCAiCnB,CAAC;AAKF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;CAKjB,CAAC"}
|
|
@@ -38,11 +38,13 @@ export var _Dialog = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
38
38
|
);
|
|
39
39
|
});
|
|
40
40
|
|
|
41
|
+
_Dialog.displayName = "Dialog";
|
|
42
|
+
|
|
43
|
+
// https://github.com/DefinitelyTyped/DefinitelyTyped/issues/34757
|
|
41
44
|
export var Dialog = Object.assign({}, _Dialog, {
|
|
42
45
|
Title: DialogTitle,
|
|
43
46
|
Content: DialogContent,
|
|
44
47
|
ContentDivider: DialogContentDivider,
|
|
45
48
|
Actions: DialogActions
|
|
46
49
|
});
|
|
47
|
-
_Dialog.displayName = "Dialog";
|
|
48
50
|
//# sourceMappingURL=Dialog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.js","names":["React","forwardRef","classnames","Modal","SlideFromTop","StyledDialog","DialogTitle","DialogContent","DialogContentDivider","DialogActions","_Dialog","ref","children","open","onClose","className","enableBackgroundClick","disableCloseOnEsc","Dialog","Object","assign","Title","Content","ContentDivider","Actions"
|
|
1
|
+
{"version":3,"file":"Dialog.js","names":["React","forwardRef","classnames","Modal","SlideFromTop","StyledDialog","DialogTitle","DialogContent","DialogContentDivider","DialogActions","_Dialog","ref","children","open","onClose","className","enableBackgroundClick","disableCloseOnEsc","displayName","Dialog","Object","assign","Title","Content","ContentDivider","Actions"],"sources":["../../../../src/components/Dialog/Dialog.tsx"],"sourcesContent":["import React, { forwardRef, PropsWithChildren } from \"react\";\nimport classnames from \"classnames\";\nimport { Modal } from \"../Modal\";\nimport { SlideFromTop } from \"../Transitions/SlideFromTop\";\nimport { StyledDialog } from \"./Styles\";\n\n// import { DialogContext } from \"./DialogContext\";\n\nimport { DialogTitle } from \"./DialogTitle\";\nimport { DialogContent } from \"./DialogContent\";\nimport { DialogContentDivider } from \"./DialogContentDivider\";\nimport { DialogActions } from \"./DialogActions\";\n\nexport interface DialogProps {\n open?: boolean;\n onClose?: () => void;\n className?: string;\n enableBackgroundClick?: boolean;\n disableCloseOnEsc?: boolean;\n}\n\nexport const _Dialog = forwardRef<\n HTMLDivElement,\n PropsWithChildren<DialogProps>\n>(\n (\n {\n children,\n open = false,\n onClose,\n className,\n enableBackgroundClick = false,\n disableCloseOnEsc = false,\n },\n ref\n ) => {\n return (\n // <DialogContext.Provider value={{}}>\n <Modal\n ref={ref}\n open={open}\n onClose={onClose}\n disableBackgroundClick={!enableBackgroundClick}\n disableCloseOnEsc={disableCloseOnEsc}\n >\n <SlideFromTop in={open}>\n <StyledDialog className={classnames(\"c-dialog\", className)}>\n {children}\n </StyledDialog>\n </SlideFromTop>\n </Modal>\n // </DialogContext.Provider>\n );\n }\n);\n\n_Dialog.displayName = \"Dialog\";\n\n// https://github.com/DefinitelyTyped/DefinitelyTyped/issues/34757\nexport const Dialog = Object.assign({}, _Dialog, {\n Title: DialogTitle,\n Content: DialogContent,\n ContentDivider: DialogContentDivider,\n Actions: DialogActions,\n});\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,UAAU,QAA2B,OAAO;AAC5D,OAAOC,UAAU,MAAM,YAAY;AACnC,SAASC,KAAK,QAAQ,UAAU;AAChC,SAASC,YAAY,QAAQ,6BAA6B;AAC1D,SAASC,YAAY,QAAQ,UAAU;;AAEvC;;AAEA,SAASC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yped/issues/34757
|
|
9284
9287
|
var Dialog = Object.assign({}, _Dialog, {
|
|
9285
9288
|
Title: DialogTitle,
|
|
9286
9289
|
Content: DialogContent,
|
|
9287
9290
|
ContentDivider: DialogContentDivider,
|
|
9288
9291
|
Actions: DialogActions
|
|
9289
9292
|
});
|
|
9290
|
-
_Dialog.displayName = "Dialog";
|
|
9291
9293
|
|
|
9292
9294
|
var ConfirmDialog = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
9293
9295
|
var _ref$open = _ref.open,
|