@elliemae/ds-toast 3.1.4 → 3.1.5-rc.10

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.
@@ -30,9 +30,8 @@ var React = __toESM(require("react"));
30
30
  var import_react = __toESM(require("react"));
31
31
  var import_ds_utilities = require("@elliemae/ds-utilities");
32
32
  var import_ds_system = require("@elliemae/ds-system");
33
- var import_ds_system2 = require("@elliemae/ds-system");
34
33
  const Link = import_ds_system.styled.span`
35
- ${(0, import_ds_system2.color)("brand", "600")}
34
+ color: brand-600;
36
35
  `;
37
36
  const DSToastAction = ({ children, onClick, onKeyDown }) => /* @__PURE__ */ import_react.default.createElement("div", {
38
37
  onKeyDown,
@@ -41,10 +40,7 @@ const DSToastAction = ({ children, onClick, onKeyDown }) => /* @__PURE__ */ impo
41
40
  }, children);
42
41
  const DSToastActionLink = ({ children }) => /* @__PURE__ */ import_react.default.createElement(Link, null, children);
43
42
  const actionprops = {
44
- children: import_ds_utilities.PropTypes.oneOfType([
45
- import_ds_utilities.PropTypes.string,
46
- import_ds_utilities.PropTypes.element
47
- ]).description("DSToastActionLink component or text string"),
43
+ children: import_ds_utilities.PropTypes.oneOfType([import_ds_utilities.PropTypes.string, import_ds_utilities.PropTypes.element]).description("DSToastActionLink component or text string"),
48
44
  onClick: import_ds_utilities.PropTypes.func.description("click handler"),
49
45
  onKeyDown: import_ds_utilities.PropTypes.func.description("key down handler")
50
46
  };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/ToastAction.tsx", "../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-utilities';\nimport { styled } from '@elliemae/ds-system';\nimport { color } from '@elliemae/ds-system';\n\nconst Link = styled.span`\n ${color('brand', '600')}\n`;\n\nconst DSToastAction = ({ children, onClick, onKeyDown }) => (\n // eslint-disable-next-line jsx-a11y/no-static-element-interactions\n <div\n onKeyDown={onKeyDown}\n onClick={onClick}\n role={onClick ? 'button' : 'textbox'}\n >\n {children}\n </div>\n);\n\n// eslint-disable-next-line jsx-a11y/anchor-is-valid\nconst DSToastActionLink = ({ children }) => <Link>{children}</Link>;\n\nconst actionprops = {\n /** DSToastActionLink component or text string */\n children: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.element,\n ]).description('DSToastActionLink component or text string'),\n /** click handler */\n onClick: PropTypes.func.description('click handler'),\n /** key down handler */\n onKeyDown: PropTypes.func.description('key down handler'),\n};\n\nconst linkprops = {\n /** link text */\n children: PropTypes.string.isRequired.description('link text'),\n};\n\nDSToastAction.propTypes = actionprops;\nDSToastActionLink.propTypes = linkprops;\nDSToastAction.displayName = 'DSToastAction';\nDSToastActionLink.displayName = 'DSToastActionLink';\nconst DSToastActionWithSchema = describe(DSToastAction);\nconst DSToastActionLinkWithSchema = describe(DSToastActionLink);\nDSToastActionLinkWithSchema.propTypes = linkprops;\nDSToastActionWithSchema.propTypes = actionprops;\n\nexport {\n DSToastAction,\n DSToastActionLink,\n DSToastActionWithSchema,\n DSToastActionLinkWithSchema,\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAkB;AAClB,0BAAoC;AACpC,uBAAuB;AACvB,wBAAsB;AAEtB,MAAM,OAAO,wBAAO;AAAA,IAChB,6BAAM,SAAS,KAAK;AAAA;AAGxB,MAAM,gBAAgB,CAAC,EAAE,UAAU,SAAS,gBAE1C,mDAAC;AAAA,EACC;AAAA,EACA;AAAA,EACA,MAAM,UAAU,WAAW;AAAA,GAE1B,QACH;AAIF,MAAM,oBAAoB,CAAC,EAAE,eAAe,mDAAC,YAAM,QAAS;AAE5D,MAAM,cAAc;AAAA,EAElB,UAAU,8BAAU,UAAU;AAAA,IAC5B,8BAAU;AAAA,IACV,8BAAU;AAAA,EACZ,CAAC,EAAE,YAAY,4CAA4C;AAAA,EAE3D,SAAS,8BAAU,KAAK,YAAY,eAAe;AAAA,EAEnD,WAAW,8BAAU,KAAK,YAAY,kBAAkB;AAC1D;AAEA,MAAM,YAAY;AAAA,EAEhB,UAAU,8BAAU,OAAO,WAAW,YAAY,WAAW;AAC/D;AAEA,cAAc,YAAY;AAC1B,kBAAkB,YAAY;AAC9B,cAAc,cAAc;AAC5B,kBAAkB,cAAc;AAChC,MAAM,0BAA0B,kCAAS,aAAa;AACtD,MAAM,8BAA8B,kCAAS,iBAAiB;AAC9D,4BAA4B,YAAY;AACxC,wBAAwB,YAAY;",
4
+ "sourcesContent": ["import React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-utilities';\nimport { styled } from '@elliemae/ds-system';\n\nconst Link = styled.span`\n color: brand-600;\n`;\n\ninterface DSToastActionProps {\n children: React.ReactNode;\n onClick?: React.MouseEventHandler;\n onKeyDown?: React.KeyboardEventHandler;\n}\n\nconst DSToastAction: React.ComponentType<DSToastActionProps> = ({ children, onClick, onKeyDown }) => (\n // eslint-disable-next-line jsx-a11y/no-static-element-interactions\n <div onKeyDown={onKeyDown} onClick={onClick} role={onClick ? 'button' : 'textbox'}>\n {children}\n </div>\n);\n\nconst DSToastActionLink: React.ComponentType<React.PropsWithChildren<Record<string, unknown>>> = ({ children }) => (\n // eslint-disable-next-line jsx-a11y/anchor-is-valid\n <Link>{children}</Link>\n);\n\nconst actionprops = {\n /** DSToastActionLink component or text string */\n children: PropTypes.oneOfType([PropTypes.string, PropTypes.element]).description(\n 'DSToastActionLink component or text string',\n ),\n /** click handler */\n onClick: PropTypes.func.description('click handler'),\n /** key down handler */\n onKeyDown: PropTypes.func.description('key down handler'),\n} as React.WeakValidationMap<unknown>;\n\nconst linkprops = {\n /** link text */\n children: PropTypes.string.isRequired.description('link text'),\n} as React.WeakValidationMap<unknown>;\n\nDSToastAction.propTypes = actionprops;\nDSToastActionLink.propTypes = linkprops;\nDSToastAction.displayName = 'DSToastAction';\nDSToastActionLink.displayName = 'DSToastActionLink';\nconst DSToastActionWithSchema = describe(DSToastAction);\nconst DSToastActionLinkWithSchema = describe(DSToastActionLink);\nDSToastActionLinkWithSchema.propTypes = linkprops;\nDSToastActionWithSchema.propTypes = actionprops;\n\nexport { DSToastAction, DSToastActionLink, DSToastActionWithSchema, DSToastActionLinkWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAkB;AAClB,0BAAoC;AACpC,uBAAuB;AAEvB,MAAM,OAAO,wBAAO;AAAA;AAAA;AAUpB,MAAM,gBAAyD,CAAC,EAAE,UAAU,SAAS,gBAEnF,mDAAC;AAAA,EAAI;AAAA,EAAsB;AAAA,EAAkB,MAAM,UAAU,WAAW;AAAA,GACrE,QACH;AAGF,MAAM,oBAA2F,CAAC,EAAE,eAElG,mDAAC,YAAM,QAAS;AAGlB,MAAM,cAAc;AAAA,EAElB,UAAU,8BAAU,UAAU,CAAC,8BAAU,QAAQ,8BAAU,OAAO,CAAC,EAAE,YACnE,4CACF;AAAA,EAEA,SAAS,8BAAU,KAAK,YAAY,eAAe;AAAA,EAEnD,WAAW,8BAAU,KAAK,YAAY,kBAAkB;AAC1D;AAEA,MAAM,YAAY;AAAA,EAEhB,UAAU,8BAAU,OAAO,WAAW,YAAY,WAAW;AAC/D;AAEA,cAAc,YAAY;AAC1B,kBAAkB,YAAY;AAC9B,cAAc,cAAc;AAC5B,kBAAkB,cAAc;AAChC,MAAM,0BAA0B,kCAAS,aAAa;AACtD,MAAM,8BAA8B,kCAAS,iBAAiB;AAC9D,4BAA4B,YAAY;AACxC,wBAAwB,YAAY;",
6
6
  "names": []
7
7
  }
@@ -2,9 +2,8 @@ import * as React from "react";
2
2
  import React2 from "react";
3
3
  import { PropTypes, describe } from "@elliemae/ds-utilities";
4
4
  import { styled } from "@elliemae/ds-system";
5
- import { color } from "@elliemae/ds-system";
6
5
  const Link = styled.span`
7
- ${color("brand", "600")}
6
+ color: brand-600;
8
7
  `;
9
8
  const DSToastAction = ({ children, onClick, onKeyDown }) => /* @__PURE__ */ React2.createElement("div", {
10
9
  onKeyDown,
@@ -13,10 +12,7 @@ const DSToastAction = ({ children, onClick, onKeyDown }) => /* @__PURE__ */ Reac
13
12
  }, children);
14
13
  const DSToastActionLink = ({ children }) => /* @__PURE__ */ React2.createElement(Link, null, children);
15
14
  const actionprops = {
16
- children: PropTypes.oneOfType([
17
- PropTypes.string,
18
- PropTypes.element
19
- ]).description("DSToastActionLink component or text string"),
15
+ children: PropTypes.oneOfType([PropTypes.string, PropTypes.element]).description("DSToastActionLink component or text string"),
20
16
  onClick: PropTypes.func.description("click handler"),
21
17
  onKeyDown: PropTypes.func.description("key down handler")
22
18
  };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/ToastAction.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-utilities';\nimport { styled } from '@elliemae/ds-system';\nimport { color } from '@elliemae/ds-system';\n\nconst Link = styled.span`\n ${color('brand', '600')}\n`;\n\nconst DSToastAction = ({ children, onClick, onKeyDown }) => (\n // eslint-disable-next-line jsx-a11y/no-static-element-interactions\n <div\n onKeyDown={onKeyDown}\n onClick={onClick}\n role={onClick ? 'button' : 'textbox'}\n >\n {children}\n </div>\n);\n\n// eslint-disable-next-line jsx-a11y/anchor-is-valid\nconst DSToastActionLink = ({ children }) => <Link>{children}</Link>;\n\nconst actionprops = {\n /** DSToastActionLink component or text string */\n children: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.element,\n ]).description('DSToastActionLink component or text string'),\n /** click handler */\n onClick: PropTypes.func.description('click handler'),\n /** key down handler */\n onKeyDown: PropTypes.func.description('key down handler'),\n};\n\nconst linkprops = {\n /** link text */\n children: PropTypes.string.isRequired.description('link text'),\n};\n\nDSToastAction.propTypes = actionprops;\nDSToastActionLink.propTypes = linkprops;\nDSToastAction.displayName = 'DSToastAction';\nDSToastActionLink.displayName = 'DSToastActionLink';\nconst DSToastActionWithSchema = describe(DSToastAction);\nconst DSToastActionLinkWithSchema = describe(DSToastActionLink);\nDSToastActionLinkWithSchema.propTypes = linkprops;\nDSToastActionWithSchema.propTypes = actionprops;\n\nexport {\n DSToastAction,\n DSToastActionLink,\n DSToastActionWithSchema,\n DSToastActionLinkWithSchema,\n};\n"],
5
- "mappings": "AAAA;ACAA;AACA;AACA;AACA;AAEA,MAAM,OAAO,OAAO;AAAA,IAChB,MAAM,SAAS,KAAK;AAAA;AAGxB,MAAM,gBAAgB,CAAC,EAAE,UAAU,SAAS,gBAE1C,qCAAC;AAAA,EACC;AAAA,EACA;AAAA,EACA,MAAM,UAAU,WAAW;AAAA,GAE1B,QACH;AAIF,MAAM,oBAAoB,CAAC,EAAE,eAAe,qCAAC,YAAM,QAAS;AAE5D,MAAM,cAAc;AAAA,EAElB,UAAU,UAAU,UAAU;AAAA,IAC5B,UAAU;AAAA,IACV,UAAU;AAAA,EACZ,CAAC,EAAE,YAAY,4CAA4C;AAAA,EAE3D,SAAS,UAAU,KAAK,YAAY,eAAe;AAAA,EAEnD,WAAW,UAAU,KAAK,YAAY,kBAAkB;AAC1D;AAEA,MAAM,YAAY;AAAA,EAEhB,UAAU,UAAU,OAAO,WAAW,YAAY,WAAW;AAC/D;AAEA,cAAc,YAAY;AAC1B,kBAAkB,YAAY;AAC9B,cAAc,cAAc;AAC5B,kBAAkB,cAAc;AAChC,MAAM,0BAA0B,SAAS,aAAa;AACtD,MAAM,8BAA8B,SAAS,iBAAiB;AAC9D,4BAA4B,YAAY;AACxC,wBAAwB,YAAY;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-utilities';\nimport { styled } from '@elliemae/ds-system';\n\nconst Link = styled.span`\n color: brand-600;\n`;\n\ninterface DSToastActionProps {\n children: React.ReactNode;\n onClick?: React.MouseEventHandler;\n onKeyDown?: React.KeyboardEventHandler;\n}\n\nconst DSToastAction: React.ComponentType<DSToastActionProps> = ({ children, onClick, onKeyDown }) => (\n // eslint-disable-next-line jsx-a11y/no-static-element-interactions\n <div onKeyDown={onKeyDown} onClick={onClick} role={onClick ? 'button' : 'textbox'}>\n {children}\n </div>\n);\n\nconst DSToastActionLink: React.ComponentType<React.PropsWithChildren<Record<string, unknown>>> = ({ children }) => (\n // eslint-disable-next-line jsx-a11y/anchor-is-valid\n <Link>{children}</Link>\n);\n\nconst actionprops = {\n /** DSToastActionLink component or text string */\n children: PropTypes.oneOfType([PropTypes.string, PropTypes.element]).description(\n 'DSToastActionLink component or text string',\n ),\n /** click handler */\n onClick: PropTypes.func.description('click handler'),\n /** key down handler */\n onKeyDown: PropTypes.func.description('key down handler'),\n} as React.WeakValidationMap<unknown>;\n\nconst linkprops = {\n /** link text */\n children: PropTypes.string.isRequired.description('link text'),\n} as React.WeakValidationMap<unknown>;\n\nDSToastAction.propTypes = actionprops;\nDSToastActionLink.propTypes = linkprops;\nDSToastAction.displayName = 'DSToastAction';\nDSToastActionLink.displayName = 'DSToastActionLink';\nconst DSToastActionWithSchema = describe(DSToastAction);\nconst DSToastActionLinkWithSchema = describe(DSToastActionLink);\nDSToastActionLinkWithSchema.propTypes = linkprops;\nDSToastActionWithSchema.propTypes = actionprops;\n\nexport { DSToastAction, DSToastActionLink, DSToastActionWithSchema, DSToastActionLinkWithSchema };\n"],
5
+ "mappings": "AAAA;ACAA;AACA;AACA;AAEA,MAAM,OAAO,OAAO;AAAA;AAAA;AAUpB,MAAM,gBAAyD,CAAC,EAAE,UAAU,SAAS,gBAEnF,qCAAC;AAAA,EAAI;AAAA,EAAsB;AAAA,EAAkB,MAAM,UAAU,WAAW;AAAA,GACrE,QACH;AAGF,MAAM,oBAA2F,CAAC,EAAE,eAElG,qCAAC,YAAM,QAAS;AAGlB,MAAM,cAAc;AAAA,EAElB,UAAU,UAAU,UAAU,CAAC,UAAU,QAAQ,UAAU,OAAO,CAAC,EAAE,YACnE,4CACF;AAAA,EAEA,SAAS,UAAU,KAAK,YAAY,eAAe;AAAA,EAEnD,WAAW,UAAU,KAAK,YAAY,kBAAkB;AAC1D;AAEA,MAAM,YAAY;AAAA,EAEhB,UAAU,UAAU,OAAO,WAAW,YAAY,WAAW;AAC/D;AAEA,cAAc,YAAY;AAC1B,kBAAkB,YAAY;AAC9B,cAAc,cAAc;AAC5B,kBAAkB,cAAc;AAChC,MAAM,0BAA0B,SAAS,aAAa;AACtD,MAAM,8BAA8B,SAAS,iBAAiB;AAC9D,4BAA4B,YAAY;AACxC,wBAAwB,YAAY;",
6
6
  "names": []
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-toast",
3
- "version": "3.1.4",
3
+ "version": "3.1.5-rc.10",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Toast",
6
6
  "files": [
@@ -59,11 +59,11 @@
59
59
  "indent": 4
60
60
  },
61
61
  "dependencies": {
62
- "@elliemae/ds-button": "3.1.4",
63
- "@elliemae/ds-classnames": "3.1.4",
64
- "@elliemae/ds-icons": "3.1.4",
65
- "@elliemae/ds-system": "3.1.4",
66
- "@elliemae/ds-utilities": "3.1.4",
62
+ "@elliemae/ds-button": "3.1.5-rc.10",
63
+ "@elliemae/ds-classnames": "3.1.5-rc.10",
64
+ "@elliemae/ds-icons": "3.1.5-rc.10",
65
+ "@elliemae/ds-system": "3.1.5-rc.10",
66
+ "@elliemae/ds-utilities": "3.1.5-rc.10",
67
67
  "prop-types": "~15.8.1",
68
68
  "react-toastify": "~6.2.0"
69
69
  },