@elliemae/ds-modal-slide 3.0.0-alpha.0 → 3.0.0-alpha.1

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.
@@ -2,8 +2,22 @@ var __create = Object.create;
2
2
  var __defProp = Object.defineProperty;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
6
  var __getProtoOf = Object.getPrototypeOf;
6
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
9
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
10
+ var __spreadValues = (a, b) => {
11
+ for (var prop in b || (b = {}))
12
+ if (__hasOwnProp.call(b, prop))
13
+ __defNormalProp(a, prop, b[prop]);
14
+ if (__getOwnPropSymbols)
15
+ for (var prop of __getOwnPropSymbols(b)) {
16
+ if (__propIsEnum.call(b, prop))
17
+ __defNormalProp(a, prop, b[prop]);
18
+ }
19
+ return a;
20
+ };
7
21
  var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
22
  var __export = (target, all) => {
9
23
  for (var name in all)
@@ -46,21 +60,19 @@ const ModalFooter = ({
46
60
  rejectProps = {
47
61
  disabled: false
48
62
  }
49
- }) => /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(import_blocks.FooterWrapper, null, !!onReject && /* @__PURE__ */ import_react.default.createElement(import_ds_button.default, {
63
+ }) => /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(import_blocks.FooterWrapper, null, !!onReject && /* @__PURE__ */ import_react.default.createElement(import_ds_button.default, __spreadValues({
50
64
  buttonType: "secondary",
51
65
  className: "action-reject",
52
66
  containerProps: { "data-testid": "modal-footer-reject-btn" },
53
67
  labelText: rejectLabel,
54
- onClick: onReject,
55
- ...rejectProps
56
- }), !!onConfirm && /* @__PURE__ */ import_react.default.createElement(import_ds_button.default, {
68
+ onClick: onReject
69
+ }, rejectProps)), !!onConfirm && /* @__PURE__ */ import_react.default.createElement(import_ds_button.default, __spreadValues({
57
70
  buttonType: "primary",
58
71
  className: "action-confirm",
59
72
  containerProps: { "data-testid": "modal-footer-confirm-btn" },
60
73
  labelText: confirmLabel,
61
- onClick: onConfirm,
62
- ...confirmProps
63
- })));
74
+ onClick: onConfirm
75
+ }, confirmProps))));
64
76
  const props = {
65
77
  confirmLabel: import_react_desc.PropTypes.string.description("Confirm Label"),
66
78
  rejectLabel: import_react_desc.PropTypes.string.description("Reject Label"),
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/Footer.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["import React from 'react';\nimport { PropTypes, describe } from 'react-desc';\nimport DSButton from '@elliemae/ds-button';\nimport { FooterWrapper } from './blocks';\n\nconst ModalFooter = ({\n confirmLabel = 'Confirm',\n rejectLabel = 'Cancel',\n onConfirm,\n onReject,\n confirmProps = {\n disabled: false,\n },\n rejectProps = {\n disabled: false,\n },\n}) => (\n <>\n <FooterWrapper>\n {!!onReject && (\n <DSButton\n buttonType=\"secondary\"\n className=\"action-reject\"\n containerProps={{ 'data-testid': 'modal-footer-reject-btn' }}\n labelText={rejectLabel}\n onClick={onReject}\n {...rejectProps}\n />\n )}\n {!!onConfirm && (\n <DSButton\n buttonType=\"primary\"\n className=\"action-confirm\"\n containerProps={{ 'data-testid': 'modal-footer-confirm-btn' }}\n labelText={confirmLabel}\n onClick={onConfirm}\n {...confirmProps}\n />\n )}\n </FooterWrapper>\n </>\n);\n\nconst props = {\n /**\n * Confirm Label\n */\n confirmLabel: PropTypes.string.description('Confirm Label'),\n /**\n * Reject Label\n */\n rejectLabel: PropTypes.string.description('Reject Label'),\n /**\n * Callback\n */\n onConfirm: PropTypes.func.description('Callback'),\n /**\n * Callback\n */\n onReject: PropTypes.func.description('Callback'),\n /**\n * Extra DSButton props for confirm btn.\n */\n confirmProps: PropTypes.shape({\n disabled: PropTypes.bool,\n }).description('Extra DSButton props for confirm btn.'),\n /**\n * Extra DSButton props for reject btn.\n */\n rejectProps: PropTypes.shape({\n disabled: PropTypes.bool,\n }).description('Extra DSButton props for reject btn.'),\n};\n\nModalFooter.propTypes = props;\n\nconst DSModalSlideFooterWithSchema = describe(ModalFooter);\nDSModalSlideFooterWithSchema.propTypes = props;\n\nexport { DSModalSlideFooterWithSchema };\n\nexport default ModalFooter;\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAkB;AAClB,wBAAoC;AACpC,uBAAqB;AACrB,oBAA8B;AAE9B,MAAM,cAAc,CAAC;AAAA,EACnB,eAAe;AAAA,EACf,cAAc;AAAA,EACd;AAAA,EACA;AAAA,EACA,eAAe;AAAA,IACb,UAAU;AAAA;AAAA,EAEZ,cAAc;AAAA,IACZ,UAAU;AAAA;AAAA,MAGZ,wFACE,mDAAC,6BAAD,MACG,CAAC,CAAC,YACD,mDAAC,0BAAD;AAAA,EACE,YAAW;AAAA,EACX,WAAU;AAAA,EACV,gBAAgB,EAAE,eAAe;AAAA,EACjC,WAAW;AAAA,EACX,SAAS;AAAA,KACL;AAAA,IAGP,CAAC,CAAC,aACD,mDAAC,0BAAD;AAAA,EACE,YAAW;AAAA,EACX,WAAU;AAAA,EACV,gBAAgB,EAAE,eAAe;AAAA,EACjC,WAAW;AAAA,EACX,SAAS;AAAA,KACL;AAAA;AAOd,MAAM,QAAQ;AAAA,EAIZ,cAAc,4BAAU,OAAO,YAAY;AAAA,EAI3C,aAAa,4BAAU,OAAO,YAAY;AAAA,EAI1C,WAAW,4BAAU,KAAK,YAAY;AAAA,EAItC,UAAU,4BAAU,KAAK,YAAY;AAAA,EAIrC,cAAc,4BAAU,MAAM;AAAA,IAC5B,UAAU,4BAAU;AAAA,KACnB,YAAY;AAAA,EAIf,aAAa,4BAAU,MAAM;AAAA,IAC3B,UAAU,4BAAU;AAAA,KACnB,YAAY;AAAA;AAGjB,YAAY,YAAY;AAExB,MAAM,+BAA+B,gCAAS;AAC9C,6BAA6B,YAAY;AAIzC,IAAO,iBAAQ;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAkB;AAClB,wBAAoC;AACpC,uBAAqB;AACrB,oBAA8B;AAE9B,MAAM,cAAc,CAAC;AAAA,EACnB,eAAe;AAAA,EACf,cAAc;AAAA,EACd;AAAA,EACA;AAAA,EACA,eAAe;AAAA,IACb,UAAU;AAAA;AAAA,EAEZ,cAAc;AAAA,IACZ,UAAU;AAAA;AAAA,MAGZ,wFACE,mDAAC,6BAAD,MACG,CAAC,CAAC,YACD,mDAAC,0BAAD;AAAA,EACE,YAAW;AAAA,EACX,WAAU;AAAA,EACV,gBAAgB,EAAE,eAAe;AAAA,EACjC,WAAW;AAAA,EACX,SAAS;AAAA,GACL,eAGP,CAAC,CAAC,aACD,mDAAC,0BAAD;AAAA,EACE,YAAW;AAAA,EACX,WAAU;AAAA,EACV,gBAAgB,EAAE,eAAe;AAAA,EACjC,WAAW;AAAA,EACX,SAAS;AAAA,GACL;AAOd,MAAM,QAAQ;AAAA,EAIZ,cAAc,4BAAU,OAAO,YAAY;AAAA,EAI3C,aAAa,4BAAU,OAAO,YAAY;AAAA,EAI1C,WAAW,4BAAU,KAAK,YAAY;AAAA,EAItC,UAAU,4BAAU,KAAK,YAAY;AAAA,EAIrC,cAAc,4BAAU,MAAM;AAAA,IAC5B,UAAU,4BAAU;AAAA,KACnB,YAAY;AAAA,EAIf,aAAa,4BAAU,MAAM;AAAA,IAC3B,UAAU,4BAAU;AAAA,KACnB,YAAY;AAAA;AAGjB,YAAY,YAAY;AAExB,MAAM,+BAA+B,gCAAS;AAC9C,6BAA6B,YAAY;AAIzC,IAAO,iBAAQ;",
6
6
  "names": []
7
7
  }
@@ -1,3 +1,19 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
3
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
4
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
5
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6
+ var __spreadValues = (a, b) => {
7
+ for (var prop in b || (b = {}))
8
+ if (__hasOwnProp.call(b, prop))
9
+ __defNormalProp(a, prop, b[prop]);
10
+ if (__getOwnPropSymbols)
11
+ for (var prop of __getOwnPropSymbols(b)) {
12
+ if (__propIsEnum.call(b, prop))
13
+ __defNormalProp(a, prop, b[prop]);
14
+ }
15
+ return a;
16
+ };
1
17
  import * as React from "react";
2
18
  import React2 from "react";
3
19
  import { PropTypes, describe } from "react-desc";
@@ -14,21 +30,19 @@ const ModalFooter = ({
14
30
  rejectProps = {
15
31
  disabled: false
16
32
  }
17
- }) => /* @__PURE__ */ React2.createElement(React2.Fragment, null, /* @__PURE__ */ React2.createElement(FooterWrapper, null, !!onReject && /* @__PURE__ */ React2.createElement(DSButton, {
33
+ }) => /* @__PURE__ */ React2.createElement(React2.Fragment, null, /* @__PURE__ */ React2.createElement(FooterWrapper, null, !!onReject && /* @__PURE__ */ React2.createElement(DSButton, __spreadValues({
18
34
  buttonType: "secondary",
19
35
  className: "action-reject",
20
36
  containerProps: { "data-testid": "modal-footer-reject-btn" },
21
37
  labelText: rejectLabel,
22
- onClick: onReject,
23
- ...rejectProps
24
- }), !!onConfirm && /* @__PURE__ */ React2.createElement(DSButton, {
38
+ onClick: onReject
39
+ }, rejectProps)), !!onConfirm && /* @__PURE__ */ React2.createElement(DSButton, __spreadValues({
25
40
  buttonType: "primary",
26
41
  className: "action-confirm",
27
42
  containerProps: { "data-testid": "modal-footer-confirm-btn" },
28
43
  labelText: confirmLabel,
29
- onClick: onConfirm,
30
- ...confirmProps
31
- })));
44
+ onClick: onConfirm
45
+ }, confirmProps))));
32
46
  const props = {
33
47
  confirmLabel: PropTypes.string.description("Confirm Label"),
34
48
  rejectLabel: PropTypes.string.description("Reject Label"),
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/components/Footer.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { PropTypes, describe } from 'react-desc';\nimport DSButton from '@elliemae/ds-button';\nimport { FooterWrapper } from './blocks';\n\nconst ModalFooter = ({\n confirmLabel = 'Confirm',\n rejectLabel = 'Cancel',\n onConfirm,\n onReject,\n confirmProps = {\n disabled: false,\n },\n rejectProps = {\n disabled: false,\n },\n}) => (\n <>\n <FooterWrapper>\n {!!onReject && (\n <DSButton\n buttonType=\"secondary\"\n className=\"action-reject\"\n containerProps={{ 'data-testid': 'modal-footer-reject-btn' }}\n labelText={rejectLabel}\n onClick={onReject}\n {...rejectProps}\n />\n )}\n {!!onConfirm && (\n <DSButton\n buttonType=\"primary\"\n className=\"action-confirm\"\n containerProps={{ 'data-testid': 'modal-footer-confirm-btn' }}\n labelText={confirmLabel}\n onClick={onConfirm}\n {...confirmProps}\n />\n )}\n </FooterWrapper>\n </>\n);\n\nconst props = {\n /**\n * Confirm Label\n */\n confirmLabel: PropTypes.string.description('Confirm Label'),\n /**\n * Reject Label\n */\n rejectLabel: PropTypes.string.description('Reject Label'),\n /**\n * Callback\n */\n onConfirm: PropTypes.func.description('Callback'),\n /**\n * Callback\n */\n onReject: PropTypes.func.description('Callback'),\n /**\n * Extra DSButton props for confirm btn.\n */\n confirmProps: PropTypes.shape({\n disabled: PropTypes.bool,\n }).description('Extra DSButton props for confirm btn.'),\n /**\n * Extra DSButton props for reject btn.\n */\n rejectProps: PropTypes.shape({\n disabled: PropTypes.bool,\n }).description('Extra DSButton props for reject btn.'),\n};\n\nModalFooter.propTypes = props;\n\nconst DSModalSlideFooterWithSchema = describe(ModalFooter);\nDSModalSlideFooterWithSchema.propTypes = props;\n\nexport { DSModalSlideFooterWithSchema };\n\nexport default ModalFooter;\n"],
5
- "mappings": "AAAA;ACAA;AACA;AACA;AACA;AAEA,MAAM,cAAc,CAAC;AAAA,EACnB,eAAe;AAAA,EACf,cAAc;AAAA,EACd;AAAA,EACA;AAAA,EACA,eAAe;AAAA,IACb,UAAU;AAAA;AAAA,EAEZ,cAAc;AAAA,IACZ,UAAU;AAAA;AAAA,MAGZ,4DACE,qCAAC,eAAD,MACG,CAAC,CAAC,YACD,qCAAC,UAAD;AAAA,EACE,YAAW;AAAA,EACX,WAAU;AAAA,EACV,gBAAgB,EAAE,eAAe;AAAA,EACjC,WAAW;AAAA,EACX,SAAS;AAAA,KACL;AAAA,IAGP,CAAC,CAAC,aACD,qCAAC,UAAD;AAAA,EACE,YAAW;AAAA,EACX,WAAU;AAAA,EACV,gBAAgB,EAAE,eAAe;AAAA,EACjC,WAAW;AAAA,EACX,SAAS;AAAA,KACL;AAAA;AAOd,MAAM,QAAQ;AAAA,EAIZ,cAAc,UAAU,OAAO,YAAY;AAAA,EAI3C,aAAa,UAAU,OAAO,YAAY;AAAA,EAI1C,WAAW,UAAU,KAAK,YAAY;AAAA,EAItC,UAAU,UAAU,KAAK,YAAY;AAAA,EAIrC,cAAc,UAAU,MAAM;AAAA,IAC5B,UAAU,UAAU;AAAA,KACnB,YAAY;AAAA,EAIf,aAAa,UAAU,MAAM;AAAA,IAC3B,UAAU,UAAU;AAAA,KACnB,YAAY;AAAA;AAGjB,YAAY,YAAY;AAExB,MAAM,+BAA+B,SAAS;AAC9C,6BAA6B,YAAY;AAIzC,IAAO,iBAAQ;",
5
+ "mappings": ";;;;;;;;;;;;;;;;AAAA;ACAA;AACA;AACA;AACA;AAEA,MAAM,cAAc,CAAC;AAAA,EACnB,eAAe;AAAA,EACf,cAAc;AAAA,EACd;AAAA,EACA;AAAA,EACA,eAAe;AAAA,IACb,UAAU;AAAA;AAAA,EAEZ,cAAc;AAAA,IACZ,UAAU;AAAA;AAAA,MAGZ,4DACE,qCAAC,eAAD,MACG,CAAC,CAAC,YACD,qCAAC,UAAD;AAAA,EACE,YAAW;AAAA,EACX,WAAU;AAAA,EACV,gBAAgB,EAAE,eAAe;AAAA,EACjC,WAAW;AAAA,EACX,SAAS;AAAA,GACL,eAGP,CAAC,CAAC,aACD,qCAAC,UAAD;AAAA,EACE,YAAW;AAAA,EACX,WAAU;AAAA,EACV,gBAAgB,EAAE,eAAe;AAAA,EACjC,WAAW;AAAA,EACX,SAAS;AAAA,GACL;AAOd,MAAM,QAAQ;AAAA,EAIZ,cAAc,UAAU,OAAO,YAAY;AAAA,EAI3C,aAAa,UAAU,OAAO,YAAY;AAAA,EAI1C,WAAW,UAAU,KAAK,YAAY;AAAA,EAItC,UAAU,UAAU,KAAK,YAAY;AAAA,EAIrC,cAAc,UAAU,MAAM;AAAA,IAC5B,UAAU,UAAU;AAAA,KACnB,YAAY;AAAA,EAIf,aAAa,UAAU,MAAM;AAAA,IAC3B,UAAU,UAAU;AAAA,KACnB,YAAY;AAAA;AAGjB,YAAY,YAAY;AAExB,MAAM,+BAA+B,SAAS;AAC9C,6BAA6B,YAAY;AAIzC,IAAO,iBAAQ;",
6
6
  "names": []
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-modal-slide",
3
- "version": "3.0.0-alpha.0",
3
+ "version": "3.0.0-alpha.1",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Modal Slide",
6
6
  "files": [
@@ -51,12 +51,12 @@
51
51
  "indent": 4
52
52
  },
53
53
  "dependencies": {
54
- "@elliemae/ds-button": "3.0.0-alpha.0",
55
- "@elliemae/ds-classnames": "3.0.0-alpha.0",
56
- "@elliemae/ds-grid": "3.0.0-alpha.0",
57
- "@elliemae/ds-icons": "3.0.0-alpha.0",
58
- "@elliemae/ds-separator": "3.0.0-alpha.0",
59
- "@elliemae/ds-system": "3.0.0-alpha.0",
54
+ "@elliemae/ds-button": "3.0.0-alpha.1",
55
+ "@elliemae/ds-classnames": "3.0.0-alpha.1",
56
+ "@elliemae/ds-grid": "3.0.0-alpha.1",
57
+ "@elliemae/ds-icons": "3.0.0-alpha.1",
58
+ "@elliemae/ds-separator": "3.0.0-alpha.1",
59
+ "@elliemae/ds-system": "3.0.0-alpha.1",
60
60
  "prop-types": "~15.7.2",
61
61
  "react-desc": "~4.1.3"
62
62
  },
@@ -78,6 +78,7 @@
78
78
  "dev": "cross-env NODE_ENV=development node ../../scripts/build/build.mjs --watch",
79
79
  "test": "node ../../scripts/testing/test.mjs",
80
80
  "lint": "node ../../scripts/lint.mjs",
81
+ "dts": "node ../../scripts/dts.mjs",
81
82
  "build": "cross-env NODE_ENV=production node ../../scripts/build/build.mjs"
82
83
  }
83
84
  }
@@ -1,94 +0,0 @@
1
- /// <reference path="../../../../shared/typings/react-desc.d.ts" />
2
- import React from 'react';
3
- import ModalHeader from './components/Header';
4
- import ModalFooter from './components/Footer';
5
- declare const DSModalSlide: {
6
- ({ isOpen, children, getContainer, centered, fullWidth, header, footer, fadeOut, fadeIn, overrideHeight, }: {
7
- isOpen?: boolean | undefined;
8
- children: any;
9
- getContainer: any;
10
- centered?: boolean | undefined;
11
- fullWidth?: boolean | undefined;
12
- header?: null | undefined;
13
- footer?: null | undefined;
14
- fadeOut?: number | undefined;
15
- fadeIn?: number | undefined;
16
- overrideHeight?: boolean | undefined;
17
- }): React.ReactPortal | null;
18
- propTypes: {
19
- /**
20
- * If the modal slide is centered or not
21
- */
22
- centered: {
23
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
24
- deprecated: import("react-desc").PropTypesDescValidator;
25
- };
26
- isRequired: import("react-desc").PropTypesDescValue;
27
- };
28
- /**
29
- * If the modal slide is visible or not
30
- */
31
- isOpen: {
32
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
33
- deprecated: import("react-desc").PropTypesDescValidator;
34
- };
35
- isRequired: import("react-desc").PropTypesDescValue;
36
- };
37
- /**
38
- * Main content of the modal
39
- */
40
- children: any;
41
- /**
42
- * If the modal slide takes the full width or not
43
- */
44
- fullWidth: {
45
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
46
- deprecated: import("react-desc").PropTypesDescValidator;
47
- };
48
- isRequired: import("react-desc").PropTypesDescValue;
49
- };
50
- /**
51
- * If the modal slide has a header, only available for full width option
52
- */
53
- header: {
54
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
55
- deprecated: import("react-desc").PropTypesDescValidator;
56
- };
57
- isRequired: import("react-desc").PropTypesDescValue;
58
- };
59
- /**
60
- * Ratio of fade out
61
- */
62
- fadeOut: {
63
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
64
- deprecated: import("react-desc").PropTypesDescValidator;
65
- };
66
- isRequired: import("react-desc").PropTypesDescValue;
67
- };
68
- /**
69
- * Ratio of fade in
70
- */
71
- fadeIn: {
72
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
73
- deprecated: import("react-desc").PropTypesDescValidator;
74
- };
75
- isRequired: import("react-desc").PropTypesDescValue;
76
- };
77
- /**
78
- * Override the panel height to scroll height of the container
79
- */
80
- overrideHeight: {
81
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
82
- deprecated: import("react-desc").PropTypesDescValidator;
83
- };
84
- isRequired: import("react-desc").PropTypesDescValue;
85
- };
86
- };
87
- };
88
- declare const DSModalSlideWithSchema: {
89
- (props?: unknown): JSX.Element;
90
- propTypes: unknown;
91
- toTypescript: () => import("react-desc").TypescriptSchema;
92
- };
93
- export { ModalHeader, ModalFooter, DSModalSlide, DSModalSlideWithSchema };
94
- export default DSModalSlide;
@@ -1,79 +0,0 @@
1
- /// <reference path="../../../../../shared/typings/react-desc.d.ts" />
2
- /// <reference types="react" />
3
- declare const ModalFooter: {
4
- ({ confirmLabel, rejectLabel, onConfirm, onReject, confirmProps, rejectProps, }: {
5
- confirmLabel?: string | undefined;
6
- rejectLabel?: string | undefined;
7
- onConfirm: any;
8
- onReject: any;
9
- confirmProps?: {
10
- disabled: boolean;
11
- } | undefined;
12
- rejectProps?: {
13
- disabled: boolean;
14
- } | undefined;
15
- }): JSX.Element;
16
- propTypes: {
17
- /**
18
- * Confirm Label
19
- */
20
- confirmLabel: {
21
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
22
- deprecated: import("react-desc").PropTypesDescValidator;
23
- };
24
- isRequired: import("react-desc").PropTypesDescValue;
25
- };
26
- /**
27
- * Reject Label
28
- */
29
- rejectLabel: {
30
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
31
- deprecated: import("react-desc").PropTypesDescValidator;
32
- };
33
- isRequired: import("react-desc").PropTypesDescValue;
34
- };
35
- /**
36
- * Callback
37
- */
38
- onConfirm: {
39
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
40
- deprecated: import("react-desc").PropTypesDescValidator;
41
- };
42
- isRequired: import("react-desc").PropTypesDescValue;
43
- };
44
- /**
45
- * Callback
46
- */
47
- onReject: {
48
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
49
- deprecated: import("react-desc").PropTypesDescValidator;
50
- };
51
- isRequired: import("react-desc").PropTypesDescValue;
52
- };
53
- /**
54
- * Extra DSButton props for confirm btn.
55
- */
56
- confirmProps: {
57
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
58
- deprecated: import("react-desc").PropTypesDescValidator;
59
- };
60
- isRequired: import("react-desc").PropTypesDescValue;
61
- };
62
- /**
63
- * Extra DSButton props for reject btn.
64
- */
65
- rejectProps: {
66
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
67
- deprecated: import("react-desc").PropTypesDescValidator;
68
- };
69
- isRequired: import("react-desc").PropTypesDescValue;
70
- };
71
- };
72
- };
73
- declare const DSModalSlideFooterWithSchema: {
74
- (props?: unknown): JSX.Element;
75
- propTypes: unknown;
76
- toTypescript: () => import("react-desc").TypescriptSchema;
77
- };
78
- export { DSModalSlideFooterWithSchema };
79
- export default ModalFooter;
@@ -1,39 +0,0 @@
1
- /// <reference path="../../../../../shared/typings/react-desc.d.ts" />
2
- /// <reference types="react" />
3
- declare const ModalHeader: {
4
- ({ title: headerTitle, onClose, toolbar }: {
5
- title?: string | undefined;
6
- onClose?: (() => null) | undefined;
7
- toolbar?: null | undefined;
8
- }): JSX.Element;
9
- propTypes: {
10
- /** on modal close callback */
11
- onClose: {
12
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
13
- deprecated: import("react-desc").PropTypesDescValidator;
14
- };
15
- isRequired: import("react-desc").PropTypesDescValue;
16
- };
17
- /** modal toolbar component */
18
- toolbar: {
19
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
20
- deprecated: import("react-desc").PropTypesDescValidator;
21
- };
22
- isRequired: import("react-desc").PropTypesDescValue;
23
- };
24
- /** modal title */
25
- title: {
26
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
27
- deprecated: import("react-desc").PropTypesDescValidator;
28
- };
29
- isRequired: import("react-desc").PropTypesDescValue;
30
- };
31
- };
32
- };
33
- declare const DSModalSlideHeaderWithSchema: {
34
- (props?: unknown): JSX.Element;
35
- propTypes: unknown;
36
- toTypescript: () => import("react-desc").TypescriptSchema;
37
- };
38
- export { DSModalSlideHeaderWithSchema };
39
- export default ModalHeader;
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const Wrapper: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
3
- export declare const Overlay: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
4
- export declare const Content: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
5
- export declare const Title: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
6
- export declare const BreadcrumTitle: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
7
- export declare const HeaderLeftSide: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
8
- export declare const ActualContent: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
9
- export declare const Header: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
10
- export declare const Footer: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
11
- export declare const FooterWrapper: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
@@ -1,4 +0,0 @@
1
- export * from './DSModalSlide';
2
- export { default } from './DSModalSlide';
3
- export { DSModalSlideHeaderWithSchema } from './components/Header';
4
- export { DSModalSlideFooterWithSchema } from './components/Footer';
@@ -1 +0,0 @@
1
- export {};