@elliemae/ds-icons 3.0.0-next.47 → 3.0.0-next.48
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/utils/SvgIcon.js +4 -4
- package/dist/cjs/utils/SvgIcon.js.map +2 -2
- package/dist/cjs/utils/react-desc-prop-types.js +20 -20
- package/dist/cjs/utils/react-desc-prop-types.js.map +2 -2
- package/dist/esm/utils/SvgIcon.js +1 -1
- package/dist/esm/utils/SvgIcon.js.map +1 -1
- package/dist/esm/utils/react-desc-prop-types.js +1 -1
- package/dist/esm/utils/react-desc-prop-types.js.map +1 -1
- package/package.json +3 -3
|
@@ -56,7 +56,7 @@ __export(SvgIcon_exports, {
|
|
|
56
56
|
module.exports = __toCommonJS(SvgIcon_exports);
|
|
57
57
|
var React = __toESM(require("react"));
|
|
58
58
|
var import_react = __toESM(require("react"));
|
|
59
|
-
var
|
|
59
|
+
var import_ds_utilities = require("@elliemae/ds-utilities");
|
|
60
60
|
var import_ds_classnames = require("@elliemae/ds-classnames");
|
|
61
61
|
var import_react_desc_prop_types = require("./react-desc-prop-types");
|
|
62
62
|
var import_styled = require("./styled");
|
|
@@ -66,10 +66,10 @@ const renderPaths = (paths) => paths.map((p, i) => /* @__PURE__ */ import_react.
|
|
|
66
66
|
}));
|
|
67
67
|
const SvgIcon = (props) => {
|
|
68
68
|
const { size, innerRef, containerProps, paths, fill, viewBox, children, component } = props;
|
|
69
|
-
const _a = (0,
|
|
69
|
+
const _a = (0, import_ds_utilities.useGetGlobalAttributes)(props), { className, width, height, style, color } = _a, restGlobals = __objRest(_a, ["className", "width", "height", "style", "color"]);
|
|
70
70
|
const defaultWidth = width ?? viewBox.split(" ")[2];
|
|
71
71
|
const defaultHeight = height ?? viewBox.split(" ")[3];
|
|
72
|
-
const xstyledProps = (0,
|
|
72
|
+
const xstyledProps = (0, import_ds_utilities.useGetXstyledProps)(props);
|
|
73
73
|
const { cssClassName } = (0, import_ds_classnames.convertPropToCssClassName)("icon", className, {
|
|
74
74
|
size,
|
|
75
75
|
color
|
|
@@ -91,7 +91,7 @@ const SvgIcon = (props) => {
|
|
|
91
91
|
}, children ? children : renderPaths(paths)));
|
|
92
92
|
};
|
|
93
93
|
SvgIcon.propTypes = import_react_desc_prop_types.propTypes;
|
|
94
|
-
const IconWithSchema = (0,
|
|
94
|
+
const IconWithSchema = (0, import_ds_utilities.describe)(SvgIcon);
|
|
95
95
|
IconWithSchema.propTypes = import_react_desc_prop_types.propTypes;
|
|
96
96
|
var SvgIcon_default = SvgIcon;
|
|
97
97
|
//# sourceMappingURL=SvgIcon.js.map
|
|
@@ -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, { WeakValidationMap } from 'react';\nimport { describe, useGetGlobalAttributes, useGetXstyledProps } from '@elliemae/ds-
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,mBAAyC;AACzC,
|
|
4
|
+
"sourcesContent": ["/* eslint-disable react/no-array-index-key */\nimport React, { WeakValidationMap } from 'react';\nimport { describe, useGetGlobalAttributes, useGetXstyledProps } from '@elliemae/ds-utilities';\nimport { convertPropToCssClassName } from '@elliemae/ds-classnames';\nimport { propTypes, SvgIconT } from './react-desc-prop-types';\nimport { StyledSvg, StyledWrapper } from './styled';\nconst renderPaths = (paths: string[]) => paths.map((p, i) => <path key={i} d={p} />);\n\nconst SvgIcon: React.ComponentType<SvgIconT.Props> = (props) => {\n const { size, innerRef, containerProps, paths, fill, viewBox, children, component } = props;\n\n const { className, width, height, style, color, ...restGlobals } = useGetGlobalAttributes(props);\n\n const defaultWidth = width ?? viewBox.split(' ')[2];\n const defaultHeight = height ?? viewBox.split(' ')[3];\n\n const xstyledProps = useGetXstyledProps(props);\n const { cssClassName } = convertPropToCssClassName('icon', className, {\n size,\n color,\n });\n\n return (\n <StyledWrapper\n as={component}\n ref={innerRef}\n className={cssClassName}\n {...restGlobals}\n {...containerProps}\n {...xstyledProps}\n style={style}\n height={!size ? defaultHeight : undefined}\n width={!size ? defaultWidth : undefined}\n svgColor={color}\n >\n <StyledSvg\n fill={fill}\n viewBox={viewBox}\n width={!size ? defaultWidth : undefined}\n height={!size ? defaultHeight : undefined}\n >\n {children ? children : renderPaths(paths)}\n </StyledSvg>\n </StyledWrapper>\n );\n};\n\nSvgIcon.propTypes = propTypes;\n\nconst IconWithSchema = describe(SvgIcon);\nIconWithSchema.propTypes = propTypes as WeakValidationMap<unknown>;\n\nexport { IconWithSchema, SvgIcon };\nexport default SvgIcon;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,mBAAyC;AACzC,0BAAqE;AACrE,2BAA0C;AAC1C,mCAAoC;AACpC,oBAAyC;AACzC,MAAM,cAAc,CAAC,UAAoB,MAAM,IAAI,CAAC,GAAG,MAAM,mDAAC;AAAA,EAAK,KAAK;AAAA,EAAG,GAAG;AAAA,CAAG,CAAE;AAEnF,MAAM,UAA+C,CAAC,UAAU;AAC9D,QAAM,EAAE,MAAM,UAAU,gBAAgB,OAAO,MAAM,SAAS,UAAU,cAAc;AAEtF,QAAmE,qDAAuB,KAAK,GAAvF,aAAW,OAAO,QAAQ,OAAO,UAA0B,IAAhB,wBAAgB,IAAhB,CAA3C,aAAW,SAAO,UAAQ,SAAO;AAEzC,QAAM,eAAe,SAAS,QAAQ,MAAM,GAAG,EAAE;AACjD,QAAM,gBAAgB,UAAU,QAAQ,MAAM,GAAG,EAAE;AAEnD,QAAM,eAAe,4CAAmB,KAAK;AAC7C,QAAM,EAAE,iBAAiB,oDAA0B,QAAQ,WAAW;AAAA,IACpE;AAAA,IACA;AAAA,EACF,CAAC;AAED,SACE,mDAAC;AAAA,IACC,IAAI;AAAA,IACJ,KAAK;AAAA,IACL,WAAW;AAAA,KACP,cACA,iBACA,eANL;AAAA,IAOC;AAAA,IACA,QAAQ,CAAC,OAAO,gBAAgB;AAAA,IAChC,OAAO,CAAC,OAAO,eAAe;AAAA,IAC9B,UAAU;AAAA,MAEV,mDAAC;AAAA,IACC;AAAA,IACA;AAAA,IACA,OAAO,CAAC,OAAO,eAAe;AAAA,IAC9B,QAAQ,CAAC,OAAO,gBAAgB;AAAA,KAE/B,WAAW,WAAW,YAAY,KAAK,CAC1C,CACF;AAEJ;AAEA,QAAQ,YAAY;AAEpB,MAAM,iBAAiB,kCAAS,OAAO;AACvC,eAAe,YAAY;AAG3B,IAAO,kBAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -25,32 +25,32 @@ __export(react_desc_prop_types_exports, {
|
|
|
25
25
|
});
|
|
26
26
|
module.exports = __toCommonJS(react_desc_prop_types_exports);
|
|
27
27
|
var React = __toESM(require("react"));
|
|
28
|
-
var
|
|
28
|
+
var import_ds_utilities = require("@elliemae/ds-utilities");
|
|
29
29
|
const defaultProps = {
|
|
30
30
|
component: "span",
|
|
31
31
|
viewBox: "0 0 24 24",
|
|
32
32
|
containerProps: {}
|
|
33
33
|
};
|
|
34
34
|
const propTypes = {
|
|
35
|
-
containerProps:
|
|
36
|
-
size:
|
|
37
|
-
color:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
35
|
+
containerProps: import_ds_utilities.PropTypes.object.description("set of properties attached to the main container"),
|
|
36
|
+
size: import_ds_utilities.PropTypes.oneOf(["xxs", "xs", "s", "m", "l", "xl", "xxl"]).description("size of the icon"),
|
|
37
|
+
color: import_ds_utilities.PropTypes.oneOfType([
|
|
38
|
+
import_ds_utilities.PropTypes.tuple([import_ds_utilities.PropTypes.oneOf(["neutral"]), import_ds_utilities.PropTypes.oneOf(["900"])]),
|
|
39
|
+
import_ds_utilities.PropTypes.tuple([import_ds_utilities.PropTypes.oneOf(["neutral"]), import_ds_utilities.PropTypes.oneOf(["500"])]),
|
|
40
|
+
import_ds_utilities.PropTypes.tuple([import_ds_utilities.PropTypes.oneOf(["neutral"]), import_ds_utilities.PropTypes.oneOf(["0"])]),
|
|
41
|
+
import_ds_utilities.PropTypes.tuple([import_ds_utilities.PropTypes.oneOf(["danger"]), import_ds_utilities.PropTypes.oneOf(["900"])]),
|
|
42
|
+
import_ds_utilities.PropTypes.tuple([import_ds_utilities.PropTypes.oneOf(["warning"]), import_ds_utilities.PropTypes.oneOf(["600"])]),
|
|
43
|
+
import_ds_utilities.PropTypes.tuple([import_ds_utilities.PropTypes.oneOf(["warning"]), import_ds_utilities.PropTypes.oneOf(["900"])]),
|
|
44
|
+
import_ds_utilities.PropTypes.tuple([import_ds_utilities.PropTypes.oneOf(["success"]), import_ds_utilities.PropTypes.oneOf(["900"])]),
|
|
45
|
+
import_ds_utilities.PropTypes.tuple([import_ds_utilities.PropTypes.oneOf(["brand-primary"]), import_ds_utilities.PropTypes.oneOf(["600"])]),
|
|
46
|
+
import_ds_utilities.PropTypes.tuple([import_ds_utilities.PropTypes.oneOf(["brand-primary"]), import_ds_utilities.PropTypes.oneOf(["700"])])
|
|
47
47
|
]).description("icon color"),
|
|
48
|
-
className:
|
|
49
|
-
component:
|
|
50
|
-
viewBox:
|
|
51
|
-
paths:
|
|
52
|
-
fill:
|
|
53
|
-
innerRef:
|
|
54
|
-
title:
|
|
48
|
+
className: import_ds_utilities.PropTypes.string.description("html class attribute"),
|
|
49
|
+
component: import_ds_utilities.PropTypes.oneOfType([import_ds_utilities.PropTypes.string, import_ds_utilities.PropTypes.node]).description("containers element"),
|
|
50
|
+
viewBox: import_ds_utilities.PropTypes.string.description("view box"),
|
|
51
|
+
paths: import_ds_utilities.PropTypes.oneOfType([import_ds_utilities.PropTypes.string, import_ds_utilities.PropTypes.arrayOf(import_ds_utilities.PropTypes.string)]).description(""),
|
|
52
|
+
fill: import_ds_utilities.PropTypes.string.description("fill attribute"),
|
|
53
|
+
innerRef: import_ds_utilities.PropTypes.object.description("inner ref"),
|
|
54
|
+
title: import_ds_utilities.PropTypes.object.description("Adds a title html element to the svg.")
|
|
55
55
|
};
|
|
56
56
|
//# sourceMappingURL=react-desc-prop-types.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/utils/react-desc-prop-types.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import { PropTypes } from '@elliemae/ds-
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,
|
|
4
|
+
"sourcesContent": ["import { PropTypes } from '@elliemae/ds-utilities';\nexport declare namespace SvgIconT {\n export type SizeType = 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl';\n\n export type ColorType =\n | ['neutral', '900']\n | ['neutral', '500']\n | ['neutral', '0']\n | ['danger', '900']\n | ['warning', '600']\n | ['success', '900']\n | ['brand-primary', '600'];\n\n export interface Props {\n component: React.ComponentType | 'span';\n viewBox: string;\n containerProps: object;\n size?: SvgIconT.SizeType;\n color?: SvgIconT.ColorType;\n paths?: string[];\n fill?: string;\n innerRef?: React.MutableRefObject<HTMLElement>;\n width?: number;\n height?: number;\n }\n}\n\nexport const defaultProps: Partial<SvgIconT.Props> = {\n component: 'span',\n viewBox: '0 0 24 24',\n containerProps: {},\n};\n\nexport const propTypes = {\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 PropTypes.tuple([PropTypes.oneOf(['brand-primary']), PropTypes.oneOf(['700'])]),\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};\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,0BAA0B;AA2BnB,MAAM,eAAwC;AAAA,EACnD,WAAW;AAAA,EACX,SAAS;AAAA,EACT,gBAAgB,CAAC;AACnB;AAEO,MAAM,YAAY;AAAA,EACvB,gBAAgB,8BAAU,OAAO,YAAY,kDAAkD;AAAA,EAC/F,MAAM,8BAAU,MAAM,CAAC,OAAO,MAAM,KAAK,KAAK,KAAK,MAAM,KAAK,CAAC,EAAE,YAAY,kBAAkB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AAS,8BAAU,OAAO,YAAY,UAAU;AAAA,EAChD,OAAO,8BAAU,UAAU,CAAC,8BAAU,QAAQ,8BAAU,QAAQ,8BAAU,MAAM,CAAC,CAAC,EAAE,YAAY,EAAE;AAAA,EAClG,MAAM,8BAAU,OAAO,YAAY,gBAAgB;AAAA,EACnD,UAAU,8BAAU,OAAO,YAAY,WAAW;AAAA,EAClD,OAAO,8BAAU,OAAO,YAAY,uCAAuC;AAC7E;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -31,7 +31,7 @@ var __objRest = (source, exclude) => {
|
|
|
31
31
|
};
|
|
32
32
|
import * as React from "react";
|
|
33
33
|
import React2 from "react";
|
|
34
|
-
import { describe, useGetGlobalAttributes, useGetXstyledProps } from "@elliemae/ds-
|
|
34
|
+
import { describe, useGetGlobalAttributes, useGetXstyledProps } from "@elliemae/ds-utilities";
|
|
35
35
|
import { convertPropToCssClassName } from "@elliemae/ds-classnames";
|
|
36
36
|
import { propTypes } from "./react-desc-prop-types";
|
|
37
37
|
import { StyledSvg, StyledWrapper } from "./styled";
|
|
@@ -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, { WeakValidationMap } from 'react';\nimport { describe, useGetGlobalAttributes, useGetXstyledProps } from '@elliemae/ds-
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable react/no-array-index-key */\nimport React, { WeakValidationMap } from 'react';\nimport { describe, useGetGlobalAttributes, useGetXstyledProps } from '@elliemae/ds-utilities';\nimport { convertPropToCssClassName } from '@elliemae/ds-classnames';\nimport { propTypes, SvgIconT } from './react-desc-prop-types';\nimport { StyledSvg, StyledWrapper } from './styled';\nconst renderPaths = (paths: string[]) => paths.map((p, i) => <path key={i} d={p} />);\n\nconst SvgIcon: React.ComponentType<SvgIconT.Props> = (props) => {\n const { size, innerRef, containerProps, paths, fill, viewBox, children, component } = props;\n\n const { className, width, height, style, color, ...restGlobals } = useGetGlobalAttributes(props);\n\n const defaultWidth = width ?? viewBox.split(' ')[2];\n const defaultHeight = height ?? viewBox.split(' ')[3];\n\n const xstyledProps = useGetXstyledProps(props);\n const { cssClassName } = convertPropToCssClassName('icon', className, {\n size,\n color,\n });\n\n return (\n <StyledWrapper\n as={component}\n ref={innerRef}\n className={cssClassName}\n {...restGlobals}\n {...containerProps}\n {...xstyledProps}\n style={style}\n height={!size ? defaultHeight : undefined}\n width={!size ? defaultWidth : undefined}\n svgColor={color}\n >\n <StyledSvg\n fill={fill}\n viewBox={viewBox}\n width={!size ? defaultWidth : undefined}\n height={!size ? defaultHeight : undefined}\n >\n {children ? children : renderPaths(paths)}\n </StyledSvg>\n </StyledWrapper>\n );\n};\n\nSvgIcon.propTypes = propTypes;\n\nconst IconWithSchema = describe(SvgIcon);\nIconWithSchema.propTypes = propTypes as WeakValidationMap<unknown>;\n\nexport { IconWithSchema, SvgIcon };\nexport default SvgIcon;\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;ACCA;AACA;AACA;AACA;AACA;AACA,MAAM,cAAc,CAAC,UAAoB,MAAM,IAAI,CAAC,GAAG,MAAM,qCAAC;AAAA,EAAK,KAAK;AAAA,EAAG,GAAG;AAAA,CAAG,CAAE;AAEnF,MAAM,UAA+C,CAAC,UAAU;AAC9D,QAAM,EAAE,MAAM,UAAU,gBAAgB,OAAO,MAAM,SAAS,UAAU,cAAc;AAEtF,QAAmE,4BAAuB,KAAK,GAAvF,aAAW,OAAO,QAAQ,OAAO,UAA0B,IAAhB,wBAAgB,IAAhB,CAA3C,aAAW,SAAO,UAAQ,SAAO;AAEzC,QAAM,eAAe,SAAS,QAAQ,MAAM,GAAG,EAAE;AACjD,QAAM,gBAAgB,UAAU,QAAQ,MAAM,GAAG,EAAE;AAEnD,QAAM,eAAe,mBAAmB,KAAK;AAC7C,QAAM,EAAE,iBAAiB,0BAA0B,QAAQ,WAAW;AAAA,IACpE;AAAA,IACA;AAAA,EACF,CAAC;AAED,SACE,qCAAC;AAAA,IACC,IAAI;AAAA,IACJ,KAAK;AAAA,IACL,WAAW;AAAA,KACP,cACA,iBACA,eANL;AAAA,IAOC;AAAA,IACA,QAAQ,CAAC,OAAO,gBAAgB;AAAA,IAChC,OAAO,CAAC,OAAO,eAAe;AAAA,IAC9B,UAAU;AAAA,MAEV,qCAAC;AAAA,IACC;AAAA,IACA;AAAA,IACA,OAAO,CAAC,OAAO,eAAe;AAAA,IAC9B,QAAQ,CAAC,OAAO,gBAAgB;AAAA,KAE/B,WAAW,WAAW,YAAY,KAAK,CAC1C,CACF;AAEJ;AAEA,QAAQ,YAAY;AAEpB,MAAM,iBAAiB,SAAS,OAAO;AACvC,eAAe,YAAY;AAG3B,IAAO,kBAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/utils/react-desc-prop-types.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { PropTypes } from '@elliemae/ds-
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { PropTypes } from '@elliemae/ds-utilities';\nexport declare namespace SvgIconT {\n export type SizeType = 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl';\n\n export type ColorType =\n | ['neutral', '900']\n | ['neutral', '500']\n | ['neutral', '0']\n | ['danger', '900']\n | ['warning', '600']\n | ['success', '900']\n | ['brand-primary', '600'];\n\n export interface Props {\n component: React.ComponentType | 'span';\n viewBox: string;\n containerProps: object;\n size?: SvgIconT.SizeType;\n color?: SvgIconT.ColorType;\n paths?: string[];\n fill?: string;\n innerRef?: React.MutableRefObject<HTMLElement>;\n width?: number;\n height?: number;\n }\n}\n\nexport const defaultProps: Partial<SvgIconT.Props> = {\n component: 'span',\n viewBox: '0 0 24 24',\n containerProps: {},\n};\n\nexport const propTypes = {\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 PropTypes.tuple([PropTypes.oneOf(['brand-primary']), PropTypes.oneOf(['700'])]),\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};\n"],
|
|
5
5
|
"mappings": "AAAA;ACAA;AA2BO,MAAM,eAAwC;AAAA,EACnD,WAAW;AAAA,EACX,SAAS;AAAA,EACT,gBAAgB,CAAC;AACnB;AAEO,MAAM,YAAY;AAAA,EACvB,gBAAgB,UAAU,OAAO,YAAY,k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U,CAAC,UAAU,QAAQ,UAAU,IAAI,CAAC,EAAE,YAAY,oBAAoB;AAAA,EACnG,SAAS,UAAU,OAAO,YAAY,UAAU;AAAA,EAChD,OAAO,UAAU,UAAU,CAAC,UAAU,QAAQ,UAAU,QAAQ,UAAU,MAAM,CAAC,CAAC,EAAE,YAAY,EAAE;AAAA,EAClG,MAAM,UAAU,OAAO,YAAY,gBAAgB;AAAA,EACnD,UAAU,UAAU,OAAO,YAAY,WAAW;AAAA,EAClD,OAAO,UAAU,OAAO,YAAY,uCAAuC;AAC7E;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-icons",
|
|
3
|
-
"version": "3.0.0-next.
|
|
3
|
+
"version": "3.0.0-next.48",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Icons",
|
|
6
6
|
"files": [
|
|
@@ -1571,8 +1571,8 @@
|
|
|
1571
1571
|
"indent": 4
|
|
1572
1572
|
},
|
|
1573
1573
|
"dependencies": {
|
|
1574
|
-
"@elliemae/ds-classnames": "3.0.0-next.
|
|
1575
|
-
"@elliemae/ds-utilities": "3.0.0-next.
|
|
1574
|
+
"@elliemae/ds-classnames": "3.0.0-next.48",
|
|
1575
|
+
"@elliemae/ds-utilities": "3.0.0-next.48",
|
|
1576
1576
|
"react-desc": "~4.1.3"
|
|
1577
1577
|
},
|
|
1578
1578
|
"peerDependencies": {
|