@coorpacademy/components 11.27.0 → 11.28.0

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/icon/index.js"],"names":[],"mappings":"AAgBA,mDAAoD;AAiB7C,iEACoE;;AAE3E,uDA6BG"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/icon/index.js"],"names":[],"mappings":"AAiBA,mDAAoD;AAiB7C,iEACoE;;AAE3E,uDAgCG"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import PropTypes from 'prop-types';
2
+ import PropTypes, { number } from 'prop-types';
3
3
  import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
4
4
  import { fas } from '@fortawesome/pro-solid-svg-icons';
5
5
  import { library } from '@fortawesome/fontawesome-svg-core';
@@ -12,18 +12,19 @@ library.add(fas);
12
12
  const DEFAULT_PRESET = 'm';
13
13
  const ICON_LUMINOSITY = 32;
14
14
  const DEFAULT_WRAPPER_SIZE = 40;
15
+ const ICON_PADDING = 8;
15
16
  export const DEFAULT_ICON_COLOR = 'hsl(0, 0%, 32%)';
16
17
  const SIZE_CONFIGS = {
17
18
  s: {
18
- faSize: 'sm',
19
+ faSize: 12,
19
20
  wrapperSize: 32
20
21
  },
21
22
  m: {
22
- faSize: 'lg',
23
+ faSize: 16,
23
24
  wrapperSize: DEFAULT_WRAPPER_SIZE
24
25
  },
25
26
  xl: {
26
- faSize: 'xl',
27
+ faSize: 20,
27
28
  wrapperSize: 48
28
29
  }
29
30
  };
@@ -39,10 +40,12 @@ const Icon = /*#__PURE__*/React.memo(function Icon({
39
40
  }) {
40
41
  const effectiveIconColor = iconColor || backgroundColor ? getForegroundColor(backgroundColor) : DEFAULT_ICON_COLOR;
41
42
  const effectiveSize = size ? merge(SIZE_CONFIGS[DEFAULT_PRESET], size) : getOr(SIZE_CONFIGS[DEFAULT_PRESET], toLower(preset), SIZE_CONFIGS);
43
+ const wrapperSize = effectiveSize.wrapperSize - ICON_PADDING * 2;
42
44
  const iconWrapperStyle = {
43
45
  backgroundColor,
44
- width: effectiveSize.wrapperSize,
45
- height: effectiveSize.wrapperSize
46
+ width: wrapperSize,
47
+ height: wrapperSize,
48
+ padding: ICON_PADDING
46
49
  };
47
50
  return /*#__PURE__*/React.createElement("div", {
48
51
  className: style.iconWrapper,
@@ -50,7 +53,7 @@ const Icon = /*#__PURE__*/React.memo(function Icon({
50
53
  }, /*#__PURE__*/React.createElement(FontAwesomeIcon, {
51
54
  icon: `fa-${iconName}`,
52
55
  color: effectiveIconColor,
53
- size: effectiveSize.faSize
56
+ "font-size": effectiveSize.faSize
54
57
  }));
55
58
  });
56
59
  Icon.propTypes = process.env.NODE_ENV !== "production" ? {
@@ -59,7 +62,7 @@ Icon.propTypes = process.env.NODE_ENV !== "production" ? {
59
62
  backgroundColor: PropTypes.string,
60
63
  preset: PropTypes.oneOf(['s', 'm', 'xl']),
61
64
  size: PropTypes.shape({
62
- faSize: PropTypes.oneOf(['2xs', 'xs', 'sm', 'lg', 'xl', '2xl', '1x', '2x', '3x', '4x', '5x', '6x', '7x', '8x', '9x', '10x']),
65
+ faSize: number,
63
66
  wrapperSize: PropTypes.number
64
67
  })
65
68
  } : {};
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","PropTypes","FontAwesomeIcon","fas","library","toLower","merge","getOr","Color","style","add","DEFAULT_PRESET","ICON_LUMINOSITY","DEFAULT_WRAPPER_SIZE","DEFAULT_ICON_COLOR","SIZE_CONFIGS","s","faSize","wrapperSize","m","xl","getForegroundColor","backgroundColor","to","set","l","toString","Icon","memo","iconName","iconColor","preset","size","effectiveIconColor","effectiveSize","iconWrapperStyle","width","height","iconWrapper","propTypes","string","isRequired","oneOf","shape","number"],"sources":["../../../src/atom/icon/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {fas} from '@fortawesome/pro-solid-svg-icons';\nimport {library} from '@fortawesome/fontawesome-svg-core';\nimport toLower from 'lodash/fp/toLower';\nimport merge from 'lodash/fp/merge';\nimport getOr from 'lodash/fp/getOr';\nimport Color from 'colorjs.io';\nimport style from './style.css';\n\nlibrary.add(fas);\n\nconst DEFAULT_PRESET = 'm';\nconst ICON_LUMINOSITY = 32;\nconst DEFAULT_WRAPPER_SIZE = 40;\nexport const DEFAULT_ICON_COLOR = 'hsl(0, 0%, 32%)';\n\nconst SIZE_CONFIGS = {\n s: {\n faSize: 'sm',\n wrapperSize: 32\n },\n m: {\n faSize: 'lg',\n wrapperSize: DEFAULT_WRAPPER_SIZE\n },\n xl: {\n faSize: 'xl',\n wrapperSize: 48\n }\n};\n\nexport const getForegroundColor = backgroundColor =>\n new Color(backgroundColor).to('hsl').set({l: ICON_LUMINOSITY}).toString();\n\nconst Icon = React.memo(function Icon({\n iconName,\n iconColor,\n backgroundColor,\n preset = DEFAULT_PRESET,\n size\n}) {\n const effectiveIconColor =\n iconColor || backgroundColor ? getForegroundColor(backgroundColor) : DEFAULT_ICON_COLOR;\n\n const effectiveSize = size\n ? merge(SIZE_CONFIGS[DEFAULT_PRESET], size)\n : getOr(SIZE_CONFIGS[DEFAULT_PRESET], toLower(preset), SIZE_CONFIGS);\n\n const iconWrapperStyle = {\n backgroundColor,\n width: effectiveSize.wrapperSize,\n height: effectiveSize.wrapperSize\n };\n\n return (\n <div className={style.iconWrapper} style={iconWrapperStyle}>\n <FontAwesomeIcon\n icon={`fa-${iconName}`}\n color={effectiveIconColor}\n size={effectiveSize.faSize}\n />\n </div>\n );\n});\n\nIcon.propTypes = {\n iconName: PropTypes.string.isRequired,\n iconColor: PropTypes.string,\n backgroundColor: PropTypes.string,\n preset: PropTypes.oneOf(['s', 'm', 'xl']),\n size: PropTypes.shape({\n faSize: PropTypes.oneOf([\n '2xs',\n 'xs',\n 'sm',\n 'lg',\n 'xl',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EAatB,IAbsB,EActB,IAdsB,EAetB,IAfsB,EAgBtB,KAhBsB,CAAhB,CADY;IAmBpBxB,WAAW,EAAEjB,SAAS,CAAC2C;EAnBH,CAAhB;AALS,CAAjB;AA4BA,eAAejB,IAAf"}
1
+ {"version":3,"file":"index.js","names":["React","PropTypes","number","FontAwesomeIcon","fas","library","toLower","merge","getOr","Color","style","add","DEFAULT_PRESET","ICON_LUMINOSITY","DEFAULT_WRAPPER_SIZE","ICON_PADDING","DEFAULT_ICON_COLOR","SIZE_CONFIGS","s","faSize","wrapperSize","m","xl","getForegroundColor","backgroundColor","to","set","l","toString","Icon","memo","iconName","iconColor","preset","size","effectiveIconColor","effectiveSize","iconWrapperStyle","width","height","padding","iconWrapper","propTypes","string","isRequired","oneOf","shape"],"sources":["../../../src/atom/icon/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes, {number} from 'prop-types';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {fas} from '@fortawesome/pro-solid-svg-icons';\nimport {library} from '@fortawesome/fontawesome-svg-core';\nimport toLower from 'lodash/fp/toLower';\nimport merge from 'lodash/fp/merge';\nimport getOr from 'lodash/fp/getOr';\nimport Color from 'colorjs.io';\nimport style from './style.css';\n\nlibrary.add(fas);\n\nconst DEFAULT_PRESET = 'm';\nconst ICON_LUMINOSITY = 32;\nconst DEFAULT_WRAPPER_SIZE = 40;\nconst ICON_PADDING = 8;\nexport const DEFAULT_ICON_COLOR = 'hsl(0, 0%, 32%)';\n\nconst SIZE_CONFIGS = {\n s: {\n faSize: 12,\n wrapperSize: 32\n },\n m: {\n faSize: 16,\n wrapperSize: DEFAULT_WRAPPER_SIZE\n },\n xl: {\n faSize: 20,\n wrapperSize: 48\n }\n};\n\nexport const getForegroundColor = backgroundColor =>\n new Color(backgroundColor).to('hsl').set({l: ICON_LUMINOSITY}).toString();\n\nconst Icon = React.memo(function Icon({\n iconName,\n iconColor,\n backgroundColor,\n preset = DEFAULT_PRESET,\n size\n}) {\n const effectiveIconColor =\n iconColor || backgroundColor ? getForegroundColor(backgroundColor) : DEFAULT_ICON_COLOR;\n\n const effectiveSize = size\n ? merge(SIZE_CONFIGS[DEFAULT_PRESET], size)\n : getOr(SIZE_CONFIGS[DEFAULT_PRESET], toLower(preset), SIZE_CONFIGS);\n\n const wrapperSize = effectiveSize.wrapperSize - ICON_PADDING * 2;\n\n const iconWrapperStyle = {\n backgroundColor,\n width: wrapperSize,\n height: wrapperSize,\n padding: ICON_PADDING\n };\n\n return (\n <div className={style.iconWrapper} style={iconWrapperStyle}>\n <FontAwesomeIcon\n icon={`fa-${iconName}`}\n color={effectiveIconColor}\n font-size={effectiveSize.faSize}\n />\n </div>\n );\n});\n\nIcon.propTypes = {\n iconName: PropTypes.string.isRequired,\n iconColor: PropTypes.string,\n backgroundColor: PropTypes.string,\n preset: PropTypes.oneOf(['s', 'm', 'xl']),\n size: PropTypes.shape({\n faSize: number,\n wrapperSize: PropTypes.number\n })\n};\n\nexport default Icon;\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,IAAmBC,MAAnB,QAAgC,YAAhC;AACA,SAAQC,eAAR,QAA8B,gCAA9B;AACA,SAAQC,GAAR,QAAkB,kCAAlB;AACA,SAAQC,OAAR,QAAsB,mCAAtB;AACA,OAAOC,OAAP,MAAoB,mBAApB;AACA,OAAOC,KAAP,MAAkB,iBAAlB;AACA,OAAOC,KAAP,MAAkB,iBAAlB;AACA,OAAOC,KAAP,MAAkB,YAAlB;AACA,OAAOC,KAAP,MAAkB,aAAlB;AAEAL,OAAO,CAACM,GAAR,CAAYP,GAAZ;AAEA,MAAMQ,cAAc,GAAG,GAAvB;AACA,MAAMC,eAAe,GAAG,EAAxB;AACA,MAAMC,oBAAoB,GAAG,EAA7B;AACA,MAAMC,YAAY,GAAG,CAArB;AACA,OAAO,MAAMC,kBAAkB,GAAG,iBAA3B;AAEP,MAAMC,YAAY,GAAG;EACnBC,CAAC,EAAE;IACD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EAAEI,kBAFT;IAGE,aAAWC,aAAa,CAACjB;EAH3B,EADF,CADF;AASD,CAhCY,CAAb;AAkCAU,IAAI,CAACa,SAAL,2CAAiB;EACfX,QAAQ,EAAE9B,SAAS,CAAC0C,MAAV,CAAiBC,UADZ;EAEfZ,SAAS,EAAE/B,SAAS,CAAC0C,MAFN;EAGfnB,eAAe,EAAEvB,SAAS,CAAC0C,MAHZ;EAIfV,MAAM,EAAEhC,SAAS,CAAC4C,KAAV,CAAgB,CAAC,GAAD,EAAM,GAAN,EAAW,IAAX,CAAhB,CAJO;EAKfX,IAAI,EAAEjC,SAAS,CAAC6C,KAAV,CAAgB;IACpB3B,MAAM,EAAEjB,MADY;IAEpBkB,WAAW,EAAEnB,SAAS,CAACC;EAFH,CAAhB;AALS,CAAjB;AAWA,eAAe2B,IAAf"}
@@ -1,5 +1,4 @@
1
1
  .iconWrapper {
2
- padding: 8px;
3
2
  border-radius: 8px;
4
3
  display: flex;
5
4
  align-items: center;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/icon/index.js"],"names":[],"mappings":"AAgBA,mDAAoD;AAiB7C,iEACoE;;AAE3E,uDA6BG"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/icon/index.js"],"names":[],"mappings":"AAiBA,mDAAoD;AAiB7C,iEACoE;;AAE3E,uDAgCG"}
@@ -5,7 +5,7 @@ exports.getForegroundColor = exports.default = exports.DEFAULT_ICON_COLOR = void
5
5
 
6
6
  var _react = _interopRequireDefault(require("react"));
7
7
 
8
- var _propTypes = _interopRequireDefault(require("prop-types"));
8
+ var _propTypes = _interopRequireWildcard(require("prop-types"));
9
9
 
10
10
  var _reactFontawesome = require("@fortawesome/react-fontawesome");
11
11
 
@@ -23,6 +23,10 @@ var _colorjs = _interopRequireDefault(require("colorjs.io"));
23
23
 
24
24
  var _style = _interopRequireDefault(require("./style.css"));
25
25
 
26
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
27
+
28
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
29
+
26
30
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
27
31
 
28
32
  _fontawesomeSvgCore.library.add(_proSolidSvgIcons.fas);
@@ -30,19 +34,20 @@ _fontawesomeSvgCore.library.add(_proSolidSvgIcons.fas);
30
34
  const DEFAULT_PRESET = 'm';
31
35
  const ICON_LUMINOSITY = 32;
32
36
  const DEFAULT_WRAPPER_SIZE = 40;
37
+ const ICON_PADDING = 8;
33
38
  const DEFAULT_ICON_COLOR = 'hsl(0, 0%, 32%)';
34
39
  exports.DEFAULT_ICON_COLOR = DEFAULT_ICON_COLOR;
35
40
  const SIZE_CONFIGS = {
36
41
  s: {
37
- faSize: 'sm',
42
+ faSize: 12,
38
43
  wrapperSize: 32
39
44
  },
40
45
  m: {
41
- faSize: 'lg',
46
+ faSize: 16,
42
47
  wrapperSize: DEFAULT_WRAPPER_SIZE
43
48
  },
44
49
  xl: {
45
- faSize: 'xl',
50
+ faSize: 20,
46
51
  wrapperSize: 48
47
52
  }
48
53
  };
@@ -62,10 +67,12 @@ const Icon = /*#__PURE__*/_react.default.memo(function Icon({
62
67
  }) {
63
68
  const effectiveIconColor = iconColor || backgroundColor ? getForegroundColor(backgroundColor) : DEFAULT_ICON_COLOR;
64
69
  const effectiveSize = size ? (0, _merge.default)(SIZE_CONFIGS[DEFAULT_PRESET], size) : (0, _getOr.default)(SIZE_CONFIGS[DEFAULT_PRESET], (0, _toLower.default)(preset), SIZE_CONFIGS);
70
+ const wrapperSize = effectiveSize.wrapperSize - ICON_PADDING * 2;
65
71
  const iconWrapperStyle = {
66
72
  backgroundColor,
67
- width: effectiveSize.wrapperSize,
68
- height: effectiveSize.wrapperSize
73
+ width: wrapperSize,
74
+ height: wrapperSize,
75
+ padding: ICON_PADDING
69
76
  };
70
77
  return /*#__PURE__*/_react.default.createElement("div", {
71
78
  className: _style.default.iconWrapper,
@@ -73,7 +80,7 @@ const Icon = /*#__PURE__*/_react.default.memo(function Icon({
73
80
  }, /*#__PURE__*/_react.default.createElement(_reactFontawesome.FontAwesomeIcon, {
74
81
  icon: `fa-${iconName}`,
75
82
  color: effectiveIconColor,
76
- size: effectiveSize.faSize
83
+ "font-size": effectiveSize.faSize
77
84
  }));
78
85
  });
79
86
 
@@ -83,7 +90,7 @@ Icon.propTypes = process.env.NODE_ENV !== "production" ? {
83
90
  backgroundColor: _propTypes.default.string,
84
91
  preset: _propTypes.default.oneOf(['s', 'm', 'xl']),
85
92
  size: _propTypes.default.shape({
86
- faSize: _propTypes.default.oneOf(['2xs', 'xs', 'sm', 'lg', 'xl', '2xl', '1x', '2x', '3x', '4x', '5x', '6x', '7x', '8x', '9x', '10x']),
93
+ faSize: _propTypes.number,
87
94
  wrapperSize: _propTypes.default.number
88
95
  })
89
96
  } : {};
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["library","add","fas","DEFAULT_PRESET","ICON_LUMINOSITY","DEFAULT_WRAPPER_SIZE","DEFAULT_ICON_COLOR","SIZE_CONFIGS","s","faSize","wrapperSize","m","xl","getForegroundColor","backgroundColor","Color","to","set","l","toString","Icon","React","memo","iconName","iconColor","preset","size","effectiveIconColor","effectiveSize","merge","getOr","toLower","iconWrapperStyle","width","height","style","iconWrapper","propTypes","PropTypes","string","isRequired","oneOf","shape","number"],"sources":["../../../src/atom/icon/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {fas} from '@fortawesome/pro-solid-svg-icons';\nimport {library} from '@fortawesome/fontawesome-svg-core';\nimport toLower from 'lodash/fp/toLower';\nimport merge from 'lodash/fp/merge';\nimport getOr from 'lodash/fp/getOr';\nimport Color from 'colorjs.io';\nimport style from './style.css';\n\nlibrary.add(fas);\n\nconst DEFAULT_PRESET = 'm';\nconst ICON_LUMINOSITY = 32;\nconst DEFAULT_WRAPPER_SIZE = 40;\nexport const DEFAULT_ICON_COLOR = 'hsl(0, 0%, 32%)';\n\nconst SIZE_CONFIGS = {\n s: {\n faSize: 'sm',\n wrapperSize: 32\n },\n m: {\n faSize: 'lg',\n wrapperSize: DEFAULT_WRAPPER_SIZE\n },\n xl: {\n faSize: 'xl',\n wrapperSize: 48\n }\n};\n\nexport const getForegroundColor = backgroundColor =>\n new Color(backgroundColor).to('hsl').set({l: ICON_LUMINOSITY}).toString();\n\nconst Icon = React.memo(function Icon({\n iconName,\n iconColor,\n backgroundColor,\n preset = DEFAULT_PRESET,\n size\n}) {\n const effectiveIconColor =\n iconColor || backgroundColor ? getForegroundColor(backgroundColor) : DEFAULT_ICON_COLOR;\n\n const effectiveSize = size\n ? merge(SIZE_CONFIGS[DEFAULT_PRESET], size)\n : getOr(SIZE_CONFIGS[DEFAULT_PRESET], toLower(preset), SIZE_CONFIGS);\n\n const iconWrapperStyle = {\n backgroundColor,\n width: effectiveSize.wrapperSize,\n height: effectiveSize.wrapperSize\n };\n\n return (\n <div className={style.iconWrapper} style={iconWrapperStyle}>\n <FontAwesomeIcon\n icon={`fa-${iconName}`}\n color={effectiveIconColor}\n size={effectiveSize.faSize}\n />\n </div>\n );\n});\n\nIcon.propTypes = {\n iconName: PropTypes.string.isRequired,\n iconColor: PropTypes.string,\n backgroundColor: PropTypes.string,\n preset: PropTypes.oneOf(['s', 'm', 'xl']),\n size: PropTypes.shape({\n faSize: PropTypes.oneOf([\n '2xs',\n 'xs',\n 'sm',\n 'lg',\n 'xl',\n '2xl',\n '1x',\n '2x',\n '3x',\n '4x',\n '5x',\n '6x',\n '7x',\n '8x',\n '9x',\n '10x'\n ]),\n wrapperSize: PropTypes.number\n })\n};\n\nexport default Icon;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEAA,2BAAA,CAAQC,GAAR,CAAYC,qBAAZ;;AAEA,MAAMC,cAAc,GAAG,GAAvB;AACA,MAAMC,eAAe,GAAG,EAAxB;AACA,MAAMC,oBAAoB,GAAG,EAA7B;AACO,MAAMC,kBAAkB,GAAG,iBAA3B;;AAEP,MAAMC,YAAY,GAAG;EACnBC,CAAC,EAAE;IACDC,MAAM,EAAE,IADP;IAEDC,WAAW,EAAE;EAFZ,CADgB;EAKnBC,CAAC,EAAE;IACDF,MAAM,EAAE,IADP;IAEDC,WAAW,EAAEL;EAFZ,CALgB;EASnBO,EAAE,EAAE;IACFH,MAAM,EAAE,IADN;IAEFC,WAAW,EAAE;EAFX;AATe,CAArB;;AAeO,MAAMG,kBAAkB,GAAGC,eAAe,IAC/C,IAAIC,gBAAJ,CAAUD,eAAV,EAA2BE,EAA3B,CAA8B,KAA9B,EAAqCC,GAArC,CAAyC;EAACC,CAAC,EAAEd;AAAJ,CAAzC,EAA+De,QAA/D,EADK;;;;AAGP,MAAMC,IAAI,gBAAGC,cAAA,CAAMC,IAAN,CAAW,SAASF,IAAT,CAAc;EACpCG,QADoC;EAEpCC,SAFoC;EAGpCV,eAHoC;EAIpCW,MAAM,GAAGtB,cAJ2B;EAKpCuB;AALoC,CAAd,EAMrB;EACD,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,IAbsB,EActB,IAdsB,EAetB,IAfsB,EAgBtB,KAhBsB,CAAhB,CADY;IAmBpB/B,WAAW,EAAE4B,kBAAA,CAAUK;EAnBH,CAAhB;AALS,CAAjB;eA4BevB,I"}
1
+ {"version":3,"file":"index.js","names":["library","add","fas","DEFAULT_PRESET","ICON_LUMINOSITY","DEFAULT_WRAPPER_SIZE","ICON_PADDING","DEFAULT_ICON_COLOR","SIZE_CONFIGS","s","faSize","wrapperSize","m","xl","getForegroundColor","backgroundColor","Color","to","set","l","toString","Icon","React","memo","iconName","iconColor","preset","size","effectiveIconColor","effectiveSize","merge","getOr","toLower","iconWrapperStyle","width","height","padding","style","iconWrapper","propTypes","PropTypes","string","isRequired","oneOf","shape","number"],"sources":["../../../src/atom/icon/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes, {number} from 'prop-types';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {fas} from '@fortawesome/pro-solid-svg-icons';\nimport {library} from '@fortawesome/fontawesome-svg-core';\nimport toLower from 'lodash/fp/toLower';\nimport merge from 'lodash/fp/merge';\nimport getOr from 'lodash/fp/getOr';\nimport Color from 'colorjs.io';\nimport style from './style.css';\n\nlibrary.add(fas);\n\nconst DEFAULT_PRESET = 'm';\nconst ICON_LUMINOSITY = 32;\nconst DEFAULT_WRAPPER_SIZE = 40;\nconst ICON_PADDING = 8;\nexport const DEFAULT_ICON_COLOR = 'hsl(0, 0%, 32%)';\n\nconst SIZE_CONFIGS = {\n s: {\n faSize: 12,\n wrapperSize: 32\n },\n m: {\n faSize: 16,\n wrapperSize: DEFAULT_WRAPPER_SIZE\n },\n xl: {\n faSize: 20,\n wrapperSize: 48\n }\n};\n\nexport const getForegroundColor = backgroundColor =>\n new Color(backgroundColor).to('hsl').set({l: ICON_LUMINOSITY}).toString();\n\nconst Icon = React.memo(function Icon({\n iconName,\n iconColor,\n backgroundColor,\n preset = DEFAULT_PRESET,\n size\n}) {\n const effectiveIconColor =\n iconColor || backgroundColor ? getForegroundColor(backgroundColor) : DEFAULT_ICON_COLOR;\n\n const effectiveSize = size\n ? merge(SIZE_CONFIGS[DEFAULT_PRESET], size)\n : getOr(SIZE_CONFIGS[DEFAULT_PRESET], toLower(preset), SIZE_CONFIGS);\n\n const wrapperSize = effectiveSize.wrapperSize - ICON_PADDING * 2;\n\n const iconWrapperStyle = {\n backgroundColor,\n width: wrapperSize,\n height: wrapperSize,\n padding: ICON_PADDING\n };\n\n return (\n <div className={style.iconWrapper} style={iconWrapperStyle}>\n <FontAwesomeIcon\n icon={`fa-${iconName}`}\n color={effectiveIconColor}\n font-size={effectiveSize.faSize}\n />\n </div>\n );\n});\n\nIcon.propTypes = {\n iconName: PropTypes.string.isRequired,\n iconColor: PropTypes.string,\n backgroundColor: PropTypes.string,\n preset: PropTypes.oneOf(['s', 'm', 'xl']),\n size: PropTypes.shape({\n faSize: number,\n wrapperSize: PropTypes.number\n })\n};\n\nexport default Icon;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;AAEAA,2BAAA,CAAQC,GAAR,CAAYC,qBAAZ;;AAEA,MAAMC,cAAc,GAAG,GAAvB;AACA,MAAMC,eAAe,GAAG,EAAxB;AACA,MAAMC,oBAAoB,GAAG,EAA7B;AACA,MAAMC,YAAY,GAAG,CAArB;AACO,MAAMC,kBAAkB,GAAG,iBAA3B;;AAEP,MAAMC,YAAY,GAAG;EACnBC,CAAC,EAAE;IACDC,MAAM,EAAE,EADP;IAEDC,WAAW,EAAE;EAFZ,CADgB;EAKnBC,CAAC,EAAE;IACDF,MAAM,EAAE,EADP;IAEDC,WAAW,EAAEN;EAFZ,CALgB;EASnBQ,EAAE,EAAE;IACFH,MAAM,EAAE,EADN;IAEFC,WAAW,EAAE;EAFX;AATe,CAArB;;AAeO,MAAMG,kBAAkB,GAAGC,eAAe,IAC/C,IAAIC,gBAAJ,CAAUD,eAAV,EAA2BE,EAA3B,CAA8B,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,CAAUG,KAAV,CAAgB,CAAC,GAAD,EAAM,GAAN,EAAW,IAAX,CAAhB,CAJO;EAKfhB,IAAI,EAAEa,kBAAA,CAAUI,KAAV,CAAgB;IACpBlC,MAAM,EAAEmC,iBADY;IAEpBlC,WAAW,EAAE6B,kBAAA,CAAUK;EAFH,CAAhB;AALS,CAAjB;eAWexB,I"}
@@ -1,5 +1,4 @@
1
1
  .iconWrapper {
2
- padding: 8px;
3
2
  border-radius: 8px;
4
3
  display: flex;
5
4
  align-items: center;
@@ -94,5 +94,10 @@
94
94
  "close_button_ariaLabel": "Zatvorite slajd za recenziju",
95
95
  "post_comment_aria_label": "Objavite svoj komentar",
96
96
  "validate_aria_label": "Potvrdite svoj odgovor i idite na sljedeći korak",
97
- "stars": "zvijezde"
97
+ "stars": "zvijezde",
98
+ "custom":{
99
+ "digitlearning": {
100
+ "comment_aria_label": "Rate this course"
101
+ }
102
+ }
98
103
  }
@@ -94,5 +94,10 @@
94
94
  "close_button_ariaLabel": "Zavřít snímek recenze",
95
95
  "post_comment_aria_label": "Zveřejnit komentář",
96
96
  "validate_aria_label": "Ověřte vlastní odpověď a přejděte k dalšímu kroku",
97
- "stars": "hvězdy"
97
+ "stars": "hvězdy",
98
+ "custom":{
99
+ "digitlearning": {
100
+ "comment_aria_label": "Rate this course"
101
+ }
102
+ }
98
103
  }
@@ -94,5 +94,10 @@
94
94
  "close_button_ariaLabel": "Bewertungsfolie schließen",
95
95
  "post_comment_aria_label": "Veröffentlichen Sie Ihren Kommentar",
96
96
  "validate_aria_label": "Bestätigen Sie Ihre Antwort und gehen Sie zum nächsten Schritt",
97
- "stars": "Sterne"
97
+ "stars": "Sterne",
98
+ "custom":{
99
+ "digitlearning": {
100
+ "comment_aria_label": "Rate this course"
101
+ }
102
+ }
98
103
  }
@@ -94,5 +94,10 @@
94
94
  "close_button_ariaLabel": "Close review slide",
95
95
  "post_comment_aria_label": "Post your comment",
96
96
  "validate_aria_label": "Validate your answer and go to next step",
97
- "stars": "stars"
97
+ "stars": "stars",
98
+ "custom":{
99
+ "digitlearning": {
100
+ "comment_aria_label": "Rate this course"
101
+ }
102
+ }
98
103
  }
@@ -94,5 +94,10 @@
94
94
  "close_button_ariaLabel": "Cerrar pantalla de reseña",
95
95
  "post_comment_aria_label": "Publique su comentario",
96
96
  "validate_aria_label": "Valide su respuesta y vaya al paso siguiente",
97
- "stars": "estrellas"
97
+ "stars": "estrellas",
98
+ "custom":{
99
+ "digitlearning": {
100
+ "comment_aria_label": "Califica este curso"
101
+ }
102
+ }
98
103
  }
@@ -94,5 +94,10 @@
94
94
  "close_button_ariaLabel": "Sulgege ülekordamise slaid",
95
95
  "post_comment_aria_label": "Postitage oma kommentaar",
96
96
  "validate_aria_label": "Kinnitage oma vastus ja minge järgmisse etappi",
97
- "stars": "tähed"
97
+ "stars": "tähed",
98
+ "custom":{
99
+ "digitlearning": {
100
+ "comment_aria_label": "Rate this course"
101
+ }
102
+ }
98
103
  }
@@ -94,5 +94,10 @@
94
94
  "close_button_ariaLabel": "Sulje tarkastusdia",
95
95
  "post_comment_aria_label": "Julkaise kommenttisi",
96
96
  "validate_aria_label": "Vahvista vastauksesi ja siirry seuraavaan vaiheeseen",
97
- "stars": "tähdet"
97
+ "stars": "tähdet",
98
+ "custom":{
99
+ "digitlearning": {
100
+ "comment_aria_label": "Rate this course"
101
+ }
102
+ }
98
103
  }
@@ -94,5 +94,10 @@
94
94
  "close_button_ariaLabel": "Fermez la diapositive de révision",
95
95
  "post_comment_aria_label": "Postez votre commentaire",
96
96
  "validate_aria_label": "Validez votre réponse et passez à l'étape suivante",
97
- "stars": "étoiles"
97
+ "stars": "étoiles",
98
+ "custom":{
99
+ "digitlearning": {
100
+ "comment_aria_label": "Notez ce cours"
101
+ }
102
+ }
98
103
  }
@@ -94,5 +94,10 @@
94
94
  "close_button_ariaLabel": "Zatvori pregledni slajd",
95
95
  "post_comment_aria_label": "Objavite svoj komentar",
96
96
  "validate_aria_label": "Potvrdite svoj odgovor i idite na sljedeći korak",
97
- "stars": "zvijezde"
97
+ "stars": "zvijezde",
98
+ "custom":{
99
+ "digitlearning": {
100
+ "comment_aria_label": "Rate this course"
101
+ }
102
+ }
98
103
  }
@@ -94,5 +94,10 @@
94
94
  "close_button_ariaLabel": "Az áttekintő dia bezárása",
95
95
  "post_comment_aria_label": "Írj hozzászólást",
96
96
  "validate_aria_label": "Hitelesítsd válaszodat és ugorj a következő lépésre",
97
- "stars": "csillagok"
97
+ "stars": "csillagok",
98
+ "custom":{
99
+ "digitlearning": {
100
+ "comment_aria_label": "Rate this course"
101
+ }
102
+ }
98
103
  }
@@ -94,5 +94,10 @@
94
94
  "close_button_ariaLabel": "Փակել վերանայման սլայդը",
95
95
  "post_comment_aria_label": "Տեղադրեք ձեր մեկնաբանությունը",
96
96
  "validate_aria_label": "Հաստատեք ձեր պատասխանը և անցեք հաջորդ քայլին",
97
- "stars": "աստղեր"
97
+ "stars": "աստղեր",
98
+ "custom":{
99
+ "digitlearning": {
100
+ "comment_aria_label": "Rate this course"
101
+ }
102
+ }
98
103
  }
@@ -94,5 +94,10 @@
94
94
  "close_button_ariaLabel": "Chiudi la slide di revisione",
95
95
  "post_comment_aria_label": "Pubblica il tuo commento",
96
96
  "validate_aria_label": "Convalida la tua risposta e vai al passaggio successivo",
97
- "stars": "stelle"
97
+ "stars": "stelle",
98
+ "custom":{
99
+ "digitlearning": {
100
+ "comment_aria_label": "Vota questo corso"
101
+ }
102
+ }
98
103
  }
@@ -94,5 +94,10 @@
94
94
  "close_button_ariaLabel": "レビュースライドを閉じる",
95
95
  "post_comment_aria_label": "コメントを投稿する",
96
96
  "validate_aria_label": "回答が正しいことを確認して次のステップに進んでください",
97
- "stars": "出演者"
97
+ "stars": "出演者",
98
+ "custom":{
99
+ "digitlearning": {
100
+ "comment_aria_label": "Rate this course"
101
+ }
102
+ }
98
103
  }
@@ -94,5 +94,10 @@
94
94
  "close_button_ariaLabel": "리뷰 슬라이드 닫기",
95
95
  "post_comment_aria_label": "의견을 작성하세요",
96
96
  "validate_aria_label": "답변을 검증한 후 다음 단계로 진행하세요",
97
- "stars": "별"
97
+ "stars": "별",
98
+ "custom":{
99
+ "digitlearning": {
100
+ "comment_aria_label": "Rate this course"
101
+ }
102
+ }
98
103
  }
@@ -94,5 +94,10 @@
94
94
  "close_button_ariaLabel": "Sluit de beoordelingsdia",
95
95
  "post_comment_aria_label": "Plaats uw reactie",
96
96
  "validate_aria_label": "Valideer uw antwoord en ga naar de volgende stap",
97
- "stars": "sterren"
97
+ "stars": "sterren",
98
+ "custom":{
99
+ "digitlearning": {
100
+ "comment_aria_label": "Beoordeel deze cursus"
101
+ }
102
+ }
98
103
  }
@@ -94,5 +94,10 @@
94
94
  "close_button_ariaLabel": "Zamknij slajd recenzji",
95
95
  "post_comment_aria_label": "Opublikuj swój komentarz",
96
96
  "validate_aria_label": "Oceń swoją odpowiedź i przejdź do kolejnego kroku",
97
- "stars": "gwiazdy"
97
+ "stars": "gwiazdy",
98
+ "custom":{
99
+ "digitlearning": {
100
+ "comment_aria_label": "Rate this course"
101
+ }
102
+ }
98
103
  }
@@ -94,5 +94,10 @@
94
94
  "close_button_ariaLabel": "Feche a imagem de revisão",
95
95
  "post_comment_aria_label": "Publique o seu comentário",
96
96
  "validate_aria_label": "Valide a sua resposta e siga para o próximo passo",
97
- "stars": "estrelas"
97
+ "stars": "estrelas",
98
+ "custom":{
99
+ "digitlearning": {
100
+ "comment_aria_label": "Rate this course"
101
+ }
102
+ }
98
103
  }
@@ -94,5 +94,10 @@
94
94
  "close_button_ariaLabel": "Închideți slide-ul de recenzie",
95
95
  "post_comment_aria_label": "Postează comentariul tău",
96
96
  "validate_aria_label": "Validați-vă răspunsul și treceți la pasul următor",
97
- "stars": "stele"
97
+ "stars": "stele",
98
+ "custom":{
99
+ "digitlearning": {
100
+ "comment_aria_label": "Rate this course"
101
+ }
102
+ }
98
103
  }
@@ -94,5 +94,10 @@
94
94
  "close_button_ariaLabel": "Закрыть проверку слайда",
95
95
  "post_comment_aria_label": "Опубликуйте свой комментарий",
96
96
  "validate_aria_label": "Проверьте свой ответ и перейдите к следующему шагу",
97
- "stars": "звезды"
97
+ "stars": "звезды",
98
+ "custom":{
99
+ "digitlearning": {
100
+ "comment_aria_label": "Rate this course"
101
+ }
102
+ }
98
103
  }
@@ -94,5 +94,10 @@
94
94
  "close_button_ariaLabel": "Uzavrite recenziu",
95
95
  "post_comment_aria_label": "Uverejnite svoj komentár",
96
96
  "validate_aria_label": "Potvrďte svoju odpoveď a prejdite na ďalší krok",
97
- "stars": "hviezdy"
97
+ "stars": "hviezdy",
98
+ "custom":{
99
+ "digitlearning": {
100
+ "comment_aria_label": "Rate this course"
101
+ }
102
+ }
98
103
  }
@@ -94,5 +94,10 @@
94
94
  "close_button_ariaLabel": "Stäng granskningsbilden",
95
95
  "post_comment_aria_label": "Posta din kommentar",
96
96
  "validate_aria_label": "Validera ditt svar och gå till nästa steg",
97
- "stars": "stjärnor"
97
+ "stars": "stjärnor",
98
+ "custom":{
99
+ "digitlearning": {
100
+ "comment_aria_label": "Rate this course"
101
+ }
102
+ }
98
103
  }
@@ -94,5 +94,10 @@
94
94
  "close_button_ariaLabel": "Isara ang slide sa pag-review",
95
95
  "post_comment_aria_label": "I-post ang iyong komento",
96
96
  "validate_aria_label": "Patunayan ang iyong sagot at pumunta sa susunod na hakbang",
97
- "stars": "mga bituin"
97
+ "stars": "mga bituin",
98
+ "custom":{
99
+ "digitlearning": {
100
+ "comment_aria_label": "Rate this course"
101
+ }
102
+ }
98
103
  }
@@ -94,5 +94,10 @@
94
94
  "close_button_ariaLabel": "İnceleme slaydını kapat",
95
95
  "post_comment_aria_label": "Yorumunu paylaş",
96
96
  "validate_aria_label": "Cevabınızı doğrulayın ve bir sonraki adıma geçin",
97
- "stars": "yıldızlar"
97
+ "stars": "yıldızlar",
98
+ "custom":{
99
+ "digitlearning": {
100
+ "comment_aria_label": "Rate this course"
101
+ }
102
+ }
98
103
  }
@@ -94,5 +94,10 @@
94
94
  "close_button_ariaLabel": "Закрити слайд перегляду",
95
95
  "post_comment_aria_label": "Опублікуйте ваш коментар",
96
96
  "validate_aria_label": "Підтвердьте свою відповідь і перейдіть до наступного кроку",
97
- "stars": "зірки"
97
+ "stars": "зірки",
98
+ "custom":{
99
+ "digitlearning": {
100
+ "comment_aria_label": "Rate this course"
101
+ }
102
+ }
98
103
  }
@@ -94,5 +94,10 @@
94
94
  "close_button_ariaLabel": "Đóng màn hình đánh giá",
95
95
  "post_comment_aria_label": "Đăng bình luận của bạn",
96
96
  "validate_aria_label": "Xác thực câu trả lời của bạn và sang bước tiếp theo",
97
- "stars": "ngôi sao"
97
+ "stars": "ngôi sao",
98
+ "custom":{
99
+ "digitlearning": {
100
+ "comment_aria_label": "Rate this course"
101
+ }
102
+ }
98
103
  }
@@ -94,5 +94,10 @@
94
94
  "close_button_ariaLabel": "关闭审议幻灯片",
95
95
  "post_comment_aria_label": "发布您的评论",
96
96
  "validate_aria_label": "验证您的答案并转到下一步",
97
- "stars": "星星"
97
+ "stars": "星星",
98
+ "custom":{
99
+ "digitlearning": {
100
+ "comment_aria_label": "Rate this course"
101
+ }
102
+ }
98
103
  }
@@ -94,5 +94,10 @@
94
94
  "close_button_ariaLabel": "關閉檢閱投影片",
95
95
  "post_comment_aria_label": "張貼您的註解",
96
96
  "validate_aria_label": "驗證您的答案並前往下一步",
97
- "stars": "星星"
97
+ "stars": "星星",
98
+ "custom":{
99
+ "digitlearning": {
100
+ "comment_aria_label": "Rate this course"
101
+ }
102
+ }
98
103
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coorpacademy/components",
3
- "version": "11.27.0",
3
+ "version": "11.28.0",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -175,5 +175,5 @@
175
175
  "last 2 versions",
176
176
  "IE 11"
177
177
  ],
178
- "gitHead": "80c6a6ca935904ba89aee26a27c4fbf232d0d729"
178
+ "gitHead": "c74fa4d28b4a80bd2ee3253dcac6ad13cdc934ed"
179
179
  }