@elliemae/ds-icon 3.0.0-next.1 → 3.0.0-next.5

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.
@@ -0,0 +1,43 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __reExport = (target, module2, copyDefault, desc) => {
13
+ if (module2 && typeof module2 === "object" || typeof module2 === "function") {
14
+ for (let key of __getOwnPropNames(module2))
15
+ if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
16
+ __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
17
+ }
18
+ return target;
19
+ };
20
+ var __toESM = (module2, isNodeMode) => {
21
+ return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
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);
28
+ var DSIconColor_exports = {};
29
+ __export(DSIconColor_exports, {
30
+ default: () => DSIconColor_default
31
+ });
32
+ var React = __toESM(require("react"));
33
+ const ICONS_COLORS = {
34
+ NEUTRAL: ["neutral", "900"],
35
+ WHITE: ["neutral", "0"],
36
+ DANGER: ["danger", "900"],
37
+ WARNING: ["warning", "600"],
38
+ SUCCESS: ["success", "900"],
39
+ PRIMARY: ["brand-primary", "600"]
40
+ };
41
+ var DSIconColor_default = ICONS_COLORS;
42
+ module.exports = __toCommonJS(DSIconColor_exports);
43
+ //# sourceMappingURL=DSIconColor.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/DSIconColor.tsx", "../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["const ICONS_COLORS = {\n NEUTRAL: ['neutral', '900'],\n WHITE: ['neutral', '0'],\n DANGER: ['danger', '900'],\n WARNING: ['warning', '600'],\n SUCCESS: ['success', '900'],\n PRIMARY: ['brand-primary', '600'],\n};\n\nexport default ICONS_COLORS;\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,MAAM,eAAe;AAAA,EACnB,SAAS,CAAC,WAAW;AAAA,EACrB,OAAO,CAAC,WAAW;AAAA,EACnB,QAAQ,CAAC,UAAU;AAAA,EACnB,SAAS,CAAC,WAAW;AAAA,EACrB,SAAS,CAAC,WAAW;AAAA,EACrB,SAAS,CAAC,iBAAiB;AAAA;AAG7B,IAAO,sBAAQ;",
6
+ "names": []
7
+ }
@@ -0,0 +1,44 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __reExport = (target, module2, copyDefault, desc) => {
13
+ if (module2 && typeof module2 === "object" || typeof module2 === "function") {
14
+ for (let key of __getOwnPropNames(module2))
15
+ if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
16
+ __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
17
+ }
18
+ return target;
19
+ };
20
+ var __toESM = (module2, isNodeMode) => {
21
+ return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
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);
28
+ var DSIconSize_exports = {};
29
+ __export(DSIconSize_exports, {
30
+ default: () => DSIconSize_default
31
+ });
32
+ var React = __toESM(require("react"));
33
+ const ICONS_SIZES = {
34
+ XXS: "xxs",
35
+ XS: "xs",
36
+ S: "s",
37
+ M: "m",
38
+ L: "l",
39
+ XL: "xl",
40
+ XXL: "xxl"
41
+ };
42
+ var DSIconSize_default = ICONS_SIZES;
43
+ module.exports = __toCommonJS(DSIconSize_exports);
44
+ //# sourceMappingURL=DSIconSize.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/DSIconSize.tsx", "../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["const ICONS_SIZES = {\n XXS: 'xxs',\n XS: 'xs',\n S: 's',\n M: 'm',\n L: 'l',\n XL: 'xl',\n XXL: 'xxl',\n};\n\nexport default ICONS_SIZES;\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,MAAM,cAAc;AAAA,EAClB,KAAK;AAAA,EACL,IAAI;AAAA,EACJ,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,IAAI;AAAA,EACJ,KAAK;AAAA;AAGP,IAAO,qBAAQ;",
6
+ "names": []
7
+ }
@@ -0,0 +1,44 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __reExport = (target, module2, copyDefault, desc) => {
13
+ if (module2 && typeof module2 === "object" || typeof module2 === "function") {
14
+ for (let key of __getOwnPropNames(module2))
15
+ if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
16
+ __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
17
+ }
18
+ return target;
19
+ };
20
+ var __toESM = (module2, isNodeMode) => {
21
+ return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
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);
28
+ var src_exports = {};
29
+ __export(src_exports, {
30
+ DSIconColors: () => import_DSIconColor2.default,
31
+ DSIconSizes: () => import_DSIconSize2.default,
32
+ default: () => src_default
33
+ });
34
+ var React = __toESM(require("react"));
35
+ var import_DSIconColor = __toESM(require("./DSIconColor"));
36
+ var import_DSIconSize = __toESM(require("./DSIconSize"));
37
+ var import_DSIconColor2 = __toESM(require("./DSIconColor"));
38
+ var import_DSIconSize2 = __toESM(require("./DSIconSize"));
39
+ var src_default = {
40
+ DSIconColors: import_DSIconColor.default,
41
+ DSIconSizes: import_DSIconSize.default
42
+ };
43
+ module.exports = __toCommonJS(src_exports);
44
+ //# 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": ["import DSIconColors from './DSIconColor';\nimport DSIconSizes from './DSIconSize';\n\nexport { default as DSIconColors } from './DSIconColor';\nexport { default as DSIconSizes } from './DSIconSize';\n\nexport default {\n DSIconColors,\n DSIconSizes,\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,yBAAyB;AACzB,wBAAwB;AAExB,0BAAwC;AACxC,yBAAuC;AAEvC,IAAO,cAAQ;AAAA,EACb;AAAA,EACA;AAAA;",
6
+ "names": []
7
+ }
@@ -0,0 +1,14 @@
1
+ import * as React from "react";
2
+ const ICONS_COLORS = {
3
+ NEUTRAL: ["neutral", "900"],
4
+ WHITE: ["neutral", "0"],
5
+ DANGER: ["danger", "900"],
6
+ WARNING: ["warning", "600"],
7
+ SUCCESS: ["success", "900"],
8
+ PRIMARY: ["brand-primary", "600"]
9
+ };
10
+ var DSIconColor_default = ICONS_COLORS;
11
+ export {
12
+ DSIconColor_default as default
13
+ };
14
+ //# sourceMappingURL=DSIconColor.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/DSIconColor.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "const ICONS_COLORS = {\n NEUTRAL: ['neutral', '900'],\n WHITE: ['neutral', '0'],\n DANGER: ['danger', '900'],\n WARNING: ['warning', '600'],\n SUCCESS: ['success', '900'],\n PRIMARY: ['brand-primary', '600'],\n};\n\nexport default ICONS_COLORS;\n"],
5
+ "mappings": "AAAA;ACAA,MAAM,eAAe;AAAA,EACnB,SAAS,CAAC,WAAW;AAAA,EACrB,OAAO,CAAC,WAAW;AAAA,EACnB,QAAQ,CAAC,UAAU;AAAA,EACnB,SAAS,CAAC,WAAW;AAAA,EACrB,SAAS,CAAC,WAAW;AAAA,EACrB,SAAS,CAAC,iBAAiB;AAAA;AAG7B,IAAO,sBAAQ;",
6
+ "names": []
7
+ }
@@ -0,0 +1,15 @@
1
+ import * as React from "react";
2
+ const ICONS_SIZES = {
3
+ XXS: "xxs",
4
+ XS: "xs",
5
+ S: "s",
6
+ M: "m",
7
+ L: "l",
8
+ XL: "xl",
9
+ XXL: "xxl"
10
+ };
11
+ var DSIconSize_default = ICONS_SIZES;
12
+ export {
13
+ DSIconSize_default as default
14
+ };
15
+ //# sourceMappingURL=DSIconSize.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/DSIconSize.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "const ICONS_SIZES = {\n XXS: 'xxs',\n XS: 'xs',\n S: 's',\n M: 'm',\n L: 'l',\n XL: 'xl',\n XXL: 'xxl',\n};\n\nexport default ICONS_SIZES;\n"],
5
+ "mappings": "AAAA;ACAA,MAAM,cAAc;AAAA,EAClB,KAAK;AAAA,EACL,IAAI;AAAA,EACJ,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,IAAI;AAAA,EACJ,KAAK;AAAA;AAGP,IAAO,qBAAQ;",
6
+ "names": []
7
+ }
@@ -0,0 +1,15 @@
1
+ import * as React from "react";
2
+ import DSIconColors from "./DSIconColor";
3
+ import DSIconSizes from "./DSIconSize";
4
+ import { default as default2 } from "./DSIconColor";
5
+ import { default as default3 } from "./DSIconSize";
6
+ var src_default = {
7
+ DSIconColors,
8
+ DSIconSizes
9
+ };
10
+ export {
11
+ default2 as DSIconColors,
12
+ default3 as DSIconSizes,
13
+ src_default as default
14
+ };
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/index.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import DSIconColors from './DSIconColor';\nimport DSIconSizes from './DSIconSize';\n\nexport { default as DSIconColors } from './DSIconColor';\nexport { default as DSIconSizes } from './DSIconSize';\n\nexport default {\n DSIconColors,\n DSIconSizes,\n};\n"],
5
+ "mappings": "AAAA;ACAA;AACA;AAEA;AACA;AAEA,IAAO,cAAQ;AAAA,EACb;AAAA,EACA;AAAA;",
6
+ "names": []
7
+ }
package/package.json CHANGED
@@ -1,23 +1,26 @@
1
1
  {
2
2
  "name": "@elliemae/ds-icon",
3
- "version": "3.0.0-next.1",
3
+ "version": "3.0.0-next.5",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Icon",
6
- "module": "./esm/index.js",
7
- "main": "./cjs/index.js",
8
- "types": "./types/index.d.ts",
6
+ "files": [
7
+ "dist"
8
+ ],
9
+ "module": "./dist/esm/index.js",
10
+ "main": "./dist/cjs/index.js",
11
+ "types": "./dist/types/index.d.ts",
9
12
  "exports": {
10
13
  ".": {
11
- "import": "./esm/index.js",
12
- "require": "./cjs/index.js"
14
+ "import": "./dist/esm/index.js",
15
+ "require": "./dist/cjs/index.js"
13
16
  },
14
17
  "./DSIconSize": {
15
- "import": "./esm/DSIconSize.js",
16
- "require": "./cjs/DSIconSize.js"
18
+ "import": "./dist/esm/DSIconSize.js",
19
+ "require": "./dist/cjs/DSIconSize.js"
17
20
  },
18
21
  "./DSIconColor": {
19
- "import": "./esm/DSIconColor.js",
20
- "require": "./cjs/DSIconColor.js"
22
+ "import": "./dist/esm/DSIconColor.js",
23
+ "require": "./dist/cjs/DSIconColor.js"
21
24
  }
22
25
  },
23
26
  "sideEffects": [
@@ -29,19 +32,25 @@
29
32
  "url": "https://git.elliemae.io/platform-ui/dimsum.git"
30
33
  },
31
34
  "engines": {
32
- "npm": ">=7",
33
- "node": ">=14"
35
+ "pnpm": ">=6",
36
+ "node": ">=16"
34
37
  },
35
38
  "author": "ICE MT",
36
- "scripts": {
37
- "dev": "cross-env NODE_ENV=development && node ../../scripts/build/build.js -w",
38
- "prebuild": "exit 0",
39
- "predev": "exit 0",
40
- "build": "node ../../scripts/build/build.js"
39
+ "jestSonar": {
40
+ "sonar56x": true,
41
+ "reportPath": "reports",
42
+ "reportFile": "tests.xml",
43
+ "indent": 4
41
44
  },
42
45
  "publishConfig": {
43
46
  "access": "public",
44
- "directory": "dist",
45
- "generateSubmodules": true
47
+ "typeSafety": false
48
+ },
49
+ "scripts": {
50
+ "dev": "cross-env NODE_ENV=development node ../../scripts/build/build.mjs --watch",
51
+ "test": "node ../../scripts/testing/test.mjs",
52
+ "lint": "node ../../scripts/lint.mjs",
53
+ "dts": "node ../../scripts/dts.mjs",
54
+ "build": "cross-env NODE_ENV=production node ../../scripts/build/build.mjs"
46
55
  }
47
56
  }
@@ -1,12 +0,0 @@
1
- 'use strict';
2
-
3
- const ICONS_COLORS = {
4
- NEUTRAL: ['neutral', '900'],
5
- WHITE: ['neutral', '0'],
6
- DANGER: ['danger', '900'],
7
- WARNING: ['warning', '600'],
8
- SUCCESS: ['success', '900'],
9
- PRIMARY: ['brand-primary', '600']
10
- };
11
-
12
- module.exports = ICONS_COLORS;
package/cjs/DSIconSize.js DELETED
@@ -1,13 +0,0 @@
1
- 'use strict';
2
-
3
- const ICONS_SIZES = {
4
- XXS: 'xxs',
5
- XS: 'xs',
6
- S: 's',
7
- M: 'm',
8
- L: 'l',
9
- XL: 'xl',
10
- XXL: 'xxl'
11
- };
12
-
13
- module.exports = ICONS_SIZES;
package/cjs/index.js DELETED
@@ -1,15 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var DSIconColor = require('./DSIconColor.js');
6
- var DSIconSize = require('./DSIconSize.js');
7
-
8
- var index = {
9
- DSIconColors: DSIconColor,
10
- DSIconSizes: DSIconSize
11
- };
12
-
13
- exports.DSIconColors = DSIconColor;
14
- exports.DSIconSizes = DSIconSize;
15
- exports["default"] = index;
@@ -1,10 +0,0 @@
1
- const ICONS_COLORS = {
2
- NEUTRAL: ['neutral', '900'],
3
- WHITE: ['neutral', '0'],
4
- DANGER: ['danger', '900'],
5
- WARNING: ['warning', '600'],
6
- SUCCESS: ['success', '900'],
7
- PRIMARY: ['brand-primary', '600']
8
- };
9
-
10
- export { ICONS_COLORS as default };
package/esm/DSIconSize.js DELETED
@@ -1,11 +0,0 @@
1
- const ICONS_SIZES = {
2
- XXS: 'xxs',
3
- XS: 'xs',
4
- S: 's',
5
- M: 'm',
6
- L: 'l',
7
- XL: 'xl',
8
- XXL: 'xxl'
9
- };
10
-
11
- export { ICONS_SIZES as default };
package/esm/index.js DELETED
@@ -1,11 +0,0 @@
1
- import ICONS_COLORS from './DSIconColor.js';
2
- export { default as DSIconColors } from './DSIconColor.js';
3
- import ICONS_SIZES from './DSIconSize.js';
4
- export { default as DSIconSizes } from './DSIconSize.js';
5
-
6
- var index = {
7
- DSIconColors: ICONS_COLORS,
8
- DSIconSizes: ICONS_SIZES
9
- };
10
-
11
- export { index as default };
@@ -1,9 +0,0 @@
1
- declare const ICONS_COLORS: {
2
- NEUTRAL: string[];
3
- WHITE: string[];
4
- DANGER: string[];
5
- WARNING: string[];
6
- SUCCESS: string[];
7
- PRIMARY: string[];
8
- };
9
- export default ICONS_COLORS;
@@ -1,10 +0,0 @@
1
- declare const ICONS_SIZES: {
2
- XXS: string;
3
- XS: string;
4
- S: string;
5
- M: string;
6
- L: string;
7
- XL: string;
8
- XXL: string;
9
- };
10
- export default ICONS_SIZES;
package/types/index.d.ts DELETED
@@ -1,22 +0,0 @@
1
- export { default as DSIconColors } from './DSIconColor';
2
- export { default as DSIconSizes } from './DSIconSize';
3
- declare const _default: {
4
- DSIconColors: {
5
- NEUTRAL: string[];
6
- WHITE: string[];
7
- DANGER: string[];
8
- WARNING: string[];
9
- SUCCESS: string[];
10
- PRIMARY: string[];
11
- };
12
- DSIconSizes: {
13
- XXS: string;
14
- XS: string;
15
- S: string;
16
- M: string;
17
- L: string;
18
- XL: string;
19
- XXL: string;
20
- };
21
- };
22
- export default _default;