@elliemae/ds-icons 2.3.0-alpha.2 → 2.3.0-alpha.3
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/cjs/utils/SvgIcon.js +20 -20
- package/cjs/utils/SvgIcon.js.map +2 -2
- package/esm/utils/SvgIcon.js +11 -11
- package/esm/utils/SvgIcon.js.map +2 -2
- package/package.json +2 -2
- package/types/utils/SvgIcon.d.ts +2 -71
package/cjs/utils/SvgIcon.js
CHANGED
|
@@ -33,7 +33,7 @@ __export(SvgIcon_exports, {
|
|
|
33
33
|
});
|
|
34
34
|
var React = __toESM(require("react"));
|
|
35
35
|
var import_react = __toESM(require("react"));
|
|
36
|
-
var
|
|
36
|
+
var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
|
|
37
37
|
var import_ds_classnames = require("@elliemae/ds-classnames");
|
|
38
38
|
const renderPaths = (paths) => paths.map((p, i) => /* @__PURE__ */ import_react.default.createElement("path", {
|
|
39
39
|
key: i,
|
|
@@ -66,28 +66,28 @@ const SvgIcon = ({
|
|
|
66
66
|
}, renderPaths(paths)));
|
|
67
67
|
};
|
|
68
68
|
const iconProps = {
|
|
69
|
-
containerProps:
|
|
70
|
-
size:
|
|
71
|
-
color:
|
|
72
|
-
["neutral", "900"],
|
|
73
|
-
["neutral", "500"],
|
|
74
|
-
["neutral", "0"],
|
|
75
|
-
["danger", "900"],
|
|
76
|
-
["warning", "600"],
|
|
77
|
-
["warning", "900"],
|
|
78
|
-
["success", "900"],
|
|
79
|
-
["brand-primary", "600"]
|
|
69
|
+
containerProps: import_ds_props_helpers.PropTypes.object.description("set of properties attached to the main container"),
|
|
70
|
+
size: import_ds_props_helpers.PropTypes.oneOf(["xxs", "xs", "s", "m", "l", "xl", "xxl"]).description("size of the icon"),
|
|
71
|
+
color: import_ds_props_helpers.PropTypes.oneOfType([
|
|
72
|
+
import_ds_props_helpers.PropTypes.tuple([import_ds_props_helpers.PropTypes.oneOf(["neutral"]), import_ds_props_helpers.PropTypes.oneOf(["900"])]),
|
|
73
|
+
import_ds_props_helpers.PropTypes.tuple([import_ds_props_helpers.PropTypes.oneOf(["neutral"]), import_ds_props_helpers.PropTypes.oneOf(["500"])]),
|
|
74
|
+
import_ds_props_helpers.PropTypes.tuple([import_ds_props_helpers.PropTypes.oneOf(["neutral"]), import_ds_props_helpers.PropTypes.oneOf(["0"])]),
|
|
75
|
+
import_ds_props_helpers.PropTypes.tuple([import_ds_props_helpers.PropTypes.oneOf(["danger"]), import_ds_props_helpers.PropTypes.oneOf(["900"])]),
|
|
76
|
+
import_ds_props_helpers.PropTypes.tuple([import_ds_props_helpers.PropTypes.oneOf(["warning"]), import_ds_props_helpers.PropTypes.oneOf(["600"])]),
|
|
77
|
+
import_ds_props_helpers.PropTypes.tuple([import_ds_props_helpers.PropTypes.oneOf(["warning"]), import_ds_props_helpers.PropTypes.oneOf(["900"])]),
|
|
78
|
+
import_ds_props_helpers.PropTypes.tuple([import_ds_props_helpers.PropTypes.oneOf(["success"]), import_ds_props_helpers.PropTypes.oneOf(["900"])]),
|
|
79
|
+
import_ds_props_helpers.PropTypes.tuple([import_ds_props_helpers.PropTypes.oneOf(["brand-primary"]), import_ds_props_helpers.PropTypes.oneOf(["600"])])
|
|
80
80
|
]).description("icon color"),
|
|
81
|
-
className:
|
|
82
|
-
component:
|
|
83
|
-
viewBox:
|
|
84
|
-
paths:
|
|
85
|
-
fill:
|
|
86
|
-
innerRef:
|
|
87
|
-
title:
|
|
81
|
+
className: import_ds_props_helpers.PropTypes.string.description("html class attribute"),
|
|
82
|
+
component: import_ds_props_helpers.PropTypes.oneOfType([import_ds_props_helpers.PropTypes.string, import_ds_props_helpers.PropTypes.node]).description("containers element"),
|
|
83
|
+
viewBox: import_ds_props_helpers.PropTypes.string.description("view box"),
|
|
84
|
+
paths: import_ds_props_helpers.PropTypes.oneOfType([import_ds_props_helpers.PropTypes.string, import_ds_props_helpers.PropTypes.arrayOf(import_ds_props_helpers.PropTypes.string)]).description(""),
|
|
85
|
+
fill: import_ds_props_helpers.PropTypes.string.description("fill attribute"),
|
|
86
|
+
innerRef: import_ds_props_helpers.PropTypes.object.description("inner ref"),
|
|
87
|
+
title: import_ds_props_helpers.PropTypes.object.description("Adds a title html element to the svg.")
|
|
88
88
|
};
|
|
89
89
|
SvgIcon.propTypes = iconProps;
|
|
90
|
-
const IconWithSchema = (0,
|
|
90
|
+
const IconWithSchema = (0, import_ds_props_helpers.describe)(SvgIcon);
|
|
91
91
|
IconWithSchema.propTypes = iconProps;
|
|
92
92
|
var SvgIcon_default = SvgIcon;
|
|
93
93
|
module.exports = __toCommonJS(SvgIcon_exports);
|
package/cjs/utils/SvgIcon.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/utils/SvgIcon.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["/* eslint-disable react/no-array-index-key */\nimport React from 'react';\nimport { PropTypes, describe } from '
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,
|
|
4
|
+
"sourcesContent": ["/* eslint-disable react/no-array-index-key */\nimport React, { WeakValidationMap } from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-props-helpers';\nimport { convertPropToCssClassName } from '@elliemae/ds-classnames';\n\nconst renderPaths = (paths) => paths.map((p, i) => <path key={i} d={p} />);\n\nexport type SvgIconSizeType = 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl';\n\nexport type SvgIconColorType =\n | ['neutral', '900']\n | ['neutral', '500']\n | ['neutral', '0']\n | ['danger', '900']\n | ['warning', '600']\n | ['success', '900']\n | ['brand-primary', '600'];\n\nexport interface SvgIconPropType {\n containerProps: Record<any, any>;\n size: SvgIconSizeType;\n color: SvgIconColorType;\n className: string;\n component: React.ComponentType | 'span';\n viewBox: string;\n paths: any;\n fill: any;\n innerRef: any;\n}\n\nexport type SvgIconType = React.ComponentType<SvgIconPropType>;\n\nconst SvgIcon: React.ComponentType<SvgIconPropType> = ({\n containerProps = {},\n size,\n color,\n className = '',\n component: Component = 'span',\n viewBox = '0 0 24 24',\n paths,\n fill,\n innerRef,\n ...rest\n}) => {\n const { cssClassName } = convertPropToCssClassName('icon', className, {\n size,\n color,\n });\n return (\n <Component ref={innerRef} className={cssClassName} {...rest} {...containerProps}>\n <svg fill={fill} viewBox={viewBox}>\n {renderPaths(paths)}\n </svg>\n </Component>\n );\n};\n\nconst iconProps = {\n containerProps: PropTypes.object.description('set of properties attached to the main container'),\n size: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description('size of the icon'),\n color: PropTypes.oneOfType([\n PropTypes.tuple([PropTypes.oneOf(['neutral']), PropTypes.oneOf(['900'])]),\n PropTypes.tuple([PropTypes.oneOf(['neutral']), PropTypes.oneOf(['500'])]),\n PropTypes.tuple([PropTypes.oneOf(['neutral']), PropTypes.oneOf(['0'])]),\n PropTypes.tuple([PropTypes.oneOf(['danger']), PropTypes.oneOf(['900'])]),\n PropTypes.tuple([PropTypes.oneOf(['warning']), PropTypes.oneOf(['600'])]),\n PropTypes.tuple([PropTypes.oneOf(['warning']), PropTypes.oneOf(['900'])]),\n PropTypes.tuple([PropTypes.oneOf(['success']), PropTypes.oneOf(['900'])]),\n PropTypes.tuple([PropTypes.oneOf(['brand-primary']), PropTypes.oneOf(['600'])]),\n ]).description('icon color'),\n className: PropTypes.string.description('html class attribute'),\n component: PropTypes.oneOfType([PropTypes.string, PropTypes.node]).description('containers element'),\n viewBox: PropTypes.string.description('view box'),\n paths: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.string)]).description(''),\n fill: PropTypes.string.description('fill attribute'),\n innerRef: PropTypes.object.description('inner ref'),\n title: PropTypes.object.description('Adds a title html element to the svg.'),\n} as WeakValidationMap<unknown>;\n\nSvgIcon.propTypes = iconProps;\n\nconst IconWithSchema = describe(SvgIcon);\nIconWithSchema.propTypes = iconProps;\n\nexport { IconWithSchema, SvgIcon };\nexport default SvgIcon;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,mBAAyC;AACzC,8BAAoC;AACpC,2BAA0C;AAE1C,MAAM,cAAc,CAAC,UAAU,MAAM,IAAI,CAAC,GAAG,MAAM,mDAAC,QAAD;AAAA,EAAM,KAAK;AAAA,EAAG,GAAG;AAAA;AA2BpE,MAAM,UAAgD,CAAC;AAAA,EACrD,iBAAiB;AAAA,EACjB;AAAA,EACA;AAAA,EACA,YAAY;AAAA,EACZ,WAAW,YAAY;AAAA,EACvB,UAAU;AAAA,EACV;AAAA,EACA;AAAA,EACA;AAAA,KACG;AAAA,MACC;AACJ,QAAM,EAAE,iBAAiB,oDAA0B,QAAQ,WAAW;AAAA,IACpE;AAAA,IACA;AAAA;AAEF,SACE,mDAAC,WAAD;AAAA,IAAW,KAAK;AAAA,IAAU,WAAW;AAAA,OAAkB;AAAA,OAAU;AAAA,KAC/D,mDAAC,OAAD;AAAA,IAAK;AAAA,IAAY;AAAA,KACd,YAAY;AAAA;AAMrB,MAAM,YAAY;AAAA,EAChB,gBAAgB,kCAAU,OAAO,YAAY;AAAA,EAC7C,MAAM,kCAAU,MAAM,CAAC,OAAO,MAAM,KAAK,KAAK,KAAK,MAAM,QAAQ,YAAY;AAAA,EAC7E,OAAO,kCAAU,UAAU;AAAA,IACzB,kCAAU,MAAM,CAAC,kCAAU,MAAM,CAAC,aAAa,kCAAU,MAAM,CAAC;AAAA,IAChE,kCAAU,MAAM,CAAC,kCAAU,MAAM,CAAC,aAAa,kCAAU,MAAM,CAAC;AAAA,IAChE,kCAAU,MAAM,CAAC,kCAAU,MAAM,CAAC,aAAa,kCAAU,MAAM,CAAC;AAAA,IAChE,kCAAU,MAAM,CAAC,kCAAU,MAAM,CAAC,YAAY,kCAAU,MAAM,CAAC;AAAA,IAC/D,kCAAU,MAAM,CAAC,kCAAU,MAAM,CAAC,aAAa,kCAAU,MAAM,CAAC;AAAA,IAChE,kCAAU,MAAM,CAAC,kCAAU,MAAM,CAAC,aAAa,kCAAU,MAAM,CAAC;AAAA,IAChE,kCAAU,MAAM,CAAC,kCAAU,MAAM,CAAC,aAAa,kCAAU,MAAM,CAAC;AAAA,IAChE,kCAAU,MAAM,CAAC,kCAAU,MAAM,CAAC,mBAAmB,kCAAU,MAAM,CAAC;AAAA,KACrE,YAAY;AAAA,EACf,WAAW,kCAAU,OAAO,YAAY;AAAA,EACxC,WAAW,kCAAU,UAAU,CAAC,kCAAU,QAAQ,kCAAU,OAAO,YAAY;AAAA,EAC/E,SAAS,kCAAU,OAAO,YAAY;AAAA,EACtC,OAAO,kCAAU,UAAU,CAAC,kCAAU,QAAQ,kCAAU,QAAQ,kCAAU,UAAU,YAAY;AAAA,EAChG,MAAM,kCAAU,OAAO,YAAY;AAAA,EACnC,UAAU,kCAAU,OAAO,YAAY;AAAA,EACvC,OAAO,kCAAU,OAAO,YAAY;AAAA;AAGtC,QAAQ,YAAY;AAEpB,MAAM,iBAAiB,sCAAS;AAChC,eAAe,YAAY;AAG3B,IAAO,kBAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/esm/utils/SvgIcon.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import React2 from "react";
|
|
3
|
-
import { PropTypes, describe } from "
|
|
3
|
+
import { PropTypes, describe } from "@elliemae/ds-props-helpers";
|
|
4
4
|
import { convertPropToCssClassName } from "@elliemae/ds-classnames";
|
|
5
5
|
const renderPaths = (paths) => paths.map((p, i) => /* @__PURE__ */ React2.createElement("path", {
|
|
6
6
|
key: i,
|
|
@@ -35,18 +35,18 @@ const SvgIcon = ({
|
|
|
35
35
|
const iconProps = {
|
|
36
36
|
containerProps: PropTypes.object.description("set of properties attached to the main container"),
|
|
37
37
|
size: PropTypes.oneOf(["xxs", "xs", "s", "m", "l", "xl", "xxl"]).description("size of the icon"),
|
|
38
|
-
color: PropTypes.
|
|
39
|
-
["neutral", "900"],
|
|
40
|
-
["neutral", "500"],
|
|
41
|
-
["neutral", "0"],
|
|
42
|
-
["danger", "900"],
|
|
43
|
-
["warning", "600"],
|
|
44
|
-
["warning", "900"],
|
|
45
|
-
["success", "900"],
|
|
46
|
-
["brand-primary", "600"]
|
|
38
|
+
color: PropTypes.oneOfType([
|
|
39
|
+
PropTypes.tuple([PropTypes.oneOf(["neutral"]), PropTypes.oneOf(["900"])]),
|
|
40
|
+
PropTypes.tuple([PropTypes.oneOf(["neutral"]), PropTypes.oneOf(["500"])]),
|
|
41
|
+
PropTypes.tuple([PropTypes.oneOf(["neutral"]), PropTypes.oneOf(["0"])]),
|
|
42
|
+
PropTypes.tuple([PropTypes.oneOf(["danger"]), PropTypes.oneOf(["900"])]),
|
|
43
|
+
PropTypes.tuple([PropTypes.oneOf(["warning"]), PropTypes.oneOf(["600"])]),
|
|
44
|
+
PropTypes.tuple([PropTypes.oneOf(["warning"]), PropTypes.oneOf(["900"])]),
|
|
45
|
+
PropTypes.tuple([PropTypes.oneOf(["success"]), PropTypes.oneOf(["900"])]),
|
|
46
|
+
PropTypes.tuple([PropTypes.oneOf(["brand-primary"]), PropTypes.oneOf(["600"])])
|
|
47
47
|
]).description("icon color"),
|
|
48
48
|
className: PropTypes.string.description("html class attribute"),
|
|
49
|
-
component: PropTypes.
|
|
49
|
+
component: PropTypes.oneOfType([PropTypes.string, PropTypes.node]).description("containers element"),
|
|
50
50
|
viewBox: PropTypes.string.description("view box"),
|
|
51
51
|
paths: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.string)]).description(""),
|
|
52
52
|
fill: PropTypes.string.description("fill attribute"),
|
package/esm/utils/SvgIcon.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/utils/SvgIcon.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable react/no-array-index-key */\nimport React from 'react';\nimport { PropTypes, describe } from '
|
|
5
|
-
"mappings": "AAAA;ACCA;AACA;AACA;AAEA,MAAM,cAAc,CAAC,UAAU,MAAM,IAAI,CAAC,GAAG,MAAM,qCAAC,QAAD;AAAA,EAAM,KAAK;AAAA,EAAG,GAAG;AAAA;AA2BpE,MAAM,
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable react/no-array-index-key */\nimport React, { WeakValidationMap } from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-props-helpers';\nimport { convertPropToCssClassName } from '@elliemae/ds-classnames';\n\nconst renderPaths = (paths) => paths.map((p, i) => <path key={i} d={p} />);\n\nexport type SvgIconSizeType = 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl';\n\nexport type SvgIconColorType =\n | ['neutral', '900']\n | ['neutral', '500']\n | ['neutral', '0']\n | ['danger', '900']\n | ['warning', '600']\n | ['success', '900']\n | ['brand-primary', '600'];\n\nexport interface SvgIconPropType {\n containerProps: Record<any, any>;\n size: SvgIconSizeType;\n color: SvgIconColorType;\n className: string;\n component: React.ComponentType | 'span';\n viewBox: string;\n paths: any;\n fill: any;\n innerRef: any;\n}\n\nexport type SvgIconType = React.ComponentType<SvgIconPropType>;\n\nconst SvgIcon: React.ComponentType<SvgIconPropType> = ({\n containerProps = {},\n size,\n color,\n className = '',\n component: Component = 'span',\n viewBox = '0 0 24 24',\n paths,\n fill,\n innerRef,\n ...rest\n}) => {\n const { cssClassName } = convertPropToCssClassName('icon', className, {\n size,\n color,\n });\n return (\n <Component ref={innerRef} className={cssClassName} {...rest} {...containerProps}>\n <svg fill={fill} viewBox={viewBox}>\n {renderPaths(paths)}\n </svg>\n </Component>\n );\n};\n\nconst iconProps = {\n containerProps: PropTypes.object.description('set of properties attached to the main container'),\n size: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description('size of the icon'),\n color: PropTypes.oneOfType([\n PropTypes.tuple([PropTypes.oneOf(['neutral']), PropTypes.oneOf(['900'])]),\n PropTypes.tuple([PropTypes.oneOf(['neutral']), PropTypes.oneOf(['500'])]),\n PropTypes.tuple([PropTypes.oneOf(['neutral']), PropTypes.oneOf(['0'])]),\n PropTypes.tuple([PropTypes.oneOf(['danger']), PropTypes.oneOf(['900'])]),\n PropTypes.tuple([PropTypes.oneOf(['warning']), PropTypes.oneOf(['600'])]),\n PropTypes.tuple([PropTypes.oneOf(['warning']), PropTypes.oneOf(['900'])]),\n PropTypes.tuple([PropTypes.oneOf(['success']), PropTypes.oneOf(['900'])]),\n PropTypes.tuple([PropTypes.oneOf(['brand-primary']), PropTypes.oneOf(['600'])]),\n ]).description('icon color'),\n className: PropTypes.string.description('html class attribute'),\n component: PropTypes.oneOfType([PropTypes.string, PropTypes.node]).description('containers element'),\n viewBox: PropTypes.string.description('view box'),\n paths: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.string)]).description(''),\n fill: PropTypes.string.description('fill attribute'),\n innerRef: PropTypes.object.description('inner ref'),\n title: PropTypes.object.description('Adds a title html element to the svg.'),\n} as WeakValidationMap<unknown>;\n\nSvgIcon.propTypes = iconProps;\n\nconst IconWithSchema = describe(SvgIcon);\nIconWithSchema.propTypes = iconProps;\n\nexport { IconWithSchema, SvgIcon };\nexport default SvgIcon;\n"],
|
|
5
|
+
"mappings": "AAAA;ACCA;AACA;AACA;AAEA,MAAM,cAAc,CAAC,UAAU,MAAM,IAAI,CAAC,GAAG,MAAM,qCAAC,QAAD;AAAA,EAAM,KAAK;AAAA,EAAG,GAAG;AAAA;AA2BpE,MAAM,UAAgD,CAAC;AAAA,EACrD,iBAAiB;AAAA,EACjB;AAAA,EACA;AAAA,EACA,YAAY;AAAA,EACZ,WAAW,YAAY;AAAA,EACvB,UAAU;AAAA,EACV;AAAA,EACA;AAAA,EACA;AAAA,KACG;AAAA,MACC;AACJ,QAAM,EAAE,iBAAiB,0BAA0B,QAAQ,WAAW;AAAA,IACpE;AAAA,IACA;AAAA;AAEF,SACE,qCAAC,WAAD;AAAA,IAAW,KAAK;AAAA,IAAU,WAAW;AAAA,OAAkB;AAAA,OAAU;AAAA,KAC/D,qCAAC,OAAD;AAAA,IAAK;AAAA,IAAY;AAAA,KACd,YAAY;AAAA;AAMrB,MAAM,YAAY;AAAA,EAChB,gBAAgB,UAAU,OAAO,YAAY;AAAA,EAC7C,MAAM,UAAU,MAAM,CAAC,OAAO,MAAM,KAAK,KAAK,KAAK,MAAM,QAAQ,YAAY;AAAA,EAC7E,OAAO,UAAU,UAAU;AAAA,IACzB,UAAU,MAAM,CAAC,UAAU,MAAM,CAAC,aAAa,UAAU,MAAM,CAAC;AAAA,IAChE,UAAU,MAAM,CAAC,UAAU,MAAM,CAAC,aAAa,UAAU,MAAM,CAAC;AAAA,IAChE,UAAU,MAAM,CAAC,UAAU,MAAM,CAAC,aAAa,UAAU,MAAM,CAAC;AAAA,IAChE,UAAU,MAAM,CAAC,UAAU,MAAM,CAAC,YAAY,UAAU,MAAM,CAAC;AAAA,IAC/D,UAAU,MAAM,CAAC,UAAU,MAAM,CAAC,aAAa,UAAU,MAAM,CAAC;AAAA,IAChE,UAAU,MAAM,CAAC,UAAU,MAAM,CAAC,aAAa,UAAU,MAAM,CAAC;AAAA,IAChE,UAAU,MAAM,CAAC,UAAU,MAAM,CAAC,aAAa,UAAU,MAAM,CAAC;AAAA,IAChE,UAAU,MAAM,CAAC,UAAU,MAAM,CAAC,mBAAmB,UAAU,MAAM,CAAC;AAAA,KACrE,YAAY;AAAA,EACf,WAAW,UAAU,OAAO,YAAY;AAAA,EACxC,WAAW,UAAU,UAAU,CAAC,UAAU,QAAQ,UAAU,OAAO,YAAY;AAAA,EAC/E,SAAS,UAAU,OAAO,YAAY;AAAA,EACtC,OAAO,UAAU,UAAU,CAAC,UAAU,QAAQ,UAAU,QAAQ,UAAU,UAAU,YAAY;AAAA,EAChG,MAAM,UAAU,OAAO,YAAY;AAAA,EACnC,UAAU,UAAU,OAAO,YAAY;AAAA,EACvC,OAAO,UAAU,OAAO,YAAY;AAAA;AAGtC,QAAQ,YAAY;AAEpB,MAAM,iBAAiB,SAAS;AAChC,eAAe,YAAY;AAG3B,IAAO,kBAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-icons",
|
|
3
|
-
"version": "2.3.0-alpha.
|
|
3
|
+
"version": "2.3.0-alpha.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Icons",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -1569,7 +1569,7 @@
|
|
|
1569
1569
|
"dev": "cross-env NODE_ENV=development && node ../../scripts/build/build.js -w"
|
|
1570
1570
|
},
|
|
1571
1571
|
"dependencies": {
|
|
1572
|
-
"@elliemae/ds-classnames": "2.3.0-alpha.
|
|
1572
|
+
"@elliemae/ds-classnames": "2.3.0-alpha.3",
|
|
1573
1573
|
"react-desc": "~4.1.3"
|
|
1574
1574
|
},
|
|
1575
1575
|
"peerDependencies": {
|
package/types/utils/SvgIcon.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference path="../../../../../shared/typings/react-desc.d.ts" />
|
|
2
1
|
import React from 'react';
|
|
3
2
|
export declare type SvgIconSizeType = 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl';
|
|
4
3
|
export declare type SvgIconColorType = ['neutral', '900'] | ['neutral', '500'] | ['neutral', '0'] | ['danger', '900'] | ['warning', '600'] | ['success', '900'] | ['brand-primary', '600'];
|
|
@@ -14,75 +13,7 @@ export interface SvgIconPropType {
|
|
|
14
13
|
innerRef: any;
|
|
15
14
|
}
|
|
16
15
|
export declare type SvgIconType = React.ComponentType<SvgIconPropType>;
|
|
17
|
-
declare const SvgIcon:
|
|
18
|
-
|
|
19
|
-
propTypes: {
|
|
20
|
-
containerProps: {
|
|
21
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
22
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
23
|
-
};
|
|
24
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
25
|
-
};
|
|
26
|
-
size: {
|
|
27
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
28
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
29
|
-
};
|
|
30
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
31
|
-
};
|
|
32
|
-
color: {
|
|
33
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
34
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
35
|
-
};
|
|
36
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
37
|
-
};
|
|
38
|
-
className: {
|
|
39
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
40
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
41
|
-
};
|
|
42
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
43
|
-
};
|
|
44
|
-
component: {
|
|
45
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
46
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
47
|
-
};
|
|
48
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
49
|
-
};
|
|
50
|
-
viewBox: {
|
|
51
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
52
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
53
|
-
};
|
|
54
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
55
|
-
};
|
|
56
|
-
paths: {
|
|
57
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
58
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
59
|
-
};
|
|
60
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
61
|
-
};
|
|
62
|
-
fill: {
|
|
63
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
64
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
65
|
-
};
|
|
66
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
67
|
-
};
|
|
68
|
-
innerRef: {
|
|
69
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
70
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
71
|
-
};
|
|
72
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
73
|
-
};
|
|
74
|
-
title: {
|
|
75
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
76
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
77
|
-
};
|
|
78
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
declare const IconWithSchema: {
|
|
83
|
-
(props?: unknown): JSX.Element;
|
|
84
|
-
propTypes: unknown;
|
|
85
|
-
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
86
|
-
};
|
|
16
|
+
declare const SvgIcon: React.ComponentType<SvgIconPropType>;
|
|
17
|
+
declare const IconWithSchema: import("@elliemae/ds-props-helpers/types/propTypes/types").DocumentedReactComponent<SvgIconPropType>;
|
|
87
18
|
export { IconWithSchema, SvgIcon };
|
|
88
19
|
export default SvgIcon;
|