@elliemae/ds-classnames 3.0.0-next.9 → 3.0.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.
- package/dist/cjs/aggregatedClasses.js +9 -16
- package/dist/cjs/aggregatedClasses.js.map +1 -1
- package/dist/cjs/classNameManager.js +9 -16
- package/dist/cjs/classNameManager.js.map +1 -1
- package/dist/cjs/converPropsToFormModifiers.js +9 -16
- package/dist/cjs/converPropsToFormModifiers.js.map +1 -1
- package/dist/cjs/convertPropToFeedBackModifiers.js +9 -16
- package/dist/cjs/convertPropToFeedBackModifiers.js.map +1 -1
- package/dist/cjs/convertPropsToColorModifiers.js +9 -16
- package/dist/cjs/convertPropsToColorModifiers.js.map +1 -1
- package/dist/cjs/convertPropsToLayoutModifiers.js +9 -16
- package/dist/cjs/convertPropsToLayoutModifiers.js.map +1 -1
- package/dist/cjs/convertPropsToSizeModifiers.js +9 -16
- package/dist/cjs/convertPropsToSizeModifiers.js.map +1 -1
- package/dist/cjs/convertPropsToTextModifiers.js +9 -16
- package/dist/cjs/convertPropsToTextModifiers.js.map +1 -1
- package/dist/cjs/dimsum.config.js +9 -16
- package/dist/cjs/dimsum.config.js.map +1 -1
- package/dist/cjs/index.js +9 -16
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/validateNativeProps.js +9 -16
- package/dist/cjs/validateNativeProps.js.map +1 -1
- package/dist/esm/aggregatedClasses.js.map +1 -1
- package/dist/esm/classNameManager.js.map +1 -1
- package/dist/esm/converPropsToFormModifiers.js.map +1 -1
- package/dist/esm/convertPropToFeedBackModifiers.js.map +1 -1
- package/dist/esm/convertPropsToColorModifiers.js.map +1 -1
- package/dist/esm/convertPropsToLayoutModifiers.js.map +1 -1
- package/dist/esm/convertPropsToSizeModifiers.js.map +1 -1
- package/dist/esm/convertPropsToTextModifiers.js.map +1 -1
- package/dist/esm/dimsum.config.js.map +1 -1
- package/dist/esm/validateNativeProps.js.map +1 -1
- package/package.json +10 -10
|
@@ -21,7 +21,6 @@ var __spreadValues = (a, b) => {
|
|
|
21
21
|
return a;
|
|
22
22
|
};
|
|
23
23
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
24
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
25
24
|
var __objRest = (source, exclude) => {
|
|
26
25
|
var target = {};
|
|
27
26
|
for (var prop in source)
|
|
@@ -38,27 +37,22 @@ var __export = (target, all) => {
|
|
|
38
37
|
for (var name in all)
|
|
39
38
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
40
39
|
};
|
|
41
|
-
var
|
|
42
|
-
if (
|
|
43
|
-
for (let key of __getOwnPropNames(
|
|
44
|
-
if (!__hasOwnProp.call(
|
|
45
|
-
__defProp(
|
|
40
|
+
var __copyProps = (to, from, except, desc) => {
|
|
41
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
42
|
+
for (let key of __getOwnPropNames(from))
|
|
43
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
44
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
46
45
|
}
|
|
47
|
-
return
|
|
48
|
-
};
|
|
49
|
-
var __toESM = (module2, isNodeMode) => {
|
|
50
|
-
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
46
|
+
return to;
|
|
51
47
|
};
|
|
52
|
-
var
|
|
53
|
-
|
|
54
|
-
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
55
|
-
};
|
|
56
|
-
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
48
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
|
49
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
57
50
|
var aggregatedClasses_exports = {};
|
|
58
51
|
__export(aggregatedClasses_exports, {
|
|
59
52
|
cssPrefix: () => cssPrefix,
|
|
60
53
|
default: () => aggregatedClasses_default
|
|
61
54
|
});
|
|
55
|
+
module.exports = __toCommonJS(aggregatedClasses_exports);
|
|
62
56
|
var React = __toESM(require("react"));
|
|
63
57
|
var import_react = __toESM(require("react"));
|
|
64
58
|
var import_obj_str = __toESM(require("obj-str"));
|
|
@@ -94,5 +88,4 @@ const aggregatedClasses = (type, props) => (block, element, additionalModifiers,
|
|
|
94
88
|
}, cleanedPropsPassedDown), children);
|
|
95
89
|
});
|
|
96
90
|
var aggregatedClasses_default = aggregatedClasses;
|
|
97
|
-
module.exports = __toCommonJS(aggregatedClasses_exports);
|
|
98
91
|
//# sourceMappingURL=aggregatedClasses.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/aggregatedClasses.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
4
|
"sourcesContent": ["/* eslint-disable @typescript-eslint/no-unsafe-assignment */\n/* eslint-disable prettier/prettier */\n/* eslint-disable max-params */\n/* eslint-disable react/prop-types */\nimport React from 'react';\nimport cx from 'obj-str';\nimport { convertPropToCssClassName } from './classNameManager';\nimport { dimsumConfig } from './dimsum.config';\nimport {\n isValidNativeAttribute,\n isNativeHTMLElement,\n} from './validateNativeProps';\n\nexport const cssPrefix = dimsumConfig.classNamePrefix;\n\ntype AggregatedClassesT<T = unknown> = (\n type: any,\n props?: any,\n) => (\n block: string,\n element?: string | null,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n additionalModifiers?: { [key: string]: unknown } | ((arg: any) => { [key: string]: unknown }),\n options?: { [key: string]: unknown },\n) => React.ForwardRefExoticComponent<React.RefAttributes<T>>;\n\nconst generateClassNameWithModifier = (block, element, modifier) =>\n `${cssPrefix}-${block}${element ? `__${element}` : ''}--${modifier}`;\n\nconst appendBlockAndPrefixToObj = (obj, block, element) =>\n obj\n ? Object.keys(obj).reduce(\n (acc, key) => ({\n ...acc,\n [`${generateClassNameWithModifier(block, element, key)}`]: obj[key],\n }),\n {},\n )\n : [];\n\nconst aggregatedClasses: AggregatedClassesT=\n (type, props) =>\n (block, element, additionalModifiers, options = {}) =>\n React.forwardRef(({ innerRef, children, classProps, useComponent, className, as, ...rest }, ref) => {\n // get the additional classNames either from a function or an object\n let otherModifiers = appendBlockAndPrefixToObj(additionalModifiers, block, element);\n if (typeof additionalModifiers === 'function')\n otherModifiers = appendBlockAndPrefixToObj(\n additionalModifiers({ ...rest, ...classProps, className }),\n block,\n element,\n );\n\n const otherModifiersStr = cx(otherModifiers);\n const { prefix, propsToRemoveFromFinalElement = [] } = options;\n const { cssClassName: classNames } = convertPropToCssClassName(\n block,\n null,\n { ...classProps },\n { prefix, element },\n );\n const cleanedPropsPassedDown = { ...props, ...rest };\n propsToRemoveFromFinalElement.forEach((propKey) => {\n delete cleanedPropsPassedDown[propKey];\n });\n\n if (isNativeHTMLElement(block)) {\n Object.keys(cleanedPropsPassedDown).forEach((key) => {\n if (!isValidNativeAttribute(key)) delete cleanedPropsPassedDown[key];\n });\n }\n\n return React.createElement(\n as || type,\n {\n ref: innerRef || ref,\n className: [classNames, otherModifiersStr, className].join(' '),\n ...cleanedPropsPassedDown,\n },\n children,\n );\n });\n\nexport default aggregatedClasses;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADIvB,mBAAkB;AAClB,qBAAe;AACf,8BAA0C;AAC1C,oBAA6B;AAC7B,iCAGO;AAEA,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AAS,EAAE,KAAK,GAAG;AAAA,KAC3D,yBAEL,QACF;AACF,CAAC;AAEP,IAAO,4BAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -4,33 +4,27 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
7
|
var __export = (target, all) => {
|
|
9
8
|
for (var name in all)
|
|
10
9
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
10
|
};
|
|
12
|
-
var
|
|
13
|
-
if (
|
|
14
|
-
for (let key of __getOwnPropNames(
|
|
15
|
-
if (!__hasOwnProp.call(
|
|
16
|
-
__defProp(
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
16
|
}
|
|
18
|
-
return
|
|
17
|
+
return to;
|
|
19
18
|
};
|
|
20
|
-
var __toESM = (
|
|
21
|
-
|
|
22
|
-
};
|
|
23
|
-
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
-
return (module2, temp) => {
|
|
25
|
-
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
-
};
|
|
27
|
-
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
|
20
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
21
|
var classNameManager_exports = {};
|
|
29
22
|
__export(classNameManager_exports, {
|
|
30
23
|
convertPropToCssClassName: () => cssPipeline,
|
|
31
24
|
cssPrefix: () => cssPrefix,
|
|
32
25
|
default: () => classNameManager_default
|
|
33
26
|
});
|
|
27
|
+
module.exports = __toCommonJS(classNameManager_exports);
|
|
34
28
|
var React = __toESM(require("react"));
|
|
35
29
|
var import_utils = require("@elliemae/ds-utilities/utils");
|
|
36
30
|
var import_dimsum = require("./dimsum.config");
|
|
@@ -79,5 +73,4 @@ const cssPipeline = (blockName = "block", cssClassNameModifier = "", props = {},
|
|
|
79
73
|
};
|
|
80
74
|
};
|
|
81
75
|
var classNameManager_default = cssPipeline;
|
|
82
|
-
module.exports = __toCommonJS(classNameManager_exports);
|
|
83
76
|
//# sourceMappingURL=classNameManager.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/classNameManager.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
4
|
"sourcesContent": ["/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable max-params */\nimport { isEmpty } from '@elliemae/ds-utilities/utils';\nimport { dimsumConfig } from './dimsum.config';\nimport { pipe as formPipe } from './converPropsToFormModifiers';\nimport { pipe as layoutModifiers } from './convertPropsToLayoutModifiers';\nimport { pipe as feedBackModifiers } from './convertPropToFeedBackModifiers';\nimport { pipe as sizeModifiers } from './convertPropsToSizeModifiers';\nimport { pipe as textModifiers } from './convertPropsToTextModifiers';\nimport { pipe as colorModifiers } from './convertPropsToColorModifiers';\n\nexport const cssPrefix = `${dimsumConfig.classNamePrefix}-`;\n\nconst executePipelines = (props) => {\n const form = formPipe().execute(props);\n const layout = layoutModifiers().execute(props);\n const feedback = feedBackModifiers().execute(props);\n const size = sizeModifiers().execute(props);\n const text = textModifiers().execute(props);\n const color = colorModifiers().execute(props);\n return [...form, ...layout, ...feedback, ...size, ...text, ...color];\n};\n\n/**\n * Docs: http://getbem.com/naming/\n * blockName\n * cssClassNameModifier: Main modifier\n * props { hasError, hasWarning, hasSuccess, readOnly, disabled}\n *\n * @param blockName\n * @param cssClassNameModifier\n * @param props\n * @param options\n */\nconst cssPipeline: (\n blockName?: string,\n cssClassNameModifier?: string,\n props?: { [key: string]: any },\n options?: { [key: string]: any },\n) => {\n blockName: string;\n cssPrefix: string;\n prefixBlockName: string;\n cssClassName: string;\n mainModifier(modifier: any): string;\n classNameBlock(elementName: any, usePrefix?: boolean): string;\n classNameBlockModifier(modifierName: any, elementBlockName?: string): string;\n classNameElement(elementName: any, elementBlockName?: string): string;\n classNameModifier(modifierName: any, elementName?: string): string;\n} = (blockName = 'block', cssClassNameModifier = '', props = {}, options = {}) => {\n const { prefix, element } = options;\n\n const prefixBlockName = `${prefix || cssPrefix}${blockName}${element ? `__${element}` : ''}`;\n\n // PipeLine\n const pipes = !isEmpty(props) ? executePipelines(props) : [];\n\n const basePipeline = [prefixBlockName, ...pipes];\n\n // specific classname\n const className = cssClassNameModifier\n ? [...basePipeline].join(` ${prefixBlockName}--`).concat(` ${cssClassNameModifier}`)\n : [...basePipeline].join(` ${prefixBlockName}--`);\n\n return {\n blockName,\n cssPrefix,\n prefixBlockName,\n cssClassName: className,\n mainModifier(modifier) {\n return `${className}--${modifier}`;\n },\n classNameBlock(elementName, usePrefix = true) {\n return `${!usePrefix ? blockName : prefixBlockName}-${elementName}`;\n },\n classNameBlockModifier(modifierName, elementBlockName = '') {\n return `${prefixBlockName}-${elementBlockName}--${modifierName}`;\n },\n classNameElement(elementName, elementBlockName = '') {\n return `${prefixBlockName}${elementBlockName ? `-${elementBlockName}` : ''}__${elementName}`;\n },\n classNameModifier(modifierName, elementName = '') {\n return `${prefixBlockName}${elementName ? `__${elementName}` : ''}--${modifierName}`;\n },\n };\n};\n\nex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A,IACA;AAAA,IACA,cAAc;AAAA,IACd,aAAa,UAAU;AACrB,aAAO,GAAG,cAAc;AAAA,IAC1B;AAAA,IACA,eAAe,aAAa,YAAY,MAAM;AAC5C,aAAO,GAAG,CAAC,YAAY,YAAY,mBAAmB;AAAA,IACxD;AAAA,IACA,uBAAuB,cAAc,mBAAmB,IAAI;AAC1D,aAAO,GAAG,mBAAmB,qBAAqB;AAAA,IACpD;AAAA,IACA,iBAAiB,aAAa,mBAAmB,IAAI;AACnD,aAAO,GAAG,kBAAkB,mBAAmB,IAAI,qBAAqB,OAAO;AAAA,IACjF;AAAA,IACA,kBAAkB,cAAc,cAAc,IAAI;AAChD,aAAO,GAAG,kBAAkB,cAAc,KAAK,gBAAgB,OAAO;AAAA,IACxE;AAAA,EACF;AACF;AAGA,IAAO,2BAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -4,32 +4,26 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
7
|
var __export = (target, all) => {
|
|
9
8
|
for (var name in all)
|
|
10
9
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
10
|
};
|
|
12
|
-
var
|
|
13
|
-
if (
|
|
14
|
-
for (let key of __getOwnPropNames(
|
|
15
|
-
if (!__hasOwnProp.call(
|
|
16
|
-
__defProp(
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
16
|
}
|
|
18
|
-
return
|
|
17
|
+
return to;
|
|
19
18
|
};
|
|
20
|
-
var __toESM = (
|
|
21
|
-
|
|
22
|
-
};
|
|
23
|
-
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
-
return (module2, temp) => {
|
|
25
|
-
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
-
};
|
|
27
|
-
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
|
20
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
21
|
var converPropsToFormModifiers_exports = {};
|
|
29
22
|
__export(converPropsToFormModifiers_exports, {
|
|
30
23
|
default: () => converPropsToFormModifiers_default,
|
|
31
24
|
pipe: () => pipe
|
|
32
25
|
});
|
|
26
|
+
module.exports = __toCommonJS(converPropsToFormModifiers_exports);
|
|
33
27
|
var React = __toESM(require("react"));
|
|
34
28
|
const basicAction = ({
|
|
35
29
|
readOnly = false,
|
|
@@ -58,5 +52,4 @@ const pipe = () => ({
|
|
|
58
52
|
}
|
|
59
53
|
});
|
|
60
54
|
var converPropsToFormModifiers_default = pipe;
|
|
61
|
-
module.exports = __toCommonJS(converPropsToFormModifiers_exports);
|
|
62
55
|
//# sourceMappingURL=converPropsToFormModifiers.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/converPropsToFormModifiers.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
4
|
"sourcesContent": ["const basicAction = ({\n readOnly = false,\n disabled = false,\n checked = false,\n}) => {\n const cssModifier = [];\n // input state modifiers\n if (checked) cssModifier.push('checked');\n if (readOnly) cssModifier.push('readonly');\n if (disabled) cssModifier.push('disabled');\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": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,MAAM,cAAc,CAAC;AAAA,EACnB,WAAW;AAAA,EACX,WAAW;AAAA,EACX,UAAU;AAAA,MACN;AACJ,QAAM,cAAc,CAAC;AAErB,MAAI;AAAS,gBAAY,KAAK,SAAS;AACvC,MAAI;AAAU,gBAAY,KAAK,UAAU;AACzC,MAAI;AAAU,gBAAY,KAAK,UAAU;AACzC,SAAO;AACT;AAEA,MAAM,WAAW,CAAC,WAAW;AAC7B,MAAM,OAAO,MAAO;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,qCAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -4,32 +4,26 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
7
|
var __export = (target, all) => {
|
|
9
8
|
for (var name in all)
|
|
10
9
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
10
|
};
|
|
12
|
-
var
|
|
13
|
-
if (
|
|
14
|
-
for (let key of __getOwnPropNames(
|
|
15
|
-
if (!__hasOwnProp.call(
|
|
16
|
-
__defProp(
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
16
|
}
|
|
18
|
-
return
|
|
17
|
+
return to;
|
|
19
18
|
};
|
|
20
|
-
var __toESM = (
|
|
21
|
-
|
|
22
|
-
};
|
|
23
|
-
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
-
return (module2, temp) => {
|
|
25
|
-
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
-
};
|
|
27
|
-
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
|
20
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
21
|
var convertPropToFeedBackModifiers_exports = {};
|
|
29
22
|
__export(convertPropToFeedBackModifiers_exports, {
|
|
30
23
|
default: () => convertPropToFeedBackModifiers_default,
|
|
31
24
|
pipe: () => pipe
|
|
32
25
|
});
|
|
26
|
+
module.exports = __toCommonJS(convertPropToFeedBackModifiers_exports);
|
|
33
27
|
var React = __toESM(require("react"));
|
|
34
28
|
const basicAction = ({
|
|
35
29
|
hasError = false,
|
|
@@ -61,5 +55,4 @@ const pipe = () => ({
|
|
|
61
55
|
}
|
|
62
56
|
});
|
|
63
57
|
var convertPropToFeedBackModifiers_default = pipe;
|
|
64
|
-
module.exports = __toCommonJS(convertPropToFeedBackModifiers_exports);
|
|
65
58
|
//# sourceMappingURL=convertPropToFeedBackModifiers.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/convertPropToFeedBackModifiers.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
4
|
"sourcesContent": ["const basicAction = ({\n hasError = false,\n hasWarning = false,\n hasSuccess = false,\n modalType,\n}) => {\n const cssModifier = [];\n // valid state modifier\n if (hasError) cssModifier.push('error');\n else if (hasWarning) cssModifier.push('warning');\n else if (hasSuccess) cssModifier.push('success');\n if (modalType) cssModifier.push(`modal-type-${modalType}`);\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": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,MAAM,cAAc,CAAC;AAAA,EACnB,WAAW;AAAA,EACX,aAAa;AAAA,EACb,aAAa;AAAA,EACb;AAAA,MACI;AACJ,QAAM,cAAc,CAAC;AAErB,MAAI;AAAU,gBAAY,KAAK,OAAO;AAAA,WAC7B;AAAY,gBAAY,KAAK,SAAS;AAAA,WACtC;AAAY,gBAAY,KAAK,SAAS;AAC/C,MAAI;AAAW,gBAAY,KAAK,cAAc,WAAW;AACzD,SAAO;AACT;AAEA,MAAM,WAAW,CAAC,WAAW;AAC7B,MAAM,OAAO,MAAO;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,yCAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -4,32 +4,26 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
7
|
var __export = (target, all) => {
|
|
9
8
|
for (var name in all)
|
|
10
9
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
10
|
};
|
|
12
|
-
var
|
|
13
|
-
if (
|
|
14
|
-
for (let key of __getOwnPropNames(
|
|
15
|
-
if (!__hasOwnProp.call(
|
|
16
|
-
__defProp(
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
16
|
}
|
|
18
|
-
return
|
|
17
|
+
return to;
|
|
19
18
|
};
|
|
20
|
-
var __toESM = (
|
|
21
|
-
|
|
22
|
-
};
|
|
23
|
-
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
-
return (module2, temp) => {
|
|
25
|
-
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
-
};
|
|
27
|
-
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
|
20
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
21
|
var convertPropsToColorModifiers_exports = {};
|
|
29
22
|
__export(convertPropsToColorModifiers_exports, {
|
|
30
23
|
default: () => convertPropsToColorModifiers_default,
|
|
31
24
|
pipe: () => pipe
|
|
32
25
|
});
|
|
26
|
+
module.exports = __toCommonJS(convertPropsToColorModifiers_exports);
|
|
33
27
|
var React = __toESM(require("react"));
|
|
34
28
|
const basicAction = ({ color = null }) => {
|
|
35
29
|
const cssModifier = [];
|
|
@@ -54,5 +48,4 @@ const pipe = () => ({
|
|
|
54
48
|
}
|
|
55
49
|
});
|
|
56
50
|
var convertPropsToColorModifiers_default = pipe;
|
|
57
|
-
module.exports = __toCommonJS(convertPropsToColorModifiers_exports);
|
|
58
51
|
//# sourceMappingURL=convertPropsToColorModifiers.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/convertPropsToColorModifiers.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
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": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,MAAM,cAAc,CAAC,EAAE,QAAQ,WAAW;AACxC,QAAM,cAAc,CAAC;AACrB,MAAI,SAAS,MAAM,IAAI;AACrB,QAAI,MAAM,OAAO;AAAM,kBAAY,KAAK,SAAS,MAAM,MAAM,MAAM,IAAI;AAAA;AAClE,kBAAY,KAAK,SAAS,MAAM,IAAI;AAAA,EAC3C;AACA,SAAO;AACT;AAEA,MAAM,WAAW,CAAC,WAAW;AAC7B,MAAM,OAAO,MAAO;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
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -4,32 +4,26 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
7
|
var __export = (target, all) => {
|
|
9
8
|
for (var name in all)
|
|
10
9
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
10
|
};
|
|
12
|
-
var
|
|
13
|
-
if (
|
|
14
|
-
for (let key of __getOwnPropNames(
|
|
15
|
-
if (!__hasOwnProp.call(
|
|
16
|
-
__defProp(
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
16
|
}
|
|
18
|
-
return
|
|
17
|
+
return to;
|
|
19
18
|
};
|
|
20
|
-
var __toESM = (
|
|
21
|
-
|
|
22
|
-
};
|
|
23
|
-
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
-
return (module2, temp) => {
|
|
25
|
-
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
-
};
|
|
27
|
-
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
|
20
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
21
|
var convertPropsToLayoutModifiers_exports = {};
|
|
29
22
|
__export(convertPropsToLayoutModifiers_exports, {
|
|
30
23
|
default: () => convertPropsToLayoutModifiers_default,
|
|
31
24
|
pipe: () => pipe
|
|
32
25
|
});
|
|
26
|
+
module.exports = __toCommonJS(convertPropsToLayoutModifiers_exports);
|
|
33
27
|
var React = __toESM(require("react"));
|
|
34
28
|
const basicAction = ({
|
|
35
29
|
id,
|
|
@@ -61,5 +55,4 @@ const pipe = () => ({
|
|
|
61
55
|
}
|
|
62
56
|
});
|
|
63
57
|
var convertPropsToLayoutModifiers_default = pipe;
|
|
64
|
-
module.exports = __toCommonJS(convertPropsToLayoutModifiers_exports);
|
|
65
58
|
//# sourceMappingURL=convertPropsToLayoutModifiers.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/convertPropsToLayoutModifiers.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
4
|
"sourcesContent": ["const basicAction = ({\n id,\n buttonType = 'default',\n fluidWidth = false,\n fluidHeight = false,\n}) => {\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": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,MAAM,cAAc,CAAC;AAAA,EACnB;AAAA,EACA,aAAa;AAAA,EACb,aAAa;AAAA,EACb,cAAc;AAAA,MACV;AACJ,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,MAAO;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
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -4,32 +4,26 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
7
|
var __export = (target, all) => {
|
|
9
8
|
for (var name in all)
|
|
10
9
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
10
|
};
|
|
12
|
-
var
|
|
13
|
-
if (
|
|
14
|
-
for (let key of __getOwnPropNames(
|
|
15
|
-
if (!__hasOwnProp.call(
|
|
16
|
-
__defProp(
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
16
|
}
|
|
18
|
-
return
|
|
17
|
+
return to;
|
|
19
18
|
};
|
|
20
|
-
var __toESM = (
|
|
21
|
-
|
|
22
|
-
};
|
|
23
|
-
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
-
return (module2, temp) => {
|
|
25
|
-
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
-
};
|
|
27
|
-
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
|
20
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
21
|
var convertPropsToSizeModifiers_exports = {};
|
|
29
22
|
__export(convertPropsToSizeModifiers_exports, {
|
|
30
23
|
default: () => convertPropsToSizeModifiers_default,
|
|
31
24
|
pipe: () => pipe
|
|
32
25
|
});
|
|
26
|
+
module.exports = __toCommonJS(convertPropsToSizeModifiers_exports);
|
|
33
27
|
var React = __toESM(require("react"));
|
|
34
28
|
const basicAction = ({
|
|
35
29
|
size = null,
|
|
@@ -73,5 +67,4 @@ const pipe = () => ({
|
|
|
73
67
|
}
|
|
74
68
|
});
|
|
75
69
|
var convertPropsToSizeModifiers_default = pipe;
|
|
76
|
-
module.exports = __toCommonJS(convertPropsToSizeModifiers_exports);
|
|
77
70
|
//# sourceMappingURL=convertPropsToSizeModifiers.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/convertPropsToSizeModifiers.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
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": "
|
|
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;AAAA,MACT;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,MAAO;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
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -4,32 +4,26 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
7
|
var __export = (target, all) => {
|
|
9
8
|
for (var name in all)
|
|
10
9
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
10
|
};
|
|
12
|
-
var
|
|
13
|
-
if (
|
|
14
|
-
for (let key of __getOwnPropNames(
|
|
15
|
-
if (!__hasOwnProp.call(
|
|
16
|
-
__defProp(
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
16
|
}
|
|
18
|
-
return
|
|
17
|
+
return to;
|
|
19
18
|
};
|
|
20
|
-
var __toESM = (
|
|
21
|
-
|
|
22
|
-
};
|
|
23
|
-
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
-
return (module2, temp) => {
|
|
25
|
-
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
-
};
|
|
27
|
-
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
|
20
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
21
|
var convertPropsToTextModifiers_exports = {};
|
|
29
22
|
__export(convertPropsToTextModifiers_exports, {
|
|
30
23
|
default: () => convertPropsToTextModifiers_default,
|
|
31
24
|
pipe: () => pipe
|
|
32
25
|
});
|
|
26
|
+
module.exports = __toCommonJS(convertPropsToTextModifiers_exports);
|
|
33
27
|
var React = __toESM(require("react"));
|
|
34
28
|
const basicAction = ({ textEllipsis, textAlignment, wordBreak }) => {
|
|
35
29
|
const cssModifier = [];
|
|
@@ -54,5 +48,4 @@ const pipe = () => ({
|
|
|
54
48
|
}
|
|
55
49
|
});
|
|
56
50
|
var convertPropsToTextModifiers_default = pipe;
|
|
57
|
-
module.exports = __toCommonJS(convertPropsToTextModifiers_exports);
|
|
58
51
|
//# sourceMappingURL=convertPropsToTextModifiers.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/convertPropsToTextModifiers.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
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": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,MAAM,cAAc,CAAC,EAAE,cAAc,eAAe,gBAAgB;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,MAAO;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
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -4,34 +4,27 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
7
|
var __export = (target, all) => {
|
|
9
8
|
for (var name in all)
|
|
10
9
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
10
|
};
|
|
12
|
-
var
|
|
13
|
-
if (
|
|
14
|
-
for (let key of __getOwnPropNames(
|
|
15
|
-
if (!__hasOwnProp.call(
|
|
16
|
-
__defProp(
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
16
|
}
|
|
18
|
-
return
|
|
17
|
+
return to;
|
|
19
18
|
};
|
|
20
|
-
var __toESM = (
|
|
21
|
-
|
|
22
|
-
};
|
|
23
|
-
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
-
return (module2, temp) => {
|
|
25
|
-
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
-
};
|
|
27
|
-
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
|
20
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
21
|
var dimsum_config_exports = {};
|
|
29
22
|
__export(dimsum_config_exports, {
|
|
30
23
|
dimsumConfig: () => dimsumConfig
|
|
31
24
|
});
|
|
25
|
+
module.exports = __toCommonJS(dimsum_config_exports);
|
|
32
26
|
var React = __toESM(require("react"));
|
|
33
27
|
const dimsumConfig = {
|
|
34
28
|
classNamePrefix: "em-ds"
|
|
35
29
|
};
|
|
36
|
-
module.exports = __toCommonJS(dimsum_config_exports);
|
|
37
30
|
//# sourceMappingURL=dimsum.config.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/dimsum.config.ts", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
4
|
"sourcesContent": ["const dimsumConfig = {\n classNamePrefix: 'em-ds',\n};\n\nexport { dimsumConfig };\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,MAAM,eAAe;AAAA,EACnB,iBAAiB;AACnB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -4,35 +4,28 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
7
|
var __export = (target, all) => {
|
|
9
8
|
for (var name in all)
|
|
10
9
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
10
|
};
|
|
12
|
-
var
|
|
13
|
-
if (
|
|
14
|
-
for (let key of __getOwnPropNames(
|
|
15
|
-
if (!__hasOwnProp.call(
|
|
16
|
-
__defProp(
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
16
|
}
|
|
18
|
-
return
|
|
17
|
+
return to;
|
|
19
18
|
};
|
|
20
|
-
var __toESM = (
|
|
21
|
-
|
|
22
|
-
};
|
|
23
|
-
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
-
return (module2, temp) => {
|
|
25
|
-
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
-
};
|
|
27
|
-
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
|
20
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
21
|
var src_exports = {};
|
|
29
22
|
__export(src_exports, {
|
|
30
23
|
aggregatedClasses: () => import_aggregatedClasses.default,
|
|
31
24
|
convertPropToCssClassName: () => import_classNameManager.default,
|
|
32
25
|
cssPrefix: () => import_classNameManager.cssPrefix
|
|
33
26
|
});
|
|
27
|
+
module.exports = __toCommonJS(src_exports);
|
|
34
28
|
var React = __toESM(require("react"));
|
|
35
29
|
var import_classNameManager = __toESM(require("./classNameManager"));
|
|
36
30
|
var import_aggregatedClasses = __toESM(require("./aggregatedClasses"));
|
|
37
|
-
module.exports = __toCommonJS(src_exports);
|
|
38
31
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
4
|
"sourcesContent": ["export { default as convertPropToCssClassName, cssPrefix } from './classNameManager';\nexport { default as aggregatedClasses } from './aggregatedClasses';\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,8BAAgE;AAChE,+BAA6C;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -18,27 +18,20 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
}
|
|
19
19
|
return a;
|
|
20
20
|
};
|
|
21
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
22
21
|
var __export = (target, all) => {
|
|
23
22
|
for (var name in all)
|
|
24
23
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
25
24
|
};
|
|
26
|
-
var
|
|
27
|
-
if (
|
|
28
|
-
for (let key of __getOwnPropNames(
|
|
29
|
-
if (!__hasOwnProp.call(
|
|
30
|
-
__defProp(
|
|
25
|
+
var __copyProps = (to, from, except, desc) => {
|
|
26
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
27
|
+
for (let key of __getOwnPropNames(from))
|
|
28
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
29
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
31
30
|
}
|
|
32
|
-
return
|
|
31
|
+
return to;
|
|
33
32
|
};
|
|
34
|
-
var __toESM = (
|
|
35
|
-
|
|
36
|
-
};
|
|
37
|
-
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
38
|
-
return (module2, temp) => {
|
|
39
|
-
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
40
|
-
};
|
|
41
|
-
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
33
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
|
34
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
42
35
|
var validateNativeProps_exports = {};
|
|
43
36
|
__export(validateNativeProps_exports, {
|
|
44
37
|
isAriaAttribute: () => isAriaAttribute,
|
|
@@ -47,6 +40,7 @@ __export(validateNativeProps_exports, {
|
|
|
47
40
|
isValidNativeAttribute: () => isValidNativeAttribute,
|
|
48
41
|
whiteList: () => whiteList
|
|
49
42
|
});
|
|
43
|
+
module.exports = __toCommonJS(validateNativeProps_exports);
|
|
50
44
|
var React = __toESM(require("react"));
|
|
51
45
|
const attributeWhiteList = {
|
|
52
46
|
accept: true,
|
|
@@ -434,5 +428,4 @@ const nativeHTMLElements = {
|
|
|
434
428
|
wbr: true
|
|
435
429
|
};
|
|
436
430
|
const isNativeHTMLElement = (type) => nativeHTMLElements[type] === true;
|
|
437
|
-
module.exports = __toCommonJS(validateNativeProps_exports);
|
|
438
431
|
//# sourceMappingURL=validateNativeProps.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/validateNativeProps.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
4
|
"sourcesContent": ["/* eslint-disable max-lines */\nconst attributeWhiteList = {\n accept: true,\n acceptCharset: true,\n accessKey: true,\n action: true,\n allowFullScreen: true,\n allowTransparency: true,\n alt: true,\n async: true,\n autoComplete: true,\n autoFocus: true,\n autoPlay: true,\n capture: true,\n cellPadding: true,\n cellSpacing: true,\n charSet: true,\n challenge: true,\n checked: true,\n classID: true,\n className: true,\n cols: true,\n colSpan: true,\n content: true,\n contentEditable: true,\n contextMenu: true,\n controls: true,\n coords: true,\n crossOrigin: true,\n data: true,\n dateTime: true,\n defer: true,\n dir: true,\n disabled: true,\n download: true,\n draggable: true,\n encType: true,\n form: true,\n formAction: true,\n formEncType: true,\n formMethod: true,\n formNoValidate: true,\n formTarget: true,\n frameBorder: true,\n headers: true,\n height: true,\n hidden: true,\n high: true,\n href: true,\n hrefLang: true,\n htmlFor: true,\n httpEquiv: true,\n icon: true,\n id: true,\n inputMode: true,\n keyParams: true,\n keyType: true,\n label: true,\n lang: true,\n list: true,\n loop: true,\n low: true,\n manifest: true,\n marginHeight: true,\n marginWidth: true,\n max: true,\n maxLength: true,\n media: true,\n mediaGroup: true,\n method: true,\n min: true,\n minLength: true,\n multiple: true,\n muted: true,\n name: true,\n noValidate: true,\n open: true,\n optimum: true,\n pattern: true,\n placeholder: true,\n poster: true,\n preload: true,\n radioGroup: true,\n readOnly: true,\n rel: true,\n required: true,\n role: true,\n rows: true,\n rowSpan: true,\n sandbox: true,\n scope: true,\n scoped: true,\n scrolling: true,\n seamless: true,\n selected: true,\n shape: true,\n size: true,\n sizes: true,\n span: true,\n spellCheck: true,\n src: true,\n srcDoc: true,\n srcSet: true,\n start: true,\n step: true,\n style: true,\n summary: true,\n tabIndex: true,\n target: true,\n title: true,\n type: true,\n useMap: true,\n value: true,\n width: true,\n wmode: true,\n wrap: true,\n};\n\nconst svgAttributesWhiteList = {\n clipPath: true,\n cx: true,\n cy: true,\n d: true,\n dx: true,\n dy: true,\n fill: true,\n fillOpacity: true,\n fontFamily: true,\n fontSize: true,\n fx: true,\n fy: true,\n gradientTransform: true,\n gradientUnits: true,\n markerEnd: true,\n markerMid: true,\n markerStart: true,\n offset: true,\n opacity: true,\n patternContentUnits: true,\n patternUnits: true,\n points: true,\n preserveAspectRatio: true,\n r: true,\n rx: true,\n ry: true,\n spreadMethod: true,\n stopColor: true,\n stopOpacity: true,\n stroke: true,\n strokeDasharray: true,\n strokeLinecap: true,\n strokeOpacity: true,\n strokeWidth: true,\n textAnchor: true,\n transform: true,\n version: true,\n viewBox: true,\n x1: true,\n x2: true,\n x: true,\n xlinkActuate: true,\n xlinkArcrole: true,\n xlinkHref: true,\n xlinkRole: true,\n xlinkShow: true,\n xlinkTitle: true,\n xlinkType: true,\n xmlBase: true,\n xmlLang: true,\n xmlSpace: true,\n y1: true,\n y2: true,\n y: true,\n};\n\nconst otherWhiteList = {\n autoCapitalize: true,\n autoCorrect: true,\n property: true,\n itemProp: true,\n itemScope: true,\n itemType: true,\n itemRef: true,\n itemID: true,\n unselectable: true,\n results: true,\n autoSave: true,\n};\n\nconst eventsWhiteList = {\n onCopy: true,\n onCut: true,\n onPaste: true,\n onCompositionEnd: true,\n onCompositionStart: true,\n onCompositionUpdate: true,\n onKeyDown: true,\n onKeyPress: true,\n onKeyUp: true,\n onFocus: true,\n onBlur: true,\n onChange: true,\n onInput: true,\n onInvalid: true,\n onReset: true,\n onSubmit: true,\n onError: true,\n onLoad: true,\n onClick: true,\n onContextMenu: true,\n onDoubleClick: true,\n onDrag: true,\n onDragEnd: true,\n onDragEnter: true,\n onDragExit: true,\n onDragLeave: true,\n onDragOver: true,\n onDragStart: true,\n onDrop: true,\n onMouseDown: true,\n onMouseEnter: true,\n onMouseLeave: true,\n onMouseMove: true,\n onMouseOut: true,\n onMouseOver: true,\n onMouseUp: true,\n onPointerDown: true,\n onPointerMove: true,\n onPointerUp: true,\n onPointerCancel: true,\n onGotPointerCapture: true,\n onLostPointerCapture: true,\n onPointerEnter: true,\n onPointerLeave: true,\n onPointerOver: true,\n onPointerOut: true,\n onSelect: true,\n onTouchCancel: true,\n onTouchEnd: true,\n onTouchMove: true,\n onTouchStart: true,\n onScroll: true,\n onWheel: true,\n onAbort: true,\n onCanPlay: true,\n onCanPlayThrough: true,\n onDurationChange: true,\n onEmptied: true,\n onEncrypted: true,\n onEnded: true,\n onLoadedData: true,\n onLoadedMetadata: true,\n onLoadStart: true,\n onPause: true,\n onPlay: true,\n onPlaying: true,\n onProgress: true,\n onRateChange: true,\n onSeeked: true,\n onSeeking: true,\n onStalled: true,\n onSuspend: true,\n onTimeUpdate: true,\n onVolumeChange: true,\n onWaiting: true,\n onAnimationStart: true,\n onAnimationEnd: true,\n onAnimationIteration: true,\n onTransitionEnd: true,\n onToggle: true,\n};\n\nexport const whiteList = {\n ...attributeWhiteList,\n ...svgAttributesWhiteList,\n ...otherWhiteList,\n ...eventsWhiteList,\n};\n\nexport const isDataAttribute = (attribute) =>\n attribute.substring(0, 5) === 'data-';\nexport const isAriaAttribute = (attribute) =>\n attribute.substring(0, 6) === 'aria-';\n\nexport const isValidNativeAttribute = (attribute) =>\n whiteList[attribute] === true ||\n isDataAttribute(attribute) ||\n isAriaAttribute(attribute) ||\n attribute.toLowerCase() === attribute;\n\nconst nativeHTMLElements = {\n a: true,\n abbr: true,\n address: true,\n area: true,\n article: true,\n aside: true,\n audio: true,\n b: true,\n base: true,\n bdi: true,\n bdo: true,\n big: true,\n blockquote: true,\n body: true,\n br: true,\n button: true,\n canvas: true,\n caption: true,\n cite: true,\n code: true,\n col: true,\n colgroup: true,\n data: true,\n datalist: true,\n dd: true,\n del: true,\n details: true,\n dfn: true,\n dialog: true,\n div: true,\n dl: true,\n dt: true,\n em: true,\n embed: true,\n fieldset: true,\n figcaption: true,\n figure: true,\n footer: true,\n form: true,\n h1: true,\n h2: true,\n h3: true,\n h4: true,\n h5: true,\n h6: true,\n head: true,\n header: true,\n hr: true,\n html: true,\n i: true,\n iframe: true,\n img: true,\n input: true,\n ins: true,\n kbd: true,\n keygen: true,\n label: true,\n legend: true,\n li: true,\n link: true,\n main: true,\n map: true,\n mark: true,\n menu: true,\n menuitem: true,\n meta: true,\n meter: true,\n nav: true,\n noscript: true,\n object: true,\n ol: true,\n optgroup: true,\n option: true,\n output: true,\n p: true,\n param: true,\n picture: true,\n pre: true,\n progress: true,\n q: true,\n rp: true,\n rt: true,\n ruby: true,\n s: true,\n samp: true,\n script: true,\n section: true,\n select: true,\n small: true,\n source: true,\n span: true,\n strong: true,\n style: true,\n sub: true,\n summary: true,\n sup: true,\n table: true,\n tbody: true,\n td: true,\n textarea: true,\n tfoot: true,\n th: true,\n thead: true,\n time: true,\n title: true,\n tr: true,\n track: true,\n u: true,\n ul: true,\n var: true,\n video: true,\n wbr: true,\n};\n\nexport const isNativeHTMLElement = (type) => nativeHTMLElements[type] === true;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,MAAM,qBAAqB;AAAA,EACzB,QAAQ;AAAA,EACR,eAAe;AAAA,EACf,WAAW;AAAA,EACX,QAAQ;AAAA,EACR,iBAAiB;AAAA,EACjB,mBAAmB;AAAA,EACnB,KAAK;AAAA,EACL,OAAO;AAAA,EACP,cAAc;AAAA,EACd,WAAW;AAAA,EACX,UAAU;AAAA,EACV,SAAS;AAAA,EACT,aAAa;AAAA,EACb,aAAa;AAAA,EACb,SAAS;AAAA,EACT,WAAW;AAAA,EACX,SAAS;AAAA,EACT,SAAS;AAAA,EACT,WAAW;AAAA,EACX,MAAM;AAAA,EACN,SAAS;AAAA,EACT,SAAS;AAAA,EACT,iBAAiB;AAAA,EACjB,aAAa;AAAA,EACb,UAAU;AAAA,EACV,QAAQ;AAAA,EACR,aAAa;AAAA,EACb,MAAM;AAAA,EACN,UAAU;AAAA,EACV,OAAO;AAAA,EACP,KAAK;AAAA,EACL,UAAU;AAAA,EACV,UAAU;AAAA,EACV,WAAW;AAAA,EAC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AA,EACP,GAAG;AAAA,EACH,IAAI;AAAA,EACJ,KAAK;AAAA,EACL,OAAO;AAAA,EACP,KAAK;AACP;AAEO,MAAM,sBAAsB,CAAC,SAAS,mBAAmB,UAAU;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/aggregatedClasses.tsx"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-unsafe-assignment */\n/* eslint-disable prettier/prettier */\n/* eslint-disable max-params */\n/* eslint-disable react/prop-types */\nimport React from 'react';\nimport cx from 'obj-str';\nimport { convertPropToCssClassName } from './classNameManager';\nimport { dimsumConfig } from './dimsum.config';\nimport {\n isValidNativeAttribute,\n isNativeHTMLElement,\n} from './validateNativeProps';\n\nexport const cssPrefix = dimsumConfig.classNamePrefix;\n\ntype AggregatedClassesT<T = unknown> = (\n type: any,\n props?: any,\n) => (\n block: string,\n element?: string | null,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n additionalModifiers?: { [key: string]: unknown } | ((arg: any) => { [key: string]: unknown }),\n options?: { [key: string]: unknown },\n) => React.ForwardRefExoticComponent<React.RefAttributes<T>>;\n\nconst generateClassNameWithModifier = (block, element, modifier) =>\n `${cssPrefix}-${block}${element ? `__${element}` : ''}--${modifier}`;\n\nconst appendBlockAndPrefixToObj = (obj, block, element) =>\n obj\n ? Object.keys(obj).reduce(\n (acc, key) => ({\n ...acc,\n [`${generateClassNameWithModifier(block, element, key)}`]: obj[key],\n }),\n {},\n )\n : [];\n\nconst aggregatedClasses: AggregatedClassesT=\n (type, props) =>\n (block, element, additionalModifiers, options = {}) =>\n React.forwardRef(({ innerRef, children, classProps, useComponent, className, as, ...rest }, ref) => {\n // get the additional classNames either from a function or an object\n let otherModifiers = appendBlockAndPrefixToObj(additionalModifiers, block, element);\n if (typeof additionalModifiers === 'function')\n otherModifiers = appendBlockAndPrefixToObj(\n additionalModifiers({ ...rest, ...classProps, className }),\n block,\n element,\n );\n\n const otherModifiersStr = cx(otherModifiers);\n const { prefix, propsToRemoveFromFinalElement = [] } = options;\n const { cssClassName: classNames } = convertPropToCssClassName(\n block,\n null,\n { ...classProps },\n { prefix, element },\n );\n const cleanedPropsPassedDown = { ...props, ...rest };\n propsToRemoveFromFinalElement.forEach((propKey) => {\n delete cleanedPropsPassedDown[propKey];\n });\n\n if (isNativeHTMLElement(block)) {\n Object.keys(cleanedPropsPassedDown).forEach((key) => {\n if (!isValidNativeAttribute(key)) delete cleanedPropsPassedDown[key];\n });\n }\n\n return React.createElement(\n as || type,\n {\n ref: innerRef || ref,\n className: [classNames, otherModifiersStr, className].join(' '),\n ...cleanedPropsPassedDown,\n },\n children,\n );\n });\n\nexport default aggregatedClasses;\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;ACIA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAKO,MAAM,YAAY,aAAa;AAatC,MAAM,gCAAgC,CAAC,OAAO,SAAS,aACrD,GAAG,aAAa,QAAQ,UAAU,KAAK,YAAY,OAAO;AAE5D,MAAM,4BAA4B,CAAC,KAAK,OAAO,YAC7C,MACI,OAAO,KAAK,
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;ACIA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAKO,MAAM,YAAY,aAAa;AAatC,MAAM,gCAAgC,CAAC,OAAO,SAAS,aACrD,GAAG,aAAa,QAAQ,UAAU,KAAK,YAAY,OAAO;AAE5D,MAAM,4BAA4B,CAAC,KAAK,OAAO,YAC7C,MACI,OAAO,KAAK,GAAG,EAAE,OACjB,CAAC,KAAK,QAAS,iCACV,MADU;AAAA,GAEZ,GAAG,8BAA8B,OAAO,SAAS,GAAG,MAAM,IAAI;AACjE,IACA,CAAC,CACH,IACE,CAAC;AAEP,MAAM,oBACJ,CAAC,MAAM,UACL,CAAC,OAAO,SAAS,qBAAqB,UAAU,CAAC,MAC/C,OAAM,WAAW,CAAC,IAA0E,QAAQ;AAAlF,eAAE,YAAU,UAAU,YAAY,cAAc,WAAW,OAA3D,IAAkE,iBAAlE,IAAkE,CAAhE,YAAU,YAAU,cAAY,gBAAc,aAAW;AAE3E,MAAI,iBAAiB,0BAA0B,qBAAqB,OAAO,OAAO;AAClF,MAAI,OAAO,wBAAwB;AACjC,qBAAiB,0BACf,oBAAoB,gDAAK,OAAS,aAAd,EAA0B,UAAU,EAAC,GACzD,OACA,OACF;AAEF,QAAM,oBAAoB,GAAG,cAAc;AAC3C,QAAM,EAAE,QAAQ,gCAAgC,CAAC,MAAM;AACvD,QAAM,EAAE,cAAc,eAAe,0BACnC,OACA,MACA,mBAAK,aACL,EAAE,QAAQ,QAAQ,CACpB;AACA,QAAM,yBAAyB,kCAAK,QAAU;AAC9C,gCAA8B,QAAQ,CAAC,YAAY;AACjD,WAAO,uBAAuB;AAAA,EAChC,CAAC;AAED,MAAI,oBAAoB,KAAK,GAAG;AAC9B,WAAO,KAAK,sBAAsB,EAAE,QAAQ,CAAC,QAAQ;AACnD,UAAI,CAAC,uBAAuB,GAAG;AAAG,eAAO,uBAAuB;AAAA,IAClE,CAAC;AAAA,EACH;AAEA,SAAO,OAAM,cACX,MAAM,MACN;AAAA,IACE,KAAK,YAAY;AAAA,IACjB,WAAW,CAAC,YAAY,mBAAmB,SAAS,EAAE,KAAK,GAAG;AAAA,KAC3D,yBAEL,QACF;AACF,CAAC;AAEP,IAAO,4BAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/classNameManager.tsx"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable max-params */\nimport { isEmpty } from '@elliemae/ds-utilities/utils';\nimport { dimsumConfig } from './dimsum.config';\nimport { pipe as formPipe } from './converPropsToFormModifiers';\nimport { pipe as layoutModifiers } from './convertPropsToLayoutModifiers';\nimport { pipe as feedBackModifiers } from './convertPropToFeedBackModifiers';\nimport { pipe as sizeModifiers } from './convertPropsToSizeModifiers';\nimport { pipe as textModifiers } from './convertPropsToTextModifiers';\nimport { pipe as colorModifiers } from './convertPropsToColorModifiers';\n\nexport const cssPrefix = `${dimsumConfig.classNamePrefix}-`;\n\nconst executePipelines = (props) => {\n const form = formPipe().execute(props);\n const layout = layoutModifiers().execute(props);\n const feedback = feedBackModifiers().execute(props);\n const size = sizeModifiers().execute(props);\n const text = textModifiers().execute(props);\n const color = colorModifiers().execute(props);\n return [...form, ...layout, ...feedback, ...size, ...text, ...color];\n};\n\n/**\n * Docs: http://getbem.com/naming/\n * blockName\n * cssClassNameModifier: Main modifier\n * props { hasError, hasWarning, hasSuccess, readOnly, disabled}\n *\n * @param blockName\n * @param cssClassNameModifier\n * @param props\n * @param options\n */\nconst cssPipeline: (\n blockName?: string,\n cssClassNameModifier?: string,\n props?: { [key: string]: any },\n options?: { [key: string]: any },\n) => {\n blockName: string;\n cssPrefix: string;\n prefixBlockName: string;\n cssClassName: string;\n mainModifier(modifier: any): string;\n classNameBlock(elementName: any, usePrefix?: boolean): string;\n classNameBlockModifier(modifierName: any, elementBlockName?: string): string;\n classNameElement(elementName: any, elementBlockName?: string): string;\n classNameModifier(modifierName: any, elementName?: string): string;\n} = (blockName = 'block', cssClassNameModifier = '', props = {}, options = {}) => {\n const { prefix, element } = options;\n\n const prefixBlockName = `${prefix || cssPrefix}${blockName}${element ? `__${element}` : ''}`;\n\n // PipeLine\n const pipes = !isEmpty(props) ? executePipelines(props) : [];\n\n const basePipeline = [prefixBlockName, ...pipes];\n\n // specific classname\n const className = cssClassNameModifier\n ? [...basePipeline].join(` ${prefixBlockName}--`).concat(` ${cssClassNameModifier}`)\n : [...basePipeline].join(` ${prefixBlockName}--`);\n\n return {\n blockName,\n cssPrefix,\n prefixBlockName,\n cssClassName: className,\n mainModifier(modifier) {\n return `${className}--${modifier}`;\n },\n classNameBlock(elementName, usePrefix = true) {\n return `${!usePrefix ? blockName : prefixBlockName}-${elementName}`;\n },\n classNameBlockModifier(modifierName, elementBlockName = '') {\n return `${prefixBlockName}-${elementBlockName}--${modifierName}`;\n },\n classNameElement(elementName, elementBlockName = '') {\n return `${prefixBlockName}${elementBlockName ? `-${elementBlockName}` : ''}__${elementName}`;\n },\n classNameModifier(modifierName, elementName = '') {\n return `${prefixBlockName}${elementName ? `__${elementName}` : ''}--${modifierName}`;\n },\n };\n};\n\nexport { cssPipeline as convertPropToCssClassName };\nexport default cssPipeline;\n"],
|
|
5
|
-
"mappings": "AAAA;ACEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEO,MAAM,YAAY,GAAG,aAAa;AAEzC,MAAM,mBAAmB,CAAC,UAAU;AAClC,QAAM,OAAO,
|
|
5
|
+
"mappings": "AAAA;ACEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEO,MAAM,YAAY,GAAG,aAAa;AAEzC,MAAM,mBAAmB,CAAC,UAAU;AAClC,QAAM,OAAO,SAAS,EAAE,QAAQ,KAAK;AACrC,QAAM,SAAS,gBAAgB,EAAE,QAAQ,KAAK;AAC9C,QAAM,WAAW,kBAAkB,EAAE,QAAQ,KAAK;AAClD,QAAM,OAAO,cAAc,EAAE,QAAQ,KAAK;AAC1C,QAAM,OAAO,cAAc,EAAE,QAAQ,KAAK;AAC1C,QAAM,QAAQ,eAAe,EAAE,QAAQ,KAAK;AAC5C,SAAO,CAAC,GAAG,MAAM,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK;AACrE;AAaA,MAAM,cAeF,CAAC,YAAY,SAAS,uBAAuB,IAAI,QAAQ,CAAC,GAAG,UAAU,CAAC,MAAM;AAChF,QAAM,EAAE,QAAQ,YAAY;AAE5B,QAAM,kBAAkB,GAAG,UAAU,YAAY,YAAY,UAAU,KAAK,YAAY;AAGxF,QAAM,QAAQ,CAAC,QAAQ,KAAK,IAAI,iBAAiB,KAAK,IAAI,CAAC;AAE3D,QAAM,eAAe,CAAC,iBAAiB,GAAG,KAAK;AAG/C,QAAM,YAAY,uBACd,CAAC,GAAG,YAAY,EAAE,KAAK,IAAI,mBAAmB,EAAE,OAAO,IAAI,sBAAsB,IACjF,CAAC,GAAG,YAAY,EAAE,KAAK,IAAI,mBAAmB;AAElD,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA,cAAc;AAAA,IACd,aAAa,UAAU;AACrB,aAAO,GAAG,cAAc;AAAA,IAC1B;AAAA,IACA,eAAe,aAAa,YAAY,MAAM;AAC5C,aAAO,GAAG,CAAC,YAAY,YAAY,mBAAmB;AAAA,IACxD;AAAA,IACA,uBAAuB,cAAc,mBAAmB,IAAI;AAC1D,aAAO,GAAG,mBAAmB,qBAAqB;AAAA,IACpD;AAAA,IACA,iBAAiB,aAAa,mBAAmB,IAAI;AACnD,aAAO,GAAG,kBAAkB,mBAAmB,IAAI,qBAAqB,OAAO;AAAA,IACjF;AAAA,IACA,kBAAkB,cAAc,cAAc,IAAI;AAChD,aAAO,GAAG,kBAAkB,cAAc,KAAK,gBAAgB,OAAO;AAAA,IACxE;AAAA,EACF;AACF;AAGA,IAAO,2BAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/converPropsToFormModifiers.tsx"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "const basicAction = ({\n readOnly = false,\n disabled = false,\n checked = false,\n}) => {\n const cssModifier = [];\n // input state modifiers\n if (checked) cssModifier.push('checked');\n if (readOnly) cssModifier.push('readonly');\n if (disabled) cssModifier.push('disabled');\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"],
|
|
5
|
-
"mappings": "AAAA;ACAA,MAAM,cAAc,CAAC;AAAA,EACnB,WAAW;AAAA,EACX,WAAW;AAAA,EACX,UAAU;AAAA,MACN;AACJ,QAAM,cAAc;
|
|
5
|
+
"mappings": "AAAA;ACAA,MAAM,cAAc,CAAC;AAAA,EACnB,WAAW;AAAA,EACX,WAAW;AAAA,EACX,UAAU;AAAA,MACN;AACJ,QAAM,cAAc,CAAC;AAErB,MAAI;AAAS,gBAAY,KAAK,SAAS;AACvC,MAAI;AAAU,gBAAY,KAAK,UAAU;AACzC,MAAI;AAAU,gBAAY,KAAK,UAAU;AACzC,SAAO;AACT;AAEA,MAAM,WAAW,CAAC,WAAW;AAC7B,MAAM,OAAO,MAAO;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,qCAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/convertPropToFeedBackModifiers.tsx"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "const basicAction = ({\n hasError = false,\n hasWarning = false,\n hasSuccess = false,\n modalType,\n}) => {\n const cssModifier = [];\n // valid state modifier\n if (hasError) cssModifier.push('error');\n else if (hasWarning) cssModifier.push('warning');\n else if (hasSuccess) cssModifier.push('success');\n if (modalType) cssModifier.push(`modal-type-${modalType}`);\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"],
|
|
5
|
-
"mappings": "AAAA;ACAA,MAAM,cAAc,CAAC;AAAA,EACnB,WAAW;AAAA,EACX,aAAa;AAAA,EACb,aAAa;AAAA,EACb;AAAA,MACI;AACJ,QAAM,cAAc;
|
|
5
|
+
"mappings": "AAAA;ACAA,MAAM,cAAc,CAAC;AAAA,EACnB,WAAW;AAAA,EACX,aAAa;AAAA,EACb,aAAa;AAAA,EACb;AAAA,MACI;AACJ,QAAM,cAAc,CAAC;AAErB,MAAI;AAAU,gBAAY,KAAK,OAAO;AAAA,WAC7B;AAAY,gBAAY,KAAK,SAAS;AAAA,WACtC;AAAY,gBAAY,KAAK,SAAS;AAC/C,MAAI;AAAW,gBAAY,KAAK,cAAc,WAAW;AACzD,SAAO;AACT;AAEA,MAAM,WAAW,CAAC,WAAW;AAC7B,MAAM,OAAO,MAAO;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,yCAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/convertPropsToColorModifiers.tsx"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "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"],
|
|
5
|
-
"mappings": "AAAA;ACAA,MAAM,cAAc,CAAC,EAAE,QAAQ,WAAW;AACxC,QAAM,cAAc;
|
|
5
|
+
"mappings": "AAAA;ACAA,MAAM,cAAc,CAAC,EAAE,QAAQ,WAAW;AACxC,QAAM,cAAc,CAAC;AACrB,MAAI,SAAS,MAAM,IAAI;AACrB,QAAI,MAAM,OAAO;AAAM,kBAAY,KAAK,SAAS,MAAM,MAAM,MAAM,IAAI;AAAA;AAClE,kBAAY,KAAK,SAAS,MAAM,IAAI;AAAA,EAC3C;AACA,SAAO;AACT;AAEA,MAAM,WAAW,CAAC,WAAW;AAC7B,MAAM,OAAO,MAAO;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
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/convertPropsToLayoutModifiers.tsx"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "const basicAction = ({\n id,\n buttonType = 'default',\n fluidWidth = false,\n fluidHeight = false,\n}) => {\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"],
|
|
5
|
-
"mappings": "AAAA;ACAA,MAAM,cAAc,CAAC;AAAA,EACnB;AAAA,EACA,aAAa;AAAA,EACb,aAAa;AAAA,EACb,cAAc;AAAA,MACV;AACJ,QAAM,cAAc;
|
|
5
|
+
"mappings": "AAAA;ACAA,MAAM,cAAc,CAAC;AAAA,EACnB;AAAA,EACA,aAAa;AAAA,EACb,aAAa;AAAA,EACb,cAAc;AAAA,MACV;AACJ,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,MAAO;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
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/convertPropsToSizeModifiers.tsx"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "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"],
|
|
5
|
-
"mappings": "AAAA;ACAA,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;AAAA,MACT;AACJ,QAAM,cAAc;
|
|
5
|
+
"mappings": "AAAA;ACAA,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;AAAA,MACT;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,MAAO;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
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/convertPropsToTextModifiers.tsx"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "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"],
|
|
5
|
-
"mappings": "AAAA;ACAA,MAAM,cAAc,CAAC,EAAE,cAAc,eAAe,gBAAgB;AAClE,QAAM,cAAc;
|
|
5
|
+
"mappings": "AAAA;ACAA,MAAM,cAAc,CAAC,EAAE,cAAc,eAAe,gBAAgB;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,MAAO;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
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/dimsum.config.ts"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "const dimsumConfig = {\n classNamePrefix: 'em-ds',\n};\n\nexport { dimsumConfig };\n"],
|
|
5
|
-
"mappings": "AAAA;ACAA,MAAM,eAAe;AAAA,EACnB,iBAAiB;
|
|
5
|
+
"mappings": "AAAA;ACAA,MAAM,eAAe;AAAA,EACnB,iBAAiB;AACnB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/validateNativeProps.tsx"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-lines */\nconst attributeWhiteList = {\n accept: true,\n acceptCharset: true,\n accessKey: true,\n action: true,\n allowFullScreen: true,\n allowTransparency: true,\n alt: true,\n async: true,\n autoComplete: true,\n autoFocus: true,\n autoPlay: true,\n capture: true,\n cellPadding: true,\n cellSpacing: true,\n charSet: true,\n challenge: true,\n checked: true,\n classID: true,\n className: true,\n cols: true,\n colSpan: true,\n content: true,\n contentEditable: true,\n contextMenu: true,\n controls: true,\n coords: true,\n crossOrigin: true,\n data: true,\n dateTime: true,\n defer: true,\n dir: true,\n disabled: true,\n download: true,\n draggable: true,\n encType: true,\n form: true,\n formAction: true,\n formEncType: true,\n formMethod: true,\n formNoValidate: true,\n formTarget: true,\n frameBorder: true,\n headers: true,\n height: true,\n hidden: true,\n high: true,\n href: true,\n hrefLang: true,\n htmlFor: true,\n httpEquiv: true,\n icon: true,\n id: true,\n inputMode: true,\n keyParams: true,\n keyType: true,\n label: true,\n lang: true,\n list: true,\n loop: true,\n low: true,\n manifest: true,\n marginHeight: true,\n marginWidth: true,\n max: true,\n maxLength: true,\n media: true,\n mediaGroup: true,\n method: true,\n min: true,\n minLength: true,\n multiple: true,\n muted: true,\n name: true,\n noValidate: true,\n open: true,\n optimum: true,\n pattern: true,\n placeholder: true,\n poster: true,\n preload: true,\n radioGroup: true,\n readOnly: true,\n rel: true,\n required: true,\n role: true,\n rows: true,\n rowSpan: true,\n sandbox: true,\n scope: true,\n scoped: true,\n scrolling: true,\n seamless: true,\n selected: true,\n shape: true,\n size: true,\n sizes: true,\n span: true,\n spellCheck: true,\n src: true,\n srcDoc: true,\n srcSet: true,\n start: true,\n step: true,\n style: true,\n summary: true,\n tabIndex: true,\n target: true,\n title: true,\n type: true,\n useMap: true,\n value: true,\n width: true,\n wmode: true,\n wrap: true,\n};\n\nconst svgAttributesWhiteList = {\n clipPath: true,\n cx: true,\n cy: true,\n d: true,\n dx: true,\n dy: true,\n fill: true,\n fillOpacity: true,\n fontFamily: true,\n fontSize: true,\n fx: true,\n fy: true,\n gradientTransform: true,\n gradientUnits: true,\n markerEnd: true,\n markerMid: true,\n markerStart: true,\n offset: true,\n opacity: true,\n patternContentUnits: true,\n patternUnits: true,\n points: true,\n preserveAspectRatio: true,\n r: true,\n rx: true,\n ry: true,\n spreadMethod: true,\n stopColor: true,\n stopOpacity: true,\n stroke: true,\n strokeDasharray: true,\n strokeLinecap: true,\n strokeOpacity: true,\n strokeWidth: true,\n textAnchor: true,\n transform: true,\n version: true,\n viewBox: true,\n x1: true,\n x2: true,\n x: true,\n xlinkActuate: true,\n xlinkArcrole: true,\n xlinkHref: true,\n xlinkRole: true,\n xlinkShow: true,\n xlinkTitle: true,\n xlinkType: true,\n xmlBase: true,\n xmlLang: true,\n xmlSpace: true,\n y1: true,\n y2: true,\n y: true,\n};\n\nconst otherWhiteList = {\n autoCapitalize: true,\n autoCorrect: true,\n property: true,\n itemProp: true,\n itemScope: true,\n itemType: true,\n itemRef: true,\n itemID: true,\n unselectable: true,\n results: true,\n autoSave: true,\n};\n\nconst eventsWhiteList = {\n onCopy: true,\n onCut: true,\n onPaste: true,\n onCompositionEnd: true,\n onCompositionStart: true,\n onCompositionUpdate: true,\n onKeyDown: true,\n onKeyPress: true,\n onKeyUp: true,\n onFocus: true,\n onBlur: true,\n onChange: true,\n onInput: true,\n onInvalid: true,\n onReset: true,\n onSubmit: true,\n onError: true,\n onLoad: true,\n onClick: true,\n onContextMenu: true,\n onDoubleClick: true,\n onDrag: true,\n onDragEnd: true,\n onDragEnter: true,\n onDragExit: true,\n onDragLeave: true,\n onDragOver: true,\n onDragStart: true,\n onDrop: true,\n onMouseDown: true,\n onMouseEnter: true,\n onMouseLeave: true,\n onMouseMove: true,\n onMouseOut: true,\n onMouseOver: true,\n onMouseUp: true,\n onPointerDown: true,\n onPointerMove: true,\n onPointerUp: true,\n onPointerCancel: true,\n onGotPointerCapture: true,\n onLostPointerCapture: true,\n onPointerEnter: true,\n onPointerLeave: true,\n onPointerOver: true,\n onPointerOut: true,\n onSelect: true,\n onTouchCancel: true,\n onTouchEnd: true,\n onTouchMove: true,\n onTouchStart: true,\n onScroll: true,\n onWheel: true,\n onAbort: true,\n onCanPlay: true,\n onCanPlayThrough: true,\n onDurationChange: true,\n onEmptied: true,\n onEncrypted: true,\n onEnded: true,\n onLoadedData: true,\n onLoadedMetadata: true,\n onLoadStart: true,\n onPause: true,\n onPlay: true,\n onPlaying: true,\n onProgress: true,\n onRateChange: true,\n onSeeked: true,\n onSeeking: true,\n onStalled: true,\n onSuspend: true,\n onTimeUpdate: true,\n onVolumeChange: true,\n onWaiting: true,\n onAnimationStart: true,\n onAnimationEnd: true,\n onAnimationIteration: true,\n onTransitionEnd: true,\n onToggle: true,\n};\n\nexport const whiteList = {\n ...attributeWhiteList,\n ...svgAttributesWhiteList,\n ...otherWhiteList,\n ...eventsWhiteList,\n};\n\nexport const isDataAttribute = (attribute) =>\n attribute.substring(0, 5) === 'data-';\nexport const isAriaAttribute = (attribute) =>\n attribute.substring(0, 6) === 'aria-';\n\nexport const isValidNativeAttribute = (attribute) =>\n whiteList[attribute] === true ||\n isDataAttribute(attribute) ||\n isAriaAttribute(attribute) ||\n attribute.toLowerCase() === attribute;\n\nconst nativeHTMLElements = {\n a: true,\n abbr: true,\n address: true,\n area: true,\n article: true,\n aside: true,\n audio: true,\n b: true,\n base: true,\n bdi: true,\n bdo: true,\n big: true,\n blockquote: true,\n body: true,\n br: true,\n button: true,\n canvas: true,\n caption: true,\n cite: true,\n code: true,\n col: true,\n colgroup: true,\n data: true,\n datalist: true,\n dd: true,\n del: true,\n details: true,\n dfn: true,\n dialog: true,\n div: true,\n dl: true,\n dt: true,\n em: true,\n embed: true,\n fieldset: true,\n figcaption: true,\n figure: true,\n footer: true,\n form: true,\n h1: true,\n h2: true,\n h3: true,\n h4: true,\n h5: true,\n h6: true,\n head: true,\n header: true,\n hr: true,\n html: true,\n i: true,\n iframe: true,\n img: true,\n input: true,\n ins: true,\n kbd: true,\n keygen: true,\n label: true,\n legend: true,\n li: true,\n link: true,\n main: true,\n map: true,\n mark: true,\n menu: true,\n menuitem: true,\n meta: true,\n meter: true,\n nav: true,\n noscript: true,\n object: true,\n ol: true,\n optgroup: true,\n option: true,\n output: true,\n p: true,\n param: true,\n picture: true,\n pre: true,\n progress: true,\n q: true,\n rp: true,\n rt: true,\n ruby: true,\n s: true,\n samp: true,\n script: true,\n section: true,\n select: true,\n small: true,\n source: true,\n span: true,\n strong: true,\n style: true,\n sub: true,\n summary: true,\n sup: true,\n table: true,\n tbody: true,\n td: true,\n textarea: true,\n tfoot: true,\n th: true,\n thead: true,\n time: true,\n title: true,\n tr: true,\n track: true,\n u: true,\n ul: true,\n var: true,\n video: true,\n wbr: true,\n};\n\nexport const isNativeHTMLElement = (type) => nativeHTMLElements[type] === true;\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;AAAA;ACCA,MAAM,qBAAqB;AAAA,EACzB,QAAQ;AAAA,EACR,eAAe;AAAA,EACf,WAAW;AAAA,EACX,QAAQ;AAAA,EACR,iBAAiB;AAAA,EACjB,mBAAmB;AAAA,EACnB,KAAK;AAAA,EACL,OAAO;AAAA,EACP,cAAc;AAAA,EACd,WAAW;AAAA,EACX,UAAU;AAAA,EACV,SAAS;AAAA,EACT,aAAa;AAAA,EACb,aAAa;AAAA,EACb,SAAS;AAAA,EACT,WAAW;AAAA,EACX,SAAS;AAAA,EACT,SAAS;AAAA,EACT,WAAW;AAAA,EACX,MAAM;AAAA,EACN,SAAS;AAAA,EACT,SAAS;AAAA,EACT,iBAAiB;AAAA,EACjB,aAAa;AAAA,EACb,UAAU;AAAA,EACV,QAAQ;AAAA,EACR,aAAa;AAAA,EACb,MAAM;AAAA,EACN,UAAU;AAAA,EACV,OAAO;AAAA,EACP,KAAK;AAAA,EACL,UAAU;AAAA,EACV,UAAU;AAAA,EACV,WAAW;AAAA,EACX,SAAS;AAAA,EACT,MAAM;AAAA,EACN,YAAY;AAAA,EACZ,aAAa;AAAA,EACb,YAAY;AAAA,EACZ,gBAAgB;AAAA,EAChB,YAAY;AAAA,EACZ,aAAa;AAAA,EACb,SAAS;AA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;AAAA,EACR,IAAI;AAAA,EACJ,UAAU;AAAA,EACV,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,GAAG;AAAA,EACH,OAAO;AAAA,EACP,SAAS;AAAA,EACT,KAAK;AAAA,EACL,UAAU;AAAA,EACV,GAAG;AAAA,EACH,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,MAAM;AAAA,EACN,GAAG;AAAA,EACH,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,KAAK;AAAA,EACL,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO;AAAA,EACP,OAAO;AAAA,EACP,IAAI;AAAA,EACJ,UAAU;AAAA,EACV,OAAO;AAAA,EACP,IAAI;AAAA,EACJ,OAAO;AAAA,EACP,MAAM;AAAA,EACN,OAAO;AAAA,EACP,IAAI;AAAA,EACJ,OAAO;AAAA,EACP,GAAG;AAAA,EACH,IAAI;AAAA,EACJ,KAAK;AAAA,EACL,OAAO;AAAA,EACP,KAAK;AACP;AAEO,MAAM,sBAAsB,CAAC,SAAS,mBAAmB,UAAU;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-classnames",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum Library - Aggregated classNames to component",
|
|
6
6
|
"files": [
|
|
@@ -70,8 +70,15 @@
|
|
|
70
70
|
"reportFile": "tests.xml",
|
|
71
71
|
"indent": 4
|
|
72
72
|
},
|
|
73
|
+
"scripts": {
|
|
74
|
+
"test": "node ../../scripts/testing/test.mjs",
|
|
75
|
+
"lint": "node ../../scripts/lint.mjs",
|
|
76
|
+
"dts": "node ../../scripts/dts.mjs",
|
|
77
|
+
"build": "cross-env NODE_ENV=production node ../../scripts/build/build.mjs",
|
|
78
|
+
"dev": "cross-env NODE_ENV=development node ../../scripts/build/build.mjs --watch"
|
|
79
|
+
},
|
|
73
80
|
"dependencies": {
|
|
74
|
-
"@elliemae/ds-utilities": "
|
|
81
|
+
"@elliemae/ds-utilities": "workspace:*",
|
|
75
82
|
"obj-str": "~1.0.3"
|
|
76
83
|
},
|
|
77
84
|
"publishConfig": {
|
|
@@ -82,12 +89,5 @@
|
|
|
82
89
|
"lodash": "^4.17.21",
|
|
83
90
|
"react": "~17.0.2",
|
|
84
91
|
"react-dom": "^17.0.2"
|
|
85
|
-
},
|
|
86
|
-
"scripts": {
|
|
87
|
-
"test": "node ../../scripts/testing/test.mjs",
|
|
88
|
-
"lint": "node ../../scripts/lint.mjs",
|
|
89
|
-
"dts": "node ../../scripts/dts.mjs",
|
|
90
|
-
"build": "cross-env NODE_ENV=production node ../../scripts/build/build.mjs",
|
|
91
|
-
"dev": "cross-env NODE_ENV=development node ../../scripts/build/build.mjs --watch"
|
|
92
92
|
}
|
|
93
|
-
}
|
|
93
|
+
}
|