@elliemae/ds-props-helpers 3.53.0-next.3 → 3.53.0-next.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-props-helpers",
3
- "version": "3.53.0-next.3",
3
+ "version": "3.53.0-next.4",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Props Helpers",
6
6
  "files": [
@@ -35,14 +35,14 @@
35
35
  "dependencies": {
36
36
  "fast-deep-equal": "~3.1.3",
37
37
  "prop-types": "~15.8.1",
38
- "@elliemae/ds-system": "3.53.0-next.3",
39
- "@elliemae/ds-typescript-helpers": "3.53.0-next.3"
38
+ "@elliemae/ds-system": "3.53.0-next.4",
39
+ "@elliemae/ds-typescript-helpers": "3.53.0-next.4"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@elliemae/pui-cli": "9.0.0-next.63",
43
43
  "jest": "~29.7.0",
44
44
  "jest-cli": "~29.7.0",
45
- "@elliemae/ds-monorepo-devops": "3.53.0-next.3"
45
+ "@elliemae/ds-monorepo-devops": "3.53.0-next.4"
46
46
  },
47
47
  "peerDependencies": {
48
48
  "lodash-es": "^4.17.21",
@@ -1,41 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var TestComponent_exports = {};
30
- __export(TestComponent_exports, {
31
- TestComponent: () => TestComponent
32
- });
33
- module.exports = __toCommonJS(TestComponent_exports);
34
- var React = __toESM(require("react"));
35
- var import_jsx_runtime = require("react/jsx-runtime");
36
- var import_useGetGlobalAttributes = require("../../globalProps/useGetGlobalAttributes");
37
- const TestComponent = (props) => {
38
- const globalAttributes = (0, import_useGetGlobalAttributes.useGetGlobalAttributes)(props);
39
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { ...globalAttributes, children: "Some random div" });
40
- };
41
- //# sourceMappingURL=TestComponent.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../src/tests/globalProps/TestComponent.js", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["// eslint-disable-next-line import/extensions\nimport { useGetGlobalAttributes } from '../../globalProps/useGetGlobalAttributes';\n\nexport const TestComponent = (props) => {\n const globalAttributes = useGetGlobalAttributes(props);\n\n return <div {...globalAttributes}>Some random div</div>;\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADMd;AALT,oCAAuC;AAEhC,MAAM,gBAAgB,CAAC,UAAU;AACtC,QAAM,uBAAmB,sDAAuB,KAAK;AAErD,SAAO,4CAAC,SAAK,GAAG,kBAAkB,6BAAe;AACnD;",
6
- "names": []
7
- }
@@ -1,79 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var test_schema_exports = {};
30
- __export(test_schema_exports, {
31
- TypescriptSchema: () => TypescriptSchema
32
- });
33
- module.exports = __toCommonJS(test_schema_exports);
34
- var React = __toESM(require("react"));
35
- var import_propTypes = require("../../propTypes/index.ts");
36
- const TestSchema = {
37
- string: import_propTypes.PropTypes.string.description("String"),
38
- number: import_propTypes.PropTypes.number.description("Number"),
39
- boolean: import_propTypes.PropTypes.bool.description("Boolean"),
40
- any: import_propTypes.PropTypes.any.description("Any"),
41
- union: import_propTypes.PropTypes.oneOfType([import_propTypes.PropTypes.string, import_propTypes.PropTypes.number]).description("Union"),
42
- union2: import_propTypes.PropTypes.oneOf(["A", "B"]).description("Union 2"),
43
- union3: import_propTypes.PropTypes.oneOfType([
44
- import_propTypes.PropTypes.string,
45
- import_propTypes.PropTypes.arrayOf(import_propTypes.PropTypes.string),
46
- import_propTypes.PropTypes.shape({ string: import_propTypes.PropTypes.string })
47
- ]).description("Union 3"),
48
- array: import_propTypes.PropTypes.arrayOf(import_propTypes.PropTypes.string).description("Array"),
49
- object: import_propTypes.PropTypes.object.description("Object"),
50
- shape: import_propTypes.PropTypes.shape({
51
- string: import_propTypes.PropTypes.string.description("String").isRequired,
52
- number: import_propTypes.PropTypes.number.description("Number"),
53
- boolean: import_propTypes.PropTypes.bool.description("Boolean"),
54
- anotherShape: import_propTypes.PropTypes.shape({
55
- string: import_propTypes.PropTypes.string.description("String").isRequired,
56
- number: import_propTypes.PropTypes.number.description("Number"),
57
- boolean: import_propTypes.PropTypes.bool.description("Boolean")
58
- }).description("Another shape")
59
- }).description("Shape"),
60
- function: import_propTypes.PropTypes.func.description("Function"),
61
- jsx: import_propTypes.PropTypes.element.description("JSX"),
62
- node: import_propTypes.PropTypes.node.description("Node"),
63
- something: import_propTypes.PropTypes.oneOf(["thing", "object"]).description("something"),
64
- isRequiredIf: import_propTypes.PropTypes.string.description("isRequiredIf").isRequiredIf((props) => props.something === "thing"),
65
- objectOf: import_propTypes.PropTypes.objectOf(import_propTypes.PropTypes.string).description("Object of"),
66
- objectOfArray: import_propTypes.PropTypes.objectOf(import_propTypes.PropTypes.arrayOf(import_propTypes.PropTypes.string)).description("Object of array"),
67
- shapeWithObjectOf: import_propTypes.PropTypes.shape({
68
- objectOf: import_propTypes.PropTypes.objectOf(import_propTypes.PropTypes.string).description("Object of")
69
- }).description("Shape with object of"),
70
- shapeWithObjectOfAndSignature: import_propTypes.PropTypes.shape({
71
- signature: import_propTypes.PropTypes.func.signature("((a: string, b: number, c: Record<string, number>) => void)").description("Signature"),
72
- objectOf: import_propTypes.PropTypes.objectOf(import_propTypes.PropTypes.string).description("Object of")
73
- }).description("Shape with object of and signature")
74
- };
75
- const TestComponent = () => null;
76
- const TestComponentWithSchema = (0, import_propTypes.describe)(TestComponent).description("Test Component");
77
- TestComponentWithSchema.propTypes = TestSchema;
78
- const TypescriptSchema = TestComponentWithSchema.toTypescript();
79
- //# sourceMappingURL=test.schema.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../src/tests/validation/test.schema.js", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import { PropTypes, describe } from '../../propTypes/index.ts';\n\nconst TestSchema = {\n string: PropTypes.string.description('String'),\n number: PropTypes.number.description('Number'),\n boolean: PropTypes.bool.description('Boolean'),\n any: PropTypes.any.description('Any'),\n union: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).description('Union'),\n union2: PropTypes.oneOf(['A', 'B']).description('Union 2'),\n union3: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.arrayOf(PropTypes.string),\n PropTypes.shape({ string: PropTypes.string }),\n ]).description('Union 3'),\n array: PropTypes.arrayOf(PropTypes.string).description('Array'),\n object: PropTypes.object.description('Object'),\n shape: PropTypes.shape({\n string: PropTypes.string.description('String').isRequired,\n number: PropTypes.number.description('Number'),\n boolean: PropTypes.bool.description('Boolean'),\n anotherShape: PropTypes.shape({\n string: PropTypes.string.description('String').isRequired,\n number: PropTypes.number.description('Number'),\n boolean: PropTypes.bool.description('Boolean'),\n }).description('Another shape'),\n }).description('Shape'),\n function: PropTypes.func.description('Function'),\n jsx: PropTypes.element.description('JSX'),\n node: PropTypes.node.description('Node'),\n something: PropTypes.oneOf(['thing', 'object']).description('something'),\n isRequiredIf: PropTypes.string.description('isRequiredIf').isRequiredIf((props) => props.something === 'thing'),\n objectOf: PropTypes.objectOf(PropTypes.string).description('Object of'),\n objectOfArray: PropTypes.objectOf(PropTypes.arrayOf(PropTypes.string)).description('Object of array'),\n shapeWithObjectOf: PropTypes.shape({\n objectOf: PropTypes.objectOf(PropTypes.string).description('Object of'),\n }).description('Shape with object of'),\n shapeWithObjectOfAndSignature: PropTypes.shape({\n signature: PropTypes.func\n .signature('((a: string, b: number, c: Record<string, number>) => void)')\n .description('Signature'),\n objectOf: PropTypes.objectOf(PropTypes.string).description('Object of'),\n }).description('Shape with object of and signature'),\n};\n\nconst TestComponent = () => null;\n\nconst TestComponentWithSchema = describe(TestComponent).description('Test Component');\n\nTestComponentWithSchema.propTypes = TestSchema;\n\nexport const TypescriptSchema = TestComponentWithSchema.toTypescript();\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,uBAAoC;AAEpC,MAAM,aAAa;AAAA,EACjB,QAAQ,2BAAU,OAAO,YAAY,QAAQ;AAAA,EAC7C,QAAQ,2BAAU,OAAO,YAAY,QAAQ;AAAA,EAC7C,SAAS,2BAAU,KAAK,YAAY,SAAS;AAAA,EAC7C,KAAK,2BAAU,IAAI,YAAY,KAAK;AAAA,EACpC,OAAO,2BAAU,UAAU,CAAC,2BAAU,QAAQ,2BAAU,MAAM,CAAC,EAAE,YAAY,OAAO;AAAA,EACpF,QAAQ,2BAAU,MAAM,CAAC,KAAK,GAAG,CAAC,EAAE,YAAY,SAAS;AAAA,EACzD,QAAQ,2BAAU,UAAU;AAAA,IAC1B,2BAAU;AAAA,IACV,2BAAU,QAAQ,2BAAU,MAAM;AAAA,IAClC,2BAAU,MAAM,EAAE,QAAQ,2BAAU,OAAO,CAAC;AAAA,EAC9C,CAAC,EAAE,YAAY,SAAS;AAAA,EACxB,OAAO,2BAAU,QAAQ,2BAAU,MAAM,EAAE,YAAY,OAAO;AAAA,EAC9D,QAAQ,2BAAU,OAAO,YAAY,QAAQ;AAAA,EAC7C,OAAO,2BAAU,MAAM;AAAA,IACrB,QAAQ,2BAAU,OAAO,YAAY,QAAQ,EAAE;AAAA,IAC/C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AAmB,wBAAwB,aAAa;",
6
- "names": []
7
- }
@@ -1,42 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var TestComponent_exports = {};
30
- __export(TestComponent_exports, {
31
- TestComponent: () => TestComponent
32
- });
33
- module.exports = __toCommonJS(TestComponent_exports);
34
- var React = __toESM(require("react"));
35
- var import_jsx_runtime = require("react/jsx-runtime");
36
- var import_xstyledProps = require("../../xstyledProps");
37
- const TestComponent = (props) => {
38
- const xstyledProps = (0, import_xstyledProps.useGetXstyledProps)(props);
39
- props.signal(xstyledProps);
40
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { ...xstyledProps, "data-testid": "xstyled-div", children: "Some random div" });
41
- };
42
- //# sourceMappingURL=TestComponent.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../src/tests/xstyledProps/TestComponent.js", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["/* eslint-disable react/prop-types */\n// eslint-disable-next-line import/extensions\nimport { useGetXstyledProps } from '../../xstyledProps';\n\nexport const TestComponent = (props) => {\n const xstyledProps = useGetXstyledProps(props);\n\n props.signal(xstyledProps);\n\n return (\n <div {...xstyledProps} data-testid=\"xstyled-div\">\n Some random div\n </div>\n );\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADUnB;AARJ,0BAAmC;AAE5B,MAAM,gBAAgB,CAAC,UAAU;AACtC,QAAM,mBAAe,wCAAmB,KAAK;AAE7C,QAAM,OAAO,YAAY;AAEzB,SACE,4CAAC,SAAK,GAAG,cAAc,eAAY,eAAc,6BAEjD;AAEJ;",
6
- "names": []
7
- }
@@ -1,11 +0,0 @@
1
- import * as React from "react";
2
- import { jsx } from "react/jsx-runtime";
3
- import { useGetGlobalAttributes } from "../../globalProps/useGetGlobalAttributes";
4
- const TestComponent = (props) => {
5
- const globalAttributes = useGetGlobalAttributes(props);
6
- return /* @__PURE__ */ jsx("div", { ...globalAttributes, children: "Some random div" });
7
- };
8
- export {
9
- TestComponent
10
- };
11
- //# sourceMappingURL=TestComponent.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/tests/globalProps/TestComponent.js"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "// eslint-disable-next-line import/extensions\nimport { useGetGlobalAttributes } from '../../globalProps/useGetGlobalAttributes';\n\nexport const TestComponent = (props) => {\n const globalAttributes = useGetGlobalAttributes(props);\n\n return <div {...globalAttributes}>Some random div</div>;\n};\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACMd;AALT,SAAS,8BAA8B;AAEhC,MAAM,gBAAgB,CAAC,UAAU;AACtC,QAAM,mBAAmB,uBAAuB,KAAK;AAErD,SAAO,oBAAC,SAAK,GAAG,kBAAkB,6BAAe;AACnD;",
6
- "names": []
7
- }
@@ -1,49 +0,0 @@
1
- import * as React from "react";
2
- import { PropTypes, describe } from "../../propTypes/index.ts";
3
- const TestSchema = {
4
- string: PropTypes.string.description("String"),
5
- number: PropTypes.number.description("Number"),
6
- boolean: PropTypes.bool.description("Boolean"),
7
- any: PropTypes.any.description("Any"),
8
- union: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).description("Union"),
9
- union2: PropTypes.oneOf(["A", "B"]).description("Union 2"),
10
- union3: PropTypes.oneOfType([
11
- PropTypes.string,
12
- PropTypes.arrayOf(PropTypes.string),
13
- PropTypes.shape({ string: PropTypes.string })
14
- ]).description("Union 3"),
15
- array: PropTypes.arrayOf(PropTypes.string).description("Array"),
16
- object: PropTypes.object.description("Object"),
17
- shape: PropTypes.shape({
18
- string: PropTypes.string.description("String").isRequired,
19
- number: PropTypes.number.description("Number"),
20
- boolean: PropTypes.bool.description("Boolean"),
21
- anotherShape: PropTypes.shape({
22
- string: PropTypes.string.description("String").isRequired,
23
- number: PropTypes.number.description("Number"),
24
- boolean: PropTypes.bool.description("Boolean")
25
- }).description("Another shape")
26
- }).description("Shape"),
27
- function: PropTypes.func.description("Function"),
28
- jsx: PropTypes.element.description("JSX"),
29
- node: PropTypes.node.description("Node"),
30
- something: PropTypes.oneOf(["thing", "object"]).description("something"),
31
- isRequiredIf: PropTypes.string.description("isRequiredIf").isRequiredIf((props) => props.something === "thing"),
32
- objectOf: PropTypes.objectOf(PropTypes.string).description("Object of"),
33
- objectOfArray: PropTypes.objectOf(PropTypes.arrayOf(PropTypes.string)).description("Object of array"),
34
- shapeWithObjectOf: PropTypes.shape({
35
- objectOf: PropTypes.objectOf(PropTypes.string).description("Object of")
36
- }).description("Shape with object of"),
37
- shapeWithObjectOfAndSignature: PropTypes.shape({
38
- signature: PropTypes.func.signature("((a: string, b: number, c: Record<string, number>) => void)").description("Signature"),
39
- objectOf: PropTypes.objectOf(PropTypes.string).description("Object of")
40
- }).description("Shape with object of and signature")
41
- };
42
- const TestComponent = () => null;
43
- const TestComponentWithSchema = describe(TestComponent).description("Test Component");
44
- TestComponentWithSchema.propTypes = TestSchema;
45
- const TypescriptSchema = TestComponentWithSchema.toTypescript();
46
- export {
47
- TypescriptSchema
48
- };
49
- //# sourceMappingURL=test.schema.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/tests/validation/test.schema.js"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { PropTypes, describe } from '../../propTypes/index.ts';\n\nconst TestSchema = {\n string: PropTypes.string.description('String'),\n number: PropTypes.number.description('Number'),\n boolean: PropTypes.bool.description('Boolean'),\n any: PropTypes.any.description('Any'),\n union: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).description('Union'),\n union2: PropTypes.oneOf(['A', 'B']).description('Union 2'),\n union3: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.arrayOf(PropTypes.string),\n PropTypes.shape({ string: PropTypes.string }),\n ]).description('Union 3'),\n array: PropTypes.arrayOf(PropTypes.string).description('Array'),\n object: PropTypes.object.description('Object'),\n shape: PropTypes.shape({\n string: PropTypes.string.description('String').isRequired,\n number: PropTypes.number.description('Number'),\n boolean: PropTypes.bool.description('Boolean'),\n anotherShape: PropTypes.shape({\n string: PropTypes.string.description('String').isRequired,\n number: PropTypes.number.description('Number'),\n boolean: PropTypes.bool.description('Boolean'),\n }).description('Another shape'),\n }).description('Shape'),\n function: PropTypes.func.description('Function'),\n jsx: PropTypes.element.description('JSX'),\n node: PropTypes.node.description('Node'),\n something: PropTypes.oneOf(['thing', 'object']).description('something'),\n isRequiredIf: PropTypes.string.description('isRequiredIf').isRequiredIf((props) => props.something === 'thing'),\n objectOf: PropTypes.objectOf(PropTypes.string).description('Object of'),\n objectOfArray: PropTypes.objectOf(PropTypes.arrayOf(PropTypes.string)).description('Object of array'),\n shapeWithObjectOf: PropTypes.shape({\n objectOf: PropTypes.objectOf(PropTypes.string).description('Object of'),\n }).description('Shape with object of'),\n shapeWithObjectOfAndSignature: PropTypes.shape({\n signature: PropTypes.func\n .signature('((a: string, b: number, c: Record<string, number>) => void)')\n .description('Signature'),\n objectOf: PropTypes.objectOf(PropTypes.string).description('Object of'),\n }).description('Shape with object of and signature'),\n};\n\nconst TestComponent = () => null;\n\nconst TestComponentWithSchema = describe(TestComponent).description('Test Component');\n\nTestComponentWithSchema.propTypes = TestSchema;\n\nexport const TypescriptSchema = TestComponentWithSchema.toTypescript();\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,WAAW,gBAAgB;AAEpC,MAAM,aAAa;AAAA,EACjB,QAAQ,UAAU,OAAO,YAAY,QAAQ;AAAA,EAC7C,QAAQ,UAAU,OAAO,YAAY,QAAQ;AAAA,EAC7C,SAAS,UAAU,KAAK,YAAY,SAAS;AAAA,EAC7C,KAAK,UAAU,IAAI,YAAY,KAAK;AAAA,EACpC,OAAO,UAAU,UAAU,CAAC,UAAU,QAAQ,UAAU,MAAM,CAAC,EAAE,YAAY,OAAO;AAAA,EACpF,QAAQ,UAAU,MAAM,CAAC,KAAK,GAAG,CAAC,EAAE,YAAY,SAAS;AAAA,EACzD,QAAQ,UAAU,UAAU;AAAA,IAC1B,UAAU;AAAA,IACV,UAAU,QAAQ,UAAU,MAAM;AAAA,IAClC,UAAU,MAAM,EAAE,QAAQ,UAAU,OAAO,CAAC;AAAA,EAC9C,CAAC,EAAE,YAAY,SAAS;AAAA,EACxB,OAAO,UAAU,QAAQ,UAAU,MAAM,EAAE,YAAY,OAAO;AAAA,EAC9D,QAAQ,UAAU,OAAO,YAAY,QAAQ;AAAA,EAC7C,OAAO,UAAU,MAAM;AAAA,IACrB,QAAQ,UA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7B,MAAM,mBAAmB,wBAAwB,aAAa;",
6
- "names": []
7
- }
@@ -1,12 +0,0 @@
1
- import * as React from "react";
2
- import { jsx } from "react/jsx-runtime";
3
- import { useGetXstyledProps } from "../../xstyledProps";
4
- const TestComponent = (props) => {
5
- const xstyledProps = useGetXstyledProps(props);
6
- props.signal(xstyledProps);
7
- return /* @__PURE__ */ jsx("div", { ...xstyledProps, "data-testid": "xstyled-div", children: "Some random div" });
8
- };
9
- export {
10
- TestComponent
11
- };
12
- //# sourceMappingURL=TestComponent.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/tests/xstyledProps/TestComponent.js"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable react/prop-types */\n// eslint-disable-next-line import/extensions\nimport { useGetXstyledProps } from '../../xstyledProps';\n\nexport const TestComponent = (props) => {\n const xstyledProps = useGetXstyledProps(props);\n\n props.signal(xstyledProps);\n\n return (\n <div {...xstyledProps} data-testid=\"xstyled-div\">\n Some random div\n </div>\n );\n};\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACUnB;AARJ,SAAS,0BAA0B;AAE5B,MAAM,gBAAgB,CAAC,UAAU;AACtC,QAAM,eAAe,mBAAmB,KAAK;AAE7C,QAAM,OAAO,YAAY;AAEzB,SACE,oBAAC,SAAK,GAAG,cAAc,eAAY,eAAc,6BAEjD;AAEJ;",
6
- "names": []
7
- }