@elliemae/ds-legacy-classnames 1.0.0-rc.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.
Files changed (60) hide show
  1. package/dist/cjs/aggregatedClasses.js +87 -0
  2. package/dist/cjs/aggregatedClasses.js.map +7 -0
  3. package/dist/cjs/aggregatedClasses.md +323 -0
  4. package/dist/cjs/classNameManager.js +84 -0
  5. package/dist/cjs/classNameManager.js.map +7 -0
  6. package/dist/cjs/converPropsToFormModifiers.js +59 -0
  7. package/dist/cjs/converPropsToFormModifiers.js.map +7 -0
  8. package/dist/cjs/convertPropToFeedBackModifiers.js +61 -0
  9. package/dist/cjs/convertPropToFeedBackModifiers.js.map +7 -0
  10. package/dist/cjs/convertPropsToColorModifiers.js +59 -0
  11. package/dist/cjs/convertPropsToColorModifiers.js.map +7 -0
  12. package/dist/cjs/convertPropsToLayoutModifiers.js +61 -0
  13. package/dist/cjs/convertPropsToLayoutModifiers.js.map +7 -0
  14. package/dist/cjs/convertPropsToSizeModifiers.js +78 -0
  15. package/dist/cjs/convertPropsToSizeModifiers.js.map +7 -0
  16. package/dist/cjs/convertPropsToTextModifiers.js +59 -0
  17. package/dist/cjs/convertPropsToTextModifiers.js.map +7 -0
  18. package/dist/cjs/dimsum.config.js +38 -0
  19. package/dist/cjs/dimsum.config.js.map +7 -0
  20. package/dist/cjs/index.js +39 -0
  21. package/dist/cjs/index.js.map +7 -0
  22. package/dist/cjs/package.json +7 -0
  23. package/dist/cjs/validateNativeProps.js +430 -0
  24. package/dist/cjs/validateNativeProps.js.map +7 -0
  25. package/dist/esm/aggregatedClasses.js +60 -0
  26. package/dist/esm/aggregatedClasses.js.map +7 -0
  27. package/dist/esm/aggregatedClasses.md +323 -0
  28. package/dist/esm/classNameManager.js +54 -0
  29. package/dist/esm/classNameManager.js.map +7 -0
  30. package/dist/esm/converPropsToFormModifiers.js +29 -0
  31. package/dist/esm/converPropsToFormModifiers.js.map +7 -0
  32. package/dist/esm/convertPropToFeedBackModifiers.js +31 -0
  33. package/dist/esm/convertPropToFeedBackModifiers.js.map +7 -0
  34. package/dist/esm/convertPropsToColorModifiers.js +29 -0
  35. package/dist/esm/convertPropsToColorModifiers.js.map +7 -0
  36. package/dist/esm/convertPropsToLayoutModifiers.js +31 -0
  37. package/dist/esm/convertPropsToLayoutModifiers.js.map +7 -0
  38. package/dist/esm/convertPropsToSizeModifiers.js +48 -0
  39. package/dist/esm/convertPropsToSizeModifiers.js.map +7 -0
  40. package/dist/esm/convertPropsToTextModifiers.js +29 -0
  41. package/dist/esm/convertPropsToTextModifiers.js.map +7 -0
  42. package/dist/esm/dimsum.config.js +8 -0
  43. package/dist/esm/dimsum.config.js.map +7 -0
  44. package/dist/esm/index.js +9 -0
  45. package/dist/esm/index.js.map +7 -0
  46. package/dist/esm/package.json +7 -0
  47. package/dist/esm/validateNativeProps.js +400 -0
  48. package/dist/esm/validateNativeProps.js.map +7 -0
  49. package/dist/types/aggregatedClasses.d.ts +11 -0
  50. package/dist/types/classNameManager.d.ts +28 -0
  51. package/dist/types/converPropsToFormModifiers.d.ts +15 -0
  52. package/dist/types/convertPropToFeedBackModifiers.d.ts +17 -0
  53. package/dist/types/convertPropsToColorModifiers.d.ts +11 -0
  54. package/dist/types/convertPropsToLayoutModifiers.d.ts +17 -0
  55. package/dist/types/convertPropsToSizeModifiers.d.ts +25 -0
  56. package/dist/types/convertPropsToTextModifiers.d.ts +15 -0
  57. package/dist/types/dimsum.config.d.ts +4 -0
  58. package/dist/types/index.d.ts +2 -0
  59. package/dist/types/validateNativeProps.d.ts +265 -0
  60. package/package.json +102 -0
@@ -0,0 +1,59 @@
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 convertPropsToColorModifiers_exports = {};
30
+ __export(convertPropsToColorModifiers_exports, {
31
+ default: () => convertPropsToColorModifiers_default,
32
+ pipe: () => pipe
33
+ });
34
+ module.exports = __toCommonJS(convertPropsToColorModifiers_exports);
35
+ var React = __toESM(require("react"));
36
+ const basicAction = ({ color = null }) => {
37
+ const cssModifier = [];
38
+ if (color && color[0]) {
39
+ if (color[1] !== null)
40
+ cssModifier.push(`color-${color[0]}-${color[1]}`);
41
+ else
42
+ cssModifier.push(`color-${color[0]}`);
43
+ }
44
+ return cssModifier;
45
+ };
46
+ const instance = [basicAction];
47
+ const pipe = () => ({
48
+ getInstance() {
49
+ return instance;
50
+ },
51
+ add(customModifier) {
52
+ instance.push(customModifier);
53
+ },
54
+ execute(props) {
55
+ return instance.reduce((temp, action) => [...temp, ...action(props)], []);
56
+ }
57
+ });
58
+ var convertPropsToColorModifiers_default = pipe;
59
+ //# sourceMappingURL=convertPropsToColorModifiers.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/convertPropsToColorModifiers.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["const basicAction = ({ color = null }) => {\n const cssModifier = [];\n if (color && color[0]) {\n if (color[1] !== null) cssModifier.push(`color-${color[0]}-${color[1]}`);\n else cssModifier.push(`color-${color[0]}`);\n }\n return cssModifier;\n};\n\nconst instance = [basicAction];\nconst pipe = () => ({\n getInstance() {\n return instance;\n },\n add(customModifier) {\n instance.push(customModifier);\n },\n execute(props) {\n return instance.reduce((temp, action) => [...temp, ...action(props)], []);\n },\n});\n\nexport { pipe };\nexport default pipe;\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,MAAM,cAAc,CAAC,EAAE,QAAQ,KAAK,MAAM;AACxC,QAAM,cAAc,CAAC;AACrB,MAAI,SAAS,MAAM,CAAC,GAAG;AACrB,QAAI,MAAM,CAAC,MAAM;AAAM,kBAAY,KAAK,SAAS,MAAM,CAAC,KAAK,MAAM,CAAC,GAAG;AAAA;AAClE,kBAAY,KAAK,SAAS,MAAM,CAAC,GAAG;AAAA,EAC3C;AACA,SAAO;AACT;AAEA,MAAM,WAAW,CAAC,WAAW;AAC7B,MAAM,OAAO,OAAO;AAAA,EAClB,cAAc;AACZ,WAAO;AAAA,EACT;AAAA,EACA,IAAI,gBAAgB;AAClB,aAAS,KAAK,cAAc;AAAA,EAC9B;AAAA,EACA,QAAQ,OAAO;AACb,WAAO,SAAS,OAAO,CAAC,MAAM,WAAW,CAAC,GAAG,MAAM,GAAG,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC;AAAA,EAC1E;AACF;AAGA,IAAO,uCAAQ;",
6
+ "names": []
7
+ }
@@ -0,0 +1,61 @@
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 convertPropsToLayoutModifiers_exports = {};
30
+ __export(convertPropsToLayoutModifiers_exports, {
31
+ default: () => convertPropsToLayoutModifiers_default,
32
+ pipe: () => pipe
33
+ });
34
+ module.exports = __toCommonJS(convertPropsToLayoutModifiers_exports);
35
+ var React = __toESM(require("react"));
36
+ const basicAction = ({ id, buttonType = "default", fluidWidth = false, fluidHeight = false }) => {
37
+ const cssModifier = [];
38
+ if (id)
39
+ cssModifier.push(`id-${id}`);
40
+ if (buttonType)
41
+ cssModifier.push(buttonType);
42
+ if (fluidWidth)
43
+ cssModifier.push("fluid-width");
44
+ if (fluidHeight)
45
+ cssModifier.push("fluid-height");
46
+ return cssModifier;
47
+ };
48
+ const instance = [basicAction];
49
+ const pipe = () => ({
50
+ getInstance() {
51
+ return instance;
52
+ },
53
+ add(customModifier) {
54
+ instance.push(customModifier);
55
+ },
56
+ execute(props) {
57
+ return instance.reduce((temp, action) => [...temp, ...action(props)], []);
58
+ }
59
+ });
60
+ var convertPropsToLayoutModifiers_default = pipe;
61
+ //# sourceMappingURL=convertPropsToLayoutModifiers.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/convertPropsToLayoutModifiers.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["const basicAction = ({ id, buttonType = 'default', fluidWidth = false, fluidHeight = false }) => {\n const cssModifier = [];\n // buttons types\n if (id) cssModifier.push(`id-${id}`);\n if (buttonType) cssModifier.push(buttonType);\n if (fluidWidth) cssModifier.push('fluid-width');\n if (fluidHeight) cssModifier.push('fluid-height');\n\n return cssModifier;\n};\n\nconst instance = [basicAction];\nconst pipe = () => ({\n getInstance() {\n return instance;\n },\n add(customModifier) {\n instance.push(customModifier);\n },\n execute(props) {\n return instance.reduce((temp, action) => [...temp, ...action(props)], []);\n },\n});\n\nexport { pipe };\nexport default pipe;\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,MAAM,cAAc,CAAC,EAAE,IAAI,aAAa,WAAW,aAAa,OAAO,cAAc,MAAM,MAAM;AAC/F,QAAM,cAAc,CAAC;AAErB,MAAI;AAAI,gBAAY,KAAK,MAAM,IAAI;AACnC,MAAI;AAAY,gBAAY,KAAK,UAAU;AAC3C,MAAI;AAAY,gBAAY,KAAK,aAAa;AAC9C,MAAI;AAAa,gBAAY,KAAK,cAAc;AAEhD,SAAO;AACT;AAEA,MAAM,WAAW,CAAC,WAAW;AAC7B,MAAM,OAAO,OAAO;AAAA,EAClB,cAAc;AACZ,WAAO;AAAA,EACT;AAAA,EACA,IAAI,gBAAgB;AAClB,aAAS,KAAK,cAAc;AAAA,EAC9B;AAAA,EACA,QAAQ,OAAO;AACb,WAAO,SAAS,OAAO,CAAC,MAAM,WAAW,CAAC,GAAG,MAAM,GAAG,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC;AAAA,EAC1E;AACF;AAGA,IAAO,wCAAQ;",
6
+ "names": []
7
+ }
@@ -0,0 +1,78 @@
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 convertPropsToSizeModifiers_exports = {};
30
+ __export(convertPropsToSizeModifiers_exports, {
31
+ default: () => convertPropsToSizeModifiers_default,
32
+ pipe: () => pipe
33
+ });
34
+ module.exports = __toCommonJS(convertPropsToSizeModifiers_exports);
35
+ var React = __toESM(require("react"));
36
+ const basicAction = ({
37
+ size = null,
38
+ extraTight = false,
39
+ tight = false,
40
+ base = false,
41
+ bitLoose = false,
42
+ loose = false,
43
+ extraLoose = false,
44
+ superLoose = false
45
+ }) => {
46
+ const cssModifier = [];
47
+ if (size)
48
+ cssModifier.push(`${size}`);
49
+ if (extraTight)
50
+ cssModifier.push("size-extra-tight");
51
+ else if (tight)
52
+ cssModifier.push("size-tight");
53
+ else if (base)
54
+ cssModifier.push("size-base");
55
+ else if (bitLoose)
56
+ cssModifier.push("size-bit-loose");
57
+ else if (loose)
58
+ cssModifier.push("size-loose");
59
+ else if (extraLoose)
60
+ cssModifier.push("size-extra-loose");
61
+ else if (superLoose)
62
+ cssModifier.push("size-super-loose");
63
+ return cssModifier;
64
+ };
65
+ const instance = [basicAction];
66
+ const pipe = () => ({
67
+ getInstance() {
68
+ return instance;
69
+ },
70
+ add(customModifier) {
71
+ instance.push(customModifier);
72
+ },
73
+ execute(props) {
74
+ return instance.reduce((temp, action) => [...temp, ...action(props)], []);
75
+ }
76
+ });
77
+ var convertPropsToSizeModifiers_default = pipe;
78
+ //# sourceMappingURL=convertPropsToSizeModifiers.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/convertPropsToSizeModifiers.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["const basicAction = ({\n size = null,\n extraTight = false,\n tight = false,\n base = false,\n bitLoose = false,\n loose = false,\n extraLoose = false,\n superLoose = false,\n}) => {\n const cssModifier = [];\n if (size) cssModifier.push(`${size}`);\n // Size as Flag\n if (extraTight) cssModifier.push('size-extra-tight');\n else if (tight) cssModifier.push('size-tight');\n else if (base) cssModifier.push('size-base');\n else if (bitLoose) cssModifier.push('size-bit-loose');\n else if (loose) cssModifier.push('size-loose');\n else if (extraLoose) cssModifier.push('size-extra-loose');\n else if (superLoose) cssModifier.push('size-super-loose');\n return cssModifier;\n};\n\nconst instance = [basicAction];\nconst pipe = () => ({\n getInstance() {\n return instance;\n },\n add(customModifier) {\n instance.push(customModifier);\n },\n execute(props) {\n return instance.reduce((temp, action) => [...temp, ...action(props)], []);\n },\n});\n\nexport { pipe };\nexport default pipe;\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,MAAM,cAAc,CAAC;AAAA,EACnB,OAAO;AAAA,EACP,aAAa;AAAA,EACb,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,WAAW;AAAA,EACX,QAAQ;AAAA,EACR,aAAa;AAAA,EACb,aAAa;AACf,MAAM;AACJ,QAAM,cAAc,CAAC;AACrB,MAAI;AAAM,gBAAY,KAAK,GAAG,MAAM;AAEpC,MAAI;AAAY,gBAAY,KAAK,kBAAkB;AAAA,WAC1C;AAAO,gBAAY,KAAK,YAAY;AAAA,WACpC;AAAM,gBAAY,KAAK,WAAW;AAAA,WAClC;AAAU,gBAAY,KAAK,gBAAgB;AAAA,WAC3C;AAAO,gBAAY,KAAK,YAAY;AAAA,WACpC;AAAY,gBAAY,KAAK,kBAAkB;AAAA,WAC/C;AAAY,gBAAY,KAAK,kBAAkB;AACxD,SAAO;AACT;AAEA,MAAM,WAAW,CAAC,WAAW;AAC7B,MAAM,OAAO,OAAO;AAAA,EAClB,cAAc;AACZ,WAAO;AAAA,EACT;AAAA,EACA,IAAI,gBAAgB;AAClB,aAAS,KAAK,cAAc;AAAA,EAC9B;AAAA,EACA,QAAQ,OAAO;AACb,WAAO,SAAS,OAAO,CAAC,MAAM,WAAW,CAAC,GAAG,MAAM,GAAG,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC;AAAA,EAC1E;AACF;AAGA,IAAO,sCAAQ;",
6
+ "names": []
7
+ }
@@ -0,0 +1,59 @@
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 convertPropsToTextModifiers_exports = {};
30
+ __export(convertPropsToTextModifiers_exports, {
31
+ default: () => convertPropsToTextModifiers_default,
32
+ pipe: () => pipe
33
+ });
34
+ module.exports = __toCommonJS(convertPropsToTextModifiers_exports);
35
+ var React = __toESM(require("react"));
36
+ const basicAction = ({ textEllipsis, textAlignment, wordBreak }) => {
37
+ const cssModifier = [];
38
+ if (textEllipsis)
39
+ cssModifier.push("text-overflow-ellipsis");
40
+ if (wordBreak)
41
+ cssModifier.push("text-overflow-word-break");
42
+ if (["left", "right", "center", "justify"].indexOf(textAlignment) > -1)
43
+ cssModifier.push(`text-align-${textAlignment}`);
44
+ return cssModifier;
45
+ };
46
+ const instance = [basicAction];
47
+ const pipe = () => ({
48
+ getInstance() {
49
+ return instance;
50
+ },
51
+ add(customModifier) {
52
+ instance.push(customModifier);
53
+ },
54
+ execute(props) {
55
+ return instance.reduce((temp, action) => [...temp, ...action(props)], []);
56
+ }
57
+ });
58
+ var convertPropsToTextModifiers_default = pipe;
59
+ //# sourceMappingURL=convertPropsToTextModifiers.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/convertPropsToTextModifiers.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["const basicAction = ({ textEllipsis, textAlignment, wordBreak }) => {\n const cssModifier = [];\n if (textEllipsis) cssModifier.push('text-overflow-ellipsis');\n if (wordBreak) cssModifier.push('text-overflow-word-break');\n if (['left', 'right', 'center', 'justify'].indexOf(textAlignment) > -1)\n cssModifier.push(`text-align-${textAlignment}`);\n return cssModifier;\n};\n\nconst instance = [basicAction];\nconst pipe = () => ({\n getInstance() {\n return instance;\n },\n add(customModifier) {\n instance.push(customModifier);\n },\n execute(props) {\n return instance.reduce((temp, action) => [...temp, ...action(props)], []);\n },\n});\n\nexport { pipe };\nexport default pipe;\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,MAAM,cAAc,CAAC,EAAE,cAAc,eAAe,UAAU,MAAM;AAClE,QAAM,cAAc,CAAC;AACrB,MAAI;AAAc,gBAAY,KAAK,wBAAwB;AAC3D,MAAI;AAAW,gBAAY,KAAK,0BAA0B;AAC1D,MAAI,CAAC,QAAQ,SAAS,UAAU,SAAS,EAAE,QAAQ,aAAa,IAAI;AAClE,gBAAY,KAAK,cAAc,eAAe;AAChD,SAAO;AACT;AAEA,MAAM,WAAW,CAAC,WAAW;AAC7B,MAAM,OAAO,OAAO;AAAA,EAClB,cAAc;AACZ,WAAO;AAAA,EACT;AAAA,EACA,IAAI,gBAAgB;AAClB,aAAS,KAAK,cAAc;AAAA,EAC9B;AAAA,EACA,QAAQ,OAAO;AACb,WAAO,SAAS,OAAO,CAAC,MAAM,WAAW,CAAC,GAAG,MAAM,GAAG,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC;AAAA,EAC1E;AACF;AAGA,IAAO,sCAAQ;",
6
+ "names": []
7
+ }
@@ -0,0 +1,38 @@
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 dimsum_config_exports = {};
30
+ __export(dimsum_config_exports, {
31
+ dimsumConfig: () => dimsumConfig
32
+ });
33
+ module.exports = __toCommonJS(dimsum_config_exports);
34
+ var React = __toESM(require("react"));
35
+ const dimsumConfig = {
36
+ classNamePrefix: "em-ds"
37
+ };
38
+ //# sourceMappingURL=dimsum.config.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/dimsum.config.ts", "../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["const dimsumConfig = {\n classNamePrefix: 'em-ds',\n};\n\nexport { dimsumConfig };\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,MAAM,eAAe;AAAA,EACnB,iBAAiB;AACnB;",
6
+ "names": []
7
+ }
@@ -0,0 +1,39 @@
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 src_exports = {};
30
+ __export(src_exports, {
31
+ aggregatedClasses: () => import_aggregatedClasses.default,
32
+ convertPropToCssClassName: () => import_classNameManager.default,
33
+ cssPrefix: () => import_classNameManager.cssPrefix
34
+ });
35
+ module.exports = __toCommonJS(src_exports);
36
+ var React = __toESM(require("react"));
37
+ var import_classNameManager = __toESM(require("./classNameManager.js"));
38
+ var import_aggregatedClasses = __toESM(require("./aggregatedClasses.js"));
39
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/index.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["export { default as convertPropToCssClassName, cssPrefix } from './classNameManager.js';\nexport { default as aggregatedClasses } from './aggregatedClasses.js';\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,8BAAgE;AAChE,+BAA6C;",
6
+ "names": []
7
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "type": "commonjs",
3
+ "sideEffects": [
4
+ "*.css",
5
+ "*.scss"
6
+ ]
7
+ }