@semcore/icon 4.0.0-beta.1 → 4.1.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.
- package/CHANGELOG.md +12 -2
- package/lib/cjs/Icon.js +7 -7
- package/lib/cjs/Icon.js.map +1 -1
- package/lib/es6/Icon.js +7 -7
- package/lib/es6/Icon.js.map +1 -1
- package/package.json +5 -5
- package/pay/Diners/l/index.d.ts +6 -0
- package/pay/Diners/l/index.js +43 -0
- package/pay/Diners/l/index.mjs +31 -0
- package/pay/Diners/m/index.d.ts +6 -0
- package/pay/Diners/m/index.js +43 -0
- package/pay/Diners/m/index.mjs +31 -0
- package/svg/pay/Diners/l.svg +4 -0
- package/svg/pay/Diners/m.svg +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
|
5
|
-
## [4.
|
|
5
|
+
## [4.1.0] - 2023-07-27
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Use `event.key` instead of `event.code` for better support of non QWERTY keyboard layouts.
|
|
10
|
+
|
|
11
|
+
## [4.0.0] - 2023-07-17
|
|
6
12
|
|
|
7
13
|
### BREAK
|
|
8
14
|
|
|
@@ -13,7 +19,11 @@ CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangel
|
|
|
13
19
|
- Removed `FeauturedImage` icon.
|
|
14
20
|
- Removed `FeauturedVideo` icon.
|
|
15
21
|
|
|
16
|
-
|
|
22
|
+
### Added
|
|
23
|
+
|
|
24
|
+
- Added `Diners` pay icon.
|
|
25
|
+
|
|
26
|
+
## [3.16.1] - 2023-06-30
|
|
17
27
|
|
|
18
28
|
### Added
|
|
19
29
|
|
package/lib/cjs/Icon.js
CHANGED
|
@@ -22,12 +22,12 @@ var _ref = require("@semcore/utils/lib/ref");
|
|
|
22
22
|
var _hasLabels = _interopRequireDefault(require("@semcore/utils/lib/hasLabels"));
|
|
23
23
|
var _excluded = ["keyboardFocused"];
|
|
24
24
|
/*__reshadow-styles__:"./style/icon.shadow.css"*/
|
|
25
|
-
var styles = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".
|
|
26
|
-
"__SIcon": "
|
|
27
|
-
"--color": "--
|
|
28
|
-
"_keyboardFocused": "
|
|
29
|
-
"_interactive": "
|
|
30
|
-
"--color-interactive": "--color-
|
|
25
|
+
var styles = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".___SIcon_hki02_gg_{display:inline-block;-webkit-user-select:none;-moz-user-select:none;user-select:none;shape-rendering:geometricPrecision;box-sizing:content-box;fill:currentColor;flex-shrink:0;outline:0;color:var(--color_hki02)}.___SIcon_hki02_gg_.__keyboardFocused_hki02_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___SIcon_hki02_gg_.__interactive_hki02_gg_{cursor:pointer}@media (hover:hover){.___SIcon_hki02_gg_.__interactive_hki02_gg_:hover{color:var(--color-interactive_hki02)}}" /*__inner_css_end__*/, "hki02_gg_") /*__reshadow_css_end__*/, {
|
|
26
|
+
"__SIcon": "___SIcon_hki02_gg_",
|
|
27
|
+
"--color": "--color_hki02",
|
|
28
|
+
"_keyboardFocused": "__keyboardFocused_hki02_gg_",
|
|
29
|
+
"_interactive": "__interactive_hki02_gg_",
|
|
30
|
+
"--color-interactive": "--color-interactive_hki02"
|
|
31
31
|
});
|
|
32
32
|
function Icon(props, ref) {
|
|
33
33
|
var _useBox = (0, _flexBox.useBox)((0, _objectSpread2["default"])({
|
|
@@ -62,7 +62,7 @@ function Icon(props, ref) {
|
|
|
62
62
|
if (propsEnhance.onKeyDown) {
|
|
63
63
|
return propsEnhance.onKeyDown(event);
|
|
64
64
|
}
|
|
65
|
-
if (interactive && event.
|
|
65
|
+
if (interactive && event.key === 'Enter') {
|
|
66
66
|
var _propsEnhance$onClick;
|
|
67
67
|
(_propsEnhance$onClick = propsEnhance.onClick) === null || _propsEnhance$onClick === void 0 ? void 0 : _propsEnhance$onClick.call(propsEnhance, event);
|
|
68
68
|
}
|
package/lib/cjs/Icon.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.js","names":["_core","require","_react","_interopRequireDefault","_classnames","_flexBox","_color","_interopRequireWildcard","_keyboardFocusEnhance2","_propsForElement","_logger","_ref","_hasLabels","_excluded","styles","sstyled","insert","Icon","props","ref","_useBox","useBox","_objectSpread2","tag","width","height","viewBox","focusable","interactive","_useBox2","_slicedToArray2","SIcon","other","colorProps","color","resolveColor","_keyboardFocusEnhance","keyboardFocusEnhance","disabled","keyboardFocused","propsEnhance","_objectWithoutProperties2","sstyles","_sstyles$cn","cn","shade","className","style","onKeyDown","event","
|
|
1
|
+
{"version":3,"file":"Icon.js","names":["_core","require","_react","_interopRequireDefault","_classnames","_flexBox","_color","_interopRequireWildcard","_keyboardFocusEnhance2","_propsForElement","_logger","_ref","_hasLabels","_excluded","styles","sstyled","insert","Icon","props","ref","_useBox","useBox","_objectSpread2","tag","width","height","viewBox","focusable","interactive","_useBox2","_slicedToArray2","SIcon","other","colorProps","color","resolveColor","_keyboardFocusEnhance","keyboardFocusEnhance","disabled","keyboardFocused","propsEnhance","_objectWithoutProperties2","sstyles","_sstyles$cn","cn","shade","className","style","onKeyDown","event","key","_propsEnhance$onClick","onClick","call","labelCheckRef","React","useRef","useEffect","process","env","NODE_ENV","logger","warn","hasLabels","current","displayName","forkedRef","useForkRef","createElement","_extends2","role","undefined","propsForElement","Object","assign","_default","createBaseComponent","exports"],"sources":["../../src/Icon.jsx"],"sourcesContent":["import React from 'react';\nimport cn from 'classnames';\nimport { createBaseComponent, sstyled } from '@semcore/core';\nimport { useBox } from '@semcore/flex-box';\nimport resolveColor, { shade } from '@semcore/utils/lib/color';\nimport keyboardFocusEnhance from '@semcore/utils/lib/enhances/keyboardFocusEnhance';\nimport propsForElement from '@semcore/utils/lib/propsForElement';\nimport logger from '@semcore/utils/lib/logger';\nimport { useForkRef } from '@semcore/utils/lib/ref';\nimport hasLabels from '@semcore/utils/lib/hasLabels';\n\nimport styles from './style/icon.shadow.css';\n\nfunction Icon(props, ref) {\n const [SIcon, other] = useBox(\n {\n tag: 'svg',\n 'data-ui-name': 'Icon',\n width: 16,\n height: 16,\n viewBox: '0 0 16 16',\n focusable: props.interactive,\n ...props,\n },\n ref,\n );\n\n const { interactive, color: colorProps } = props;\n const color = resolveColor(colorProps);\n const { keyboardFocused, ...propsEnhance } = keyboardFocusEnhance()({\n disabled: !interactive,\n ...other,\n });\n const sstyles = sstyled(styles);\n const { className, style } = sstyles.cn('SIcon', {\n 'color-interactive': shade(color, -0.12),\n 'use:color': color,\n interactive: interactive,\n keyboardFocused: keyboardFocused,\n });\n\n function onKeyDown(event) {\n if (propsEnhance.onKeyDown) {\n return propsEnhance.onKeyDown(event);\n }\n\n if (interactive && event.key === 'Enter') {\n propsEnhance.onClick?.(event);\n }\n }\n\n const labelCheckRef = React.useRef();\n React.useEffect(() => {\n if (!interactive) return;\n if (process.env.NODE_ENV !== 'production') {\n logger.warn(\n !hasLabels(labelCheckRef.current),\n `'aria-label' or 'aria-labelledby' are required props for interactive icons`,\n props['data-ui-name'] || Icon.displayName,\n );\n }\n }, [interactive]);\n const forkedRef = useForkRef(ref, labelCheckRef);\n\n return (\n <SIcon\n role={interactive ? 'button' : undefined}\n aria-hidden={interactive ? undefined : 'true'}\n {...propsForElement(propsEnhance)}\n style={Object.assign({}, style, propsEnhance.style)}\n className={cn(className, propsEnhance.className) || undefined}\n onKeyDown={onKeyDown}\n ref={forkedRef}\n />\n );\n}\n\nIcon.displayName = 'Icon';\n\nexport default createBaseComponent(Icon);\n"],"mappings":";;;;;;;;;;;;AAEA,IAAAA,KAAA,GAAAC,OAAA;AAFA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;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EAAE1C,WAAW,GAAG,QAAQ,GAAG2C,SAAU;IACzC,eAAa3C,WAAW,GAAG2C,SAAS,GAAG;EAAO,GAC1C,IAAAC,2BAAe,EAAChC,YAAY,CAAC;IACjCO,KAAK,EAAE0B,MAAM,CAACC,MAAM,CAAC,CAAC,CAAC,EAAE3B,KAAK,EAAEP,YAAY,CAACO,KAAK,CAAE;IACpDD,SAAS,EAAE,IAAAF,sBAAE,EAACE,SAAS,EAAEN,YAAY,CAACM,SAAS,CAAC,IAAIyB,SAAU;IAC9DvB,SAAS,EAAEA,SAAU;IACrB7B,GAAG,EAAE+C;EAAU,GACf;AAEN;AAEAjD,IAAI,CAACgD,WAAW,GAAG,MAAM;AAAC,IAAAU,QAAA,GAEX,IAAAC,yBAAmB,EAAC3D,IAAI,CAAC;AAAA4D,OAAA,cAAAF,QAAA"}
|
package/lib/es6/Icon.js
CHANGED
|
@@ -15,12 +15,12 @@ import logger from '@semcore/utils/lib/logger';
|
|
|
15
15
|
import { useForkRef } from '@semcore/utils/lib/ref';
|
|
16
16
|
import hasLabels from '@semcore/utils/lib/hasLabels';
|
|
17
17
|
/*__reshadow-styles__:"./style/icon.shadow.css"*/
|
|
18
|
-
var styles = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
|
19
|
-
"__SIcon": "
|
|
20
|
-
"--color": "--
|
|
21
|
-
"_keyboardFocused": "
|
|
22
|
-
"_interactive": "
|
|
23
|
-
"--color-interactive": "--color-
|
|
18
|
+
var styles = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SIcon_hki02_gg_{display:inline-block;-webkit-user-select:none;-moz-user-select:none;user-select:none;shape-rendering:geometricPrecision;box-sizing:content-box;fill:currentColor;flex-shrink:0;outline:0;color:var(--color_hki02)}.___SIcon_hki02_gg_.__keyboardFocused_hki02_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___SIcon_hki02_gg_.__interactive_hki02_gg_{cursor:pointer}@media (hover:hover){.___SIcon_hki02_gg_.__interactive_hki02_gg_:hover{color:var(--color-interactive_hki02)}}" /*__inner_css_end__*/, "hki02_gg_") /*__reshadow_css_end__*/, {
|
|
19
|
+
"__SIcon": "___SIcon_hki02_gg_",
|
|
20
|
+
"--color": "--color_hki02",
|
|
21
|
+
"_keyboardFocused": "__keyboardFocused_hki02_gg_",
|
|
22
|
+
"_interactive": "__interactive_hki02_gg_",
|
|
23
|
+
"--color-interactive": "--color-interactive_hki02"
|
|
24
24
|
});
|
|
25
25
|
function Icon(props, ref) {
|
|
26
26
|
var _useBox = useBox(_objectSpread({
|
|
@@ -55,7 +55,7 @@ function Icon(props, ref) {
|
|
|
55
55
|
if (propsEnhance.onKeyDown) {
|
|
56
56
|
return propsEnhance.onKeyDown(event);
|
|
57
57
|
}
|
|
58
|
-
if (interactive && event.
|
|
58
|
+
if (interactive && event.key === 'Enter') {
|
|
59
59
|
var _propsEnhance$onClick;
|
|
60
60
|
(_propsEnhance$onClick = propsEnhance.onClick) === null || _propsEnhance$onClick === void 0 ? void 0 : _propsEnhance$onClick.call(propsEnhance, event);
|
|
61
61
|
}
|
package/lib/es6/Icon.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.js","names":["React","cn","createBaseComponent","sstyled","useBox","resolveColor","shade","keyboardFocusEnhance","propsForElement","logger","useForkRef","hasLabels","styles","_sstyled","insert","Icon","props","ref","_useBox","_objectSpread","tag","width","height","viewBox","focusable","interactive","_useBox2","_slicedToArray","SIcon","other","colorProps","color","_keyboardFocusEnhance","disabled","keyboardFocused","propsEnhance","_objectWithoutProperties","_excluded","sstyles","_sstyles$cn","className","style","onKeyDown","event","
|
|
1
|
+
{"version":3,"file":"Icon.js","names":["React","cn","createBaseComponent","sstyled","useBox","resolveColor","shade","keyboardFocusEnhance","propsForElement","logger","useForkRef","hasLabels","styles","_sstyled","insert","Icon","props","ref","_useBox","_objectSpread","tag","width","height","viewBox","focusable","interactive","_useBox2","_slicedToArray","SIcon","other","colorProps","color","_keyboardFocusEnhance","disabled","keyboardFocused","propsEnhance","_objectWithoutProperties","_excluded","sstyles","_sstyles$cn","className","style","onKeyDown","event","key","_propsEnhance$onClick","onClick","call","labelCheckRef","useRef","useEffect","process","env","NODE_ENV","warn","current","displayName","forkedRef","createElement","_extends","role","undefined","Object","assign"],"sources":["../../src/Icon.jsx"],"sourcesContent":["import React from 'react';\nimport cn from 'classnames';\nimport { createBaseComponent, sstyled } from '@semcore/core';\nimport { useBox } from '@semcore/flex-box';\nimport resolveColor, { shade } from '@semcore/utils/lib/color';\nimport keyboardFocusEnhance from '@semcore/utils/lib/enhances/keyboardFocusEnhance';\nimport propsForElement from '@semcore/utils/lib/propsForElement';\nimport logger from '@semcore/utils/lib/logger';\nimport { useForkRef } from '@semcore/utils/lib/ref';\nimport hasLabels from '@semcore/utils/lib/hasLabels';\n\nimport styles from './style/icon.shadow.css';\n\nfunction Icon(props, ref) {\n const [SIcon, other] = useBox(\n {\n tag: 'svg',\n 'data-ui-name': 'Icon',\n width: 16,\n height: 16,\n viewBox: '0 0 16 16',\n focusable: props.interactive,\n ...props,\n },\n ref,\n );\n\n const { interactive, color: colorProps } = props;\n const color = resolveColor(colorProps);\n const { keyboardFocused, ...propsEnhance } = keyboardFocusEnhance()({\n disabled: !interactive,\n ...other,\n });\n const sstyles = sstyled(styles);\n const { className, style } = sstyles.cn('SIcon', {\n 'color-interactive': shade(color, -0.12),\n 'use:color': color,\n interactive: interactive,\n keyboardFocused: keyboardFocused,\n });\n\n function onKeyDown(event) {\n if (propsEnhance.onKeyDown) {\n return propsEnhance.onKeyDown(event);\n }\n\n if (interactive && event.key === 'Enter') {\n propsEnhance.onClick?.(event);\n }\n }\n\n const labelCheckRef = React.useRef();\n React.useEffect(() => {\n if (!interactive) return;\n if (process.env.NODE_ENV !== 'production') {\n logger.warn(\n !hasLabels(labelCheckRef.current),\n `'aria-label' or 'aria-labelledby' are required props for interactive icons`,\n props['data-ui-name'] || Icon.displayName,\n );\n }\n }, [interactive]);\n const forkedRef = useForkRef(ref, labelCheckRef);\n\n return (\n <SIcon\n role={interactive ? 'button' : undefined}\n aria-hidden={interactive ? undefined : 'true'}\n {...propsForElement(propsEnhance)}\n style={Object.assign({}, style, propsEnhance.style)}\n className={cn(className, propsEnhance.className) || undefined}\n onKeyDown={onKeyDown}\n ref={forkedRef}\n />\n );\n}\n\nIcon.displayName = 'Icon';\n\nexport default createBaseComponent(Icon);\n"],"mappings":";;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,EAAE,MAAM,YAAY;AAC3B,SAASC,mBAAmB,EAAEC,OAAO,QAAQ,eAAe;AAC5D,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,OAAOC,YAAY,IAAIC,KAAK,QAAQ,0BAA0B;AAC9D,OAAOC,oBAAoB,MAAM,kDAAkD;AACnF,OAAOC,eAAe,MAAM,oCAAoC;AAChE,OAAOC,MAAM,MAAM,2BAA2B;AAC9C,SAASC,UAAU,QAAQ,wBAAwB;AACnD,OAAOC,SAAS,MAAM,8BAA8B;AAAC;AAAA,IAAAC,MAAA,+BAAAC,QAAA,CAAAC,MAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAIrD,SAASC,IAAIA,CAACC,KAAK,EAAEC,GAAG,EAAE;EACxB,IAAAC,OAAA,GAAuBd,MAAM,CAAAe,aAAA;MAEzBC,GAAG,EAAE,KAAK;MACV,cAAc,EAAE,MAAM;MACtBC,KAAK,EAAE,EAAE;MACTC,MAAM,EAAE,EAAE;MACVC,OAAO,EAAE,WAAW;MACpBC,SAAS,EAAER,KAAK,CAACS;IAAW,GACzBT,KAAK,GAEVC,GAAG,CACJ;IAAAS,QAAA,GAAAC,cAAA,CAAAT,OAAA;IAXMU,KAAK,GAAAF,QAAA;IAAEG,KAAK,GAAAH,QAAA;EAanB,IAAQD,WAAW,GAAwBT,KAAK,CAAxCS,WAAW;IAASK,UAAU,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qC,aAAa,CAACO,OAAO,CAAC,gFAEjCvC,KAAK,CAAC,cAAc,CAAC,IAAID,IAAI,CAACyC,WAAW,CAC1C;IACH;EACF,CAAC,EAAE,CAAC/B,WAAW,CAAC,CAAC;EACjB,IAAMgC,SAAS,GAAG/C,UAAU,CAACO,GAAG,EAAE+B,aAAa,CAAC;EAEhD,oBACEhD,KAAA,CAAA0D,aAAA,CAAC9B,KAAK,EAAA+B,QAAA;IACJC,IAAI,EAAEnC,WAAW,GAAG,QAAQ,GAAGoC,SAAU;IACzC,eAAapC,WAAW,GAAGoC,SAAS,GAAG;EAAO,GAC1CrD,eAAe,CAAC2B,YAAY,CAAC;IACjCM,KAAK,EAAEqB,MAAM,CAACC,MAAM,CAAC,CAAC,CAAC,EAAEtB,KAAK,EAAEN,YAAY,CAACM,KAAK,CAAE;IACpDD,SAAS,EAAEvC,EAAE,CAACuC,SAAS,EAAEL,YAAY,CAACK,SAAS,CAAC,IAAIqB,SAAU;IAC9DnB,SAAS,EAAEA,SAAU;IACrBzB,GAAG,EAAEwC;EAAU,GACf;AAEN;AAEA1C,IAAI,CAACyC,WAAW,GAAG,MAAM;AAEzB,eAAetD,mBAAmB,CAACa,IAAI,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/icon",
|
|
3
3
|
"description": "Semrush Icon Component",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.1.0",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
"author": "UI-kit team <ui-kit-team@semrush.com>",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@semcore/flex-box": "5.0.0
|
|
13
|
-
"@semcore/icon": "4.
|
|
14
|
-
"@semcore/utils": "4.0.0
|
|
12
|
+
"@semcore/flex-box": "5.0.0",
|
|
13
|
+
"@semcore/icon": "4.1.0",
|
|
14
|
+
"@semcore/utils": "4.0.0",
|
|
15
15
|
"classnames": "2.2.6"
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
18
|
-
"@semcore/core": "2.0.0
|
|
18
|
+
"@semcore/core": "2.0.0",
|
|
19
19
|
"react": "16.8 - 18",
|
|
20
20
|
"react-dom": "16.8 - 18"
|
|
21
21
|
},
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
var _core = require("@semcore/core");
|
|
12
|
+
var _icon = _interopRequireDefault(require("@semcore/icon"));
|
|
13
|
+
var _excluded = ["width", "height", "viewBox"];
|
|
14
|
+
function Diners(_ref, ref) {
|
|
15
|
+
var _ref$width = _ref.width,
|
|
16
|
+
width = _ref$width === void 0 ? '32' : _ref$width,
|
|
17
|
+
_ref$height = _ref.height,
|
|
18
|
+
height = _ref$height === void 0 ? '24' : _ref$height,
|
|
19
|
+
_ref$viewBox = _ref.viewBox,
|
|
20
|
+
viewBox = _ref$viewBox === void 0 ? '0 0 32 24' : _ref$viewBox,
|
|
21
|
+
props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
22
|
+
return /*#__PURE__*/_react["default"].createElement(_icon["default"], (0, _extends2["default"])({
|
|
23
|
+
ref: ref,
|
|
24
|
+
"data-name": "Diners",
|
|
25
|
+
"data-group": "l",
|
|
26
|
+
width: width,
|
|
27
|
+
height: height,
|
|
28
|
+
viewBox: viewBox
|
|
29
|
+
}, props), /*#__PURE__*/_react["default"].createElement("path", {
|
|
30
|
+
fill: "#0079BE",
|
|
31
|
+
fillRule: "evenodd",
|
|
32
|
+
d: "M32 21.818c0 1.2-.9 2.182-2 2.182H2c-1.1 0-2-.982-2-2.182V2.182C0 .982.9 0 2 0h28c1.1 0 2 .982 2 2.182v19.636Z",
|
|
33
|
+
clipRule: "evenodd",
|
|
34
|
+
shapeRendering: "geometricPrecision"
|
|
35
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
36
|
+
fill: "#fff",
|
|
37
|
+
d: "M19.692 12.487c-.003-1.854-1.14-3.436-2.739-4.062v8.124c1.6-.627 2.736-2.207 2.739-4.062Zm-5.792 4.06V8.426c-1.598.628-2.732 2.207-2.736 4.061.004 1.853 1.138 3.433 2.736 4.06ZM15.427 5.62c-3.714.002-6.724 3.075-6.725 6.867 0 3.792 3.01 6.864 6.726 6.865 3.715 0 6.725-3.073 6.726-6.865 0-3.792-3.011-6.865-6.726-6.867ZM15.412 20C11.346 20.02 8 16.658 8 12.565 8 8.093 11.346 5 15.411 5h1.905C21.333 5 25 8.091 25 12.565 25 16.656 21.333 20 17.316 20h-1.905Z",
|
|
38
|
+
shapeRendering: "geometricPrecision"
|
|
39
|
+
}));
|
|
40
|
+
}
|
|
41
|
+
Diners.displayName = 'Diners';
|
|
42
|
+
var _default = (0, _core.createBaseComponent)(Diners);
|
|
43
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { createBaseComponent } from '@semcore/core';
|
|
4
|
+
import Icon from '@semcore/icon';
|
|
5
|
+
function Diners({
|
|
6
|
+
width = '32',
|
|
7
|
+
height = '24',
|
|
8
|
+
viewBox = '0 0 32 24',
|
|
9
|
+
...props
|
|
10
|
+
}, ref) {
|
|
11
|
+
return /*#__PURE__*/React.createElement(Icon, _extends({
|
|
12
|
+
ref: ref,
|
|
13
|
+
"data-name": "Diners",
|
|
14
|
+
"data-group": "l",
|
|
15
|
+
width: width,
|
|
16
|
+
height: height,
|
|
17
|
+
viewBox: viewBox
|
|
18
|
+
}, props), /*#__PURE__*/React.createElement("path", {
|
|
19
|
+
fill: "#0079BE",
|
|
20
|
+
fillRule: "evenodd",
|
|
21
|
+
d: "M32 21.818c0 1.2-.9 2.182-2 2.182H2c-1.1 0-2-.982-2-2.182V2.182C0 .982.9 0 2 0h28c1.1 0 2 .982 2 2.182v19.636Z",
|
|
22
|
+
clipRule: "evenodd",
|
|
23
|
+
shapeRendering: "geometricPrecision"
|
|
24
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
25
|
+
fill: "#fff",
|
|
26
|
+
d: "M19.692 12.487c-.003-1.854-1.14-3.436-2.739-4.062v8.124c1.6-.627 2.736-2.207 2.739-4.062Zm-5.792 4.06V8.426c-1.598.628-2.732 2.207-2.736 4.061.004 1.853 1.138 3.433 2.736 4.06ZM15.427 5.62c-3.714.002-6.724 3.075-6.725 6.867 0 3.792 3.01 6.864 6.726 6.865 3.715 0 6.725-3.073 6.726-6.865 0-3.792-3.011-6.865-6.726-6.867ZM15.412 20C11.346 20.02 8 16.658 8 12.565 8 8.093 11.346 5 15.411 5h1.905C21.333 5 25 8.091 25 12.565 25 16.656 21.333 20 17.316 20h-1.905Z",
|
|
27
|
+
shapeRendering: "geometricPrecision"
|
|
28
|
+
}));
|
|
29
|
+
}
|
|
30
|
+
Diners.displayName = 'Diners';
|
|
31
|
+
export default createBaseComponent(Diners);
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
var _core = require("@semcore/core");
|
|
12
|
+
var _icon = _interopRequireDefault(require("@semcore/icon"));
|
|
13
|
+
var _excluded = ["width", "height", "viewBox"];
|
|
14
|
+
function Diners(_ref, ref) {
|
|
15
|
+
var _ref$width = _ref.width,
|
|
16
|
+
width = _ref$width === void 0 ? '21' : _ref$width,
|
|
17
|
+
_ref$height = _ref.height,
|
|
18
|
+
height = _ref$height === void 0 ? '16' : _ref$height,
|
|
19
|
+
_ref$viewBox = _ref.viewBox,
|
|
20
|
+
viewBox = _ref$viewBox === void 0 ? '0 0 21 16' : _ref$viewBox,
|
|
21
|
+
props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
22
|
+
return /*#__PURE__*/_react["default"].createElement(_icon["default"], (0, _extends2["default"])({
|
|
23
|
+
ref: ref,
|
|
24
|
+
"data-name": "Diners",
|
|
25
|
+
"data-group": "m",
|
|
26
|
+
width: width,
|
|
27
|
+
height: height,
|
|
28
|
+
viewBox: viewBox
|
|
29
|
+
}, props), /*#__PURE__*/_react["default"].createElement("path", {
|
|
30
|
+
fill: "#0079BE",
|
|
31
|
+
fillRule: "evenodd",
|
|
32
|
+
d: "M21 14.546c0 .8-.59 1.454-1.313 1.454H1.313C.592 16 0 15.345 0 14.546V1.455C0 .655.59 0 1.313 0h18.375C20.409 0 21 .655 21 1.455v13.09Z",
|
|
33
|
+
clipRule: "evenodd",
|
|
34
|
+
shapeRendering: "geometricPrecision"
|
|
35
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
36
|
+
fill: "#fff",
|
|
37
|
+
d: "M12.574 8.49a3.193 3.193 0 0 0-2.008-2.978v5.957a3.193 3.193 0 0 0 2.008-2.979Zm-4.247 2.978V5.512A3.196 3.196 0 0 0 6.32 8.49a3.195 3.195 0 0 0 2.007 2.978Zm1.12-8.013C6.723 3.456 4.515 5.71 4.515 8.49c0 2.781 2.208 5.034 4.932 5.035 2.724 0 4.932-2.254 4.933-5.035 0-2.78-2.209-5.034-4.933-5.035ZM9.435 14C6.454 14.014 4 11.549 4 8.548 4 5.268 6.454 2.999 9.435 3h1.397c2.946 0 5.635 2.267 5.635 5.548 0 3-2.69 5.452-5.635 5.452H9.435Z",
|
|
38
|
+
shapeRendering: "geometricPrecision"
|
|
39
|
+
}));
|
|
40
|
+
}
|
|
41
|
+
Diners.displayName = 'Diners';
|
|
42
|
+
var _default = (0, _core.createBaseComponent)(Diners);
|
|
43
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { createBaseComponent } from '@semcore/core';
|
|
4
|
+
import Icon from '@semcore/icon';
|
|
5
|
+
function Diners({
|
|
6
|
+
width = '21',
|
|
7
|
+
height = '16',
|
|
8
|
+
viewBox = '0 0 21 16',
|
|
9
|
+
...props
|
|
10
|
+
}, ref) {
|
|
11
|
+
return /*#__PURE__*/React.createElement(Icon, _extends({
|
|
12
|
+
ref: ref,
|
|
13
|
+
"data-name": "Diners",
|
|
14
|
+
"data-group": "m",
|
|
15
|
+
width: width,
|
|
16
|
+
height: height,
|
|
17
|
+
viewBox: viewBox
|
|
18
|
+
}, props), /*#__PURE__*/React.createElement("path", {
|
|
19
|
+
fill: "#0079BE",
|
|
20
|
+
fillRule: "evenodd",
|
|
21
|
+
d: "M21 14.546c0 .8-.59 1.454-1.313 1.454H1.313C.592 16 0 15.345 0 14.546V1.455C0 .655.59 0 1.313 0h18.375C20.409 0 21 .655 21 1.455v13.09Z",
|
|
22
|
+
clipRule: "evenodd",
|
|
23
|
+
shapeRendering: "geometricPrecision"
|
|
24
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
25
|
+
fill: "#fff",
|
|
26
|
+
d: "M12.574 8.49a3.193 3.193 0 0 0-2.008-2.978v5.957a3.193 3.193 0 0 0 2.008-2.979Zm-4.247 2.978V5.512A3.196 3.196 0 0 0 6.32 8.49a3.195 3.195 0 0 0 2.007 2.978Zm1.12-8.013C6.723 3.456 4.515 5.71 4.515 8.49c0 2.781 2.208 5.034 4.932 5.035 2.724 0 4.932-2.254 4.933-5.035 0-2.78-2.209-5.034-4.933-5.035ZM9.435 14C6.454 14.014 4 11.549 4 8.548 4 5.268 6.454 2.999 9.435 3h1.397c2.946 0 5.635 2.267 5.635 5.548 0 3-2.69 5.452-5.635 5.452H9.435Z",
|
|
27
|
+
shapeRendering: "geometricPrecision"
|
|
28
|
+
}));
|
|
29
|
+
}
|
|
30
|
+
Diners.displayName = 'Diners';
|
|
31
|
+
export default createBaseComponent(Diners);
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="24" fill="none" viewBox="0 0 32 24">
|
|
2
|
+
<path fill="#0079BE" fill-rule="evenodd" d="M32 21.818c0 1.2-.9 2.182-2 2.182H2c-1.1 0-2-.982-2-2.182V2.182C0 .982.9 0 2 0h28c1.1 0 2 .982 2 2.182v19.636Z" clip-rule="evenodd"/>
|
|
3
|
+
<path fill="#fff" d="M19.692 12.487c-.003-1.854-1.14-3.436-2.739-4.062v8.124c1.6-.627 2.736-2.207 2.739-4.062Zm-5.792 4.06V8.426c-1.598.628-2.732 2.207-2.736 4.061.004 1.853 1.138 3.433 2.736 4.06ZM15.427 5.62c-3.714.002-6.724 3.075-6.725 6.867 0 3.792 3.01 6.864 6.726 6.865 3.715 0 6.725-3.073 6.726-6.865 0-3.792-3.011-6.865-6.726-6.867ZM15.412 20C11.346 20.02 8 16.658 8 12.565 8 8.093 11.346 5 15.411 5h1.905C21.333 5 25 8.091 25 12.565 25 16.656 21.333 20 17.316 20h-1.905Z"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="21" height="16" fill="none" viewBox="0 0 21 16">
|
|
2
|
+
<path fill="#0079BE" fill-rule="evenodd" d="M21 14.546c0 .8-.59 1.454-1.313 1.454H1.313C.592 16 0 15.345 0 14.546V1.455C0 .655.59 0 1.313 0h18.375C20.409 0 21 .655 21 1.455v13.09Z" clip-rule="evenodd"/>
|
|
3
|
+
<path fill="#fff" d="M12.574 8.49a3.193 3.193 0 0 0-2.008-2.978v5.957a3.193 3.193 0 0 0 2.008-2.979Zm-4.247 2.978V5.512A3.196 3.196 0 0 0 6.32 8.49a3.195 3.195 0 0 0 2.007 2.978Zm1.12-8.013C6.723 3.456 4.515 5.71 4.515 8.49c0 2.781 2.208 5.034 4.932 5.035 2.724 0 4.932-2.254 4.933-5.035 0-2.78-2.209-5.034-4.933-5.035ZM9.435 14C6.454 14.014 4 11.549 4 8.548 4 5.268 6.454 2.999 9.435 3h1.397c2.946 0 5.635 2.267 5.635 5.548 0 3-2.69 5.452-5.635 5.452H9.435Z"/>
|
|
4
|
+
</svg>
|