@elliemae/ds-card 3.3.0-next.3 → 3.3.0-next.6

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.
@@ -1,39 +1,10 @@
1
1
  "use strict";
2
2
  var __create = Object.create;
3
3
  var __defProp = Object.defineProperty;
4
- var __defProps = Object.defineProperties;
5
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
7
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
8
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
9
6
  var __getProtoOf = Object.getPrototypeOf;
10
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
11
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
12
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13
- var __spreadValues = (a, b) => {
14
- for (var prop in b || (b = {}))
15
- if (__hasOwnProp.call(b, prop))
16
- __defNormalProp(a, prop, b[prop]);
17
- if (__getOwnPropSymbols)
18
- for (var prop of __getOwnPropSymbols(b)) {
19
- if (__propIsEnum.call(b, prop))
20
- __defNormalProp(a, prop, b[prop]);
21
- }
22
- return a;
23
- };
24
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
25
- var __objRest = (source, exclude) => {
26
- var target = {};
27
- for (var prop in source)
28
- if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
29
- target[prop] = source[prop];
30
- if (source != null && __getOwnPropSymbols)
31
- for (var prop of __getOwnPropSymbols(source)) {
32
- if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
33
- target[prop] = source[prop];
34
- }
35
- return target;
36
- };
37
8
  var __export = (target, all) => {
38
9
  for (var name in all)
39
10
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -61,23 +32,20 @@ var import_ds_utilities = require("@elliemae/ds-utilities");
61
32
  var import_ds_classnames = require("@elliemae/ds-classnames");
62
33
  var import_DSCardBody = __toESM(require("./DSCardBody"));
63
34
  var import_DSCardHeader = __toESM(require("./DSCardHeader"));
64
- const DSCard = (_a) => {
65
- var _b = _a, {
66
- innerRef = void 0,
67
- children = null,
68
- containerProps = {}
69
- } = _b, otherProps = __objRest(_b, [
70
- "innerRef",
71
- "children",
72
- "containerProps"
73
- ]);
35
+ const DSCard = ({
36
+ innerRef = void 0,
37
+ children = null,
38
+ containerProps = {},
39
+ ...otherProps
40
+ }) => {
74
41
  const { cssClassName } = (0, import_ds_classnames.convertPropToCssClassName)("card");
75
- return /* @__PURE__ */ import_react.default.createElement("div", __spreadValues(__spreadProps(__spreadValues({
76
- "data-testid": "card"
77
- }, containerProps), {
42
+ return /* @__PURE__ */ import_react.default.createElement("div", {
43
+ "data-testid": "card",
44
+ ...containerProps,
78
45
  ref: innerRef,
79
- className: cssClassName
80
- }), otherProps), children);
46
+ className: cssClassName,
47
+ ...otherProps
48
+ }, children);
81
49
  };
82
50
  const cardProps = {
83
51
  containerProps: import_ds_utilities.PropTypes.object.description("inject props to component wrapper"),
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/DSCard.tsx", "../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["import React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-utilities';\nimport { convertPropToCssClassName } from '@elliemae/ds-classnames';\nimport DSCardBody from './DSCardBody';\nimport DSCardHeader from './DSCardHeader';\n\nconst DSCard = ({\n innerRef = undefined,\n children = null,\n containerProps = {},\n ...otherProps\n}) => {\n const { cssClassName } = convertPropToCssClassName('card');\n\n return (\n <div\n data-testid=\"card\"\n {...containerProps}\n ref={innerRef}\n className={cssClassName}\n {...otherProps}\n >\n {children}\n </div>\n );\n};\n\nconst cardProps = {\n /** inject props to component wrapper */\n containerProps: PropTypes.object.description(\n 'inject props to component wrapper',\n ),\n /**\n * Get reference for the button\n */\n innerRef: PropTypes.string.description('Get reference for the button'),\n /**\n * DSCardBody and DSCardHeader\n */\n children: PropTypes.arrayOf(\n PropTypes.shape({\n type: PropTypes.oneOf([DSCardHeader, DSCardBody]),\n }),\n ).description('DSCardBody and DSCardHeader'),\n};\n\nDSCard.propTypes = cardProps;\nDSCard.displayName = 'DSCard';\nconst DSCardWithSchema = describe(DSCard);\nDSCardWithSchema.propTypes = cardProps;\n\nexport { DSCard, DSCardWithSchema };\nexport default DSCard;\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAkB;AAClB,0BAAoC;AACpC,2BAA0C;AAC1C,wBAAuB;AACvB,0BAAyB;AAEzB,MAAM,SAAS,CAAC,OAKV;AALU,eACd;AAAA,eAAW;AAAA,IACX,WAAW;AAAA,IACX,iBAAiB,CAAC;AAAA,MAHJ,IAIX,uBAJW,IAIX;AAAA,IAHH;AAAA,IACA;AAAA,IACA;AAAA;AAGA,QAAM,EAAE,iBAAiB,oDAA0B,MAAM;AAEzD,SACE,mDAAC;AAAA,IACC,eAAY;AAAA,KACR,iBAFL;AAAA,IAGC,KAAK;AAAA,IACL,WAAW;AAAA,MACP,aAEH,QACH;AAEJ;AAEA,MAAM,YAAY;AAAA,EAEhB,gBAAgB,8BAAU,OAAO,YAC/B,mCACF;AAAA,EAIA,UAAU,8BAAU,OAAO,YAAY,8BAA8B;AAAA,EAIrE,UAAU,8BAAU,QAClB,8BAAU,MAAM;AAAA,IACd,MAAM,8BAAU,MAAM,CAAC,6BAAc,yBAAU,CAAC;AAAA,EAClD,CAAC,CACH,EAAE,YAAY,6BAA6B;AAC7C;AAEA,OAAO,YAAY;AACnB,OAAO,cAAc;AACrB,MAAM,mBAAmB,kCAAS,MAAM;AACxC,iBAAiB,YAAY;AAG7B,IAAO,iBAAQ;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAkB;AAClB,0BAAoC;AACpC,2BAA0C;AAC1C,wBAAuB;AACvB,0BAAyB;AAEzB,MAAM,SAAS,CAAC;AAAA,EACd,WAAW;AAAA,EACX,WAAW;AAAA,EACX,iBAAiB,CAAC;AAAA,KACf;AAAA,MACC;AACJ,QAAM,EAAE,iBAAiB,oDAA0B,MAAM;AAEzD,SACE,mDAAC;AAAA,IACC,eAAY;AAAA,IACX,GAAG;AAAA,IACJ,KAAK;AAAA,IACL,WAAW;AAAA,IACV,GAAG;AAAA,KAEH,QACH;AAEJ;AAEA,MAAM,YAAY;AAAA,EAEhB,gBAAgB,8BAAU,OAAO,YAC/B,mCACF;AAAA,EAIA,UAAU,8BAAU,OAAO,YAAY,8BAA8B;AAAA,EAIrE,UAAU,8BAAU,QAClB,8BAAU,MAAM;AAAA,IACd,MAAM,8BAAU,MAAM,CAAC,6BAAc,yBAAU,CAAC;AAAA,EAClD,CAAC,CACH,EAAE,YAAY,6BAA6B;AAC7C;AAEA,OAAO,YAAY;AACnB,OAAO,cAAc;AACrB,MAAM,mBAAmB,kCAAS,MAAM;AACxC,iBAAiB,YAAY;AAG7B,IAAO,iBAAQ;",
6
6
  "names": []
7
7
  }
@@ -1,58 +1,24 @@
1
1
  "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __defProps = Object.defineProperties;
4
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
5
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
8
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
9
- var __spreadValues = (a, b) => {
10
- for (var prop in b || (b = {}))
11
- if (__hasOwnProp.call(b, prop))
12
- __defNormalProp(a, prop, b[prop]);
13
- if (__getOwnPropSymbols)
14
- for (var prop of __getOwnPropSymbols(b)) {
15
- if (__propIsEnum.call(b, prop))
16
- __defNormalProp(a, prop, b[prop]);
17
- }
18
- return a;
19
- };
20
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
21
- var __objRest = (source, exclude) => {
22
- var target = {};
23
- for (var prop in source)
24
- if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
25
- target[prop] = source[prop];
26
- if (source != null && __getOwnPropSymbols)
27
- for (var prop of __getOwnPropSymbols(source)) {
28
- if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
29
- target[prop] = source[prop];
30
- }
31
- return target;
32
- };
33
2
  import * as React from "react";
34
3
  import React2 from "react";
35
4
  import { PropTypes, describe } from "@elliemae/ds-utilities";
36
5
  import { convertPropToCssClassName } from "@elliemae/ds-classnames";
37
6
  import DSCardBody from "./DSCardBody";
38
7
  import DSCardHeader from "./DSCardHeader";
39
- const DSCard = (_a) => {
40
- var _b = _a, {
41
- innerRef = void 0,
42
- children = null,
43
- containerProps = {}
44
- } = _b, otherProps = __objRest(_b, [
45
- "innerRef",
46
- "children",
47
- "containerProps"
48
- ]);
8
+ const DSCard = ({
9
+ innerRef = void 0,
10
+ children = null,
11
+ containerProps = {},
12
+ ...otherProps
13
+ }) => {
49
14
  const { cssClassName } = convertPropToCssClassName("card");
50
- return /* @__PURE__ */ React2.createElement("div", __spreadValues(__spreadProps(__spreadValues({
51
- "data-testid": "card"
52
- }, containerProps), {
15
+ return /* @__PURE__ */ React2.createElement("div", {
16
+ "data-testid": "card",
17
+ ...containerProps,
53
18
  ref: innerRef,
54
- className: cssClassName
55
- }), otherProps), children);
19
+ className: cssClassName,
20
+ ...otherProps
21
+ }, children);
56
22
  };
57
23
  const cardProps = {
58
24
  containerProps: PropTypes.object.description("inject props to component wrapper"),
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/DSCard.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-utilities';\nimport { convertPropToCssClassName } from '@elliemae/ds-classnames';\nimport DSCardBody from './DSCardBody';\nimport DSCardHeader from './DSCardHeader';\n\nconst DSCard = ({\n innerRef = undefined,\n children = null,\n containerProps = {},\n ...otherProps\n}) => {\n const { cssClassName } = convertPropToCssClassName('card');\n\n return (\n <div\n data-testid=\"card\"\n {...containerProps}\n ref={innerRef}\n className={cssClassName}\n {...otherProps}\n >\n {children}\n </div>\n );\n};\n\nconst cardProps = {\n /** inject props to component wrapper */\n containerProps: PropTypes.object.description(\n 'inject props to component wrapper',\n ),\n /**\n * Get reference for the button\n */\n innerRef: PropTypes.string.description('Get reference for the button'),\n /**\n * DSCardBody and DSCardHeader\n */\n children: PropTypes.arrayOf(\n PropTypes.shape({\n type: PropTypes.oneOf([DSCardHeader, DSCardBody]),\n }),\n ).description('DSCardBody and DSCardHeader'),\n};\n\nDSCard.propTypes = cardProps;\nDSCard.displayName = 'DSCard';\nconst DSCardWithSchema = describe(DSCard);\nDSCardWithSchema.propTypes = cardProps;\n\nexport { DSCard, DSCardWithSchema };\nexport default DSCard;\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;ACAA;AACA;AACA;AACA;AACA;AAEA,MAAM,SAAS,CAAC,OAKV;AALU,eACd;AAAA,eAAW;AAAA,IACX,WAAW;AAAA,IACX,iBAAiB,CAAC;AAAA,MAHJ,IAIX,uBAJW,IAIX;AAAA,IAHH;AAAA,IACA;AAAA,IACA;AAAA;AAGA,QAAM,EAAE,iBAAiB,0BAA0B,MAAM;AAEzD,SACE,qCAAC;AAAA,IACC,eAAY;AAAA,KACR,iBAFL;AAAA,IAGC,KAAK;AAAA,IACL,WAAW;AAAA,MACP,aAEH,QACH;AAEJ;AAEA,MAAM,YAAY;AAAA,EAEhB,gBAAgB,UAAU,OAAO,YAC/B,mCACF;AAAA,EAIA,UAAU,UAAU,OAAO,YAAY,8BAA8B;AAAA,EAIrE,UAAU,UAAU,QAClB,UAAU,MAAM;AAAA,IACd,MAAM,UAAU,MAAM,CAAC,cAAc,UAAU,CAAC;AAAA,EAClD,CAAC,CACH,EAAE,YAAY,6BAA6B;AAC7C;AAEA,OAAO,YAAY;AACnB,OAAO,cAAc;AACrB,MAAM,mBAAmB,SAAS,MAAM;AACxC,iBAAiB,YAAY;AAG7B,IAAO,iBAAQ;",
5
+ "mappings": ";AAAA;ACAA;AACA;AACA;AACA;AACA;AAEA,MAAM,SAAS,CAAC;AAAA,EACd,WAAW;AAAA,EACX,WAAW;AAAA,EACX,iBAAiB,CAAC;AAAA,KACf;AAAA,MACC;AACJ,QAAM,EAAE,iBAAiB,0BAA0B,MAAM;AAEzD,SACE,qCAAC;AAAA,IACC,eAAY;AAAA,IACX,GAAG;AAAA,IACJ,KAAK;AAAA,IACL,WAAW;AAAA,IACV,GAAG;AAAA,KAEH,QACH;AAEJ;AAEA,MAAM,YAAY;AAAA,EAEhB,gBAAgB,UAAU,OAAO,YAC/B,mCACF;AAAA,EAIA,UAAU,UAAU,OAAO,YAAY,8BAA8B;AAAA,EAIrE,UAAU,UAAU,QAClB,UAAU,MAAM;AAAA,IACd,MAAM,UAAU,MAAM,CAAC,cAAc,UAAU,CAAC;AAAA,EAClD,CAAC,CACH,EAAE,YAAY,6BAA6B;AAC7C;AAEA,OAAO,YAAY;AACnB,OAAO,cAAc;AACrB,MAAM,mBAAmB,SAAS,MAAM;AACxC,iBAAiB,YAAY;AAG7B,IAAO,iBAAQ;",
6
6
  "names": []
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-card",
3
- "version": "3.3.0-next.3",
3
+ "version": "3.3.0-next.6",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Card",
6
6
  "files": [
@@ -71,16 +71,16 @@
71
71
  "indent": 4
72
72
  },
73
73
  "dependencies": {
74
- "@elliemae/ds-button": "3.3.0-next.3",
75
- "@elliemae/ds-classnames": "3.3.0-next.3",
76
- "@elliemae/ds-form": "3.3.0-next.3",
77
- "@elliemae/ds-grid": "3.3.0-next.3",
78
- "@elliemae/ds-header": "3.3.0-next.3",
79
- "@elliemae/ds-icons": "3.3.0-next.3",
80
- "@elliemae/ds-separator": "3.3.0-next.3",
81
- "@elliemae/ds-system": "3.3.0-next.3",
82
- "@elliemae/ds-truncated-tooltip-text": "3.3.0-next.3",
83
- "@elliemae/ds-utilities": "3.3.0-next.3"
74
+ "@elliemae/ds-button": "3.3.0-next.6",
75
+ "@elliemae/ds-classnames": "3.3.0-next.6",
76
+ "@elliemae/ds-form": "3.3.0-next.6",
77
+ "@elliemae/ds-grid": "3.3.0-next.6",
78
+ "@elliemae/ds-header": "3.3.0-next.6",
79
+ "@elliemae/ds-icons": "3.3.0-next.6",
80
+ "@elliemae/ds-separator": "3.3.0-next.6",
81
+ "@elliemae/ds-system": "3.3.0-next.6",
82
+ "@elliemae/ds-truncated-tooltip-text": "3.3.0-next.6",
83
+ "@elliemae/ds-utilities": "3.3.0-next.6"
84
84
  },
85
85
  "devDependencies": {
86
86
  "@testing-library/jest-dom": "~5.16.4",