Skip to content

Commit

Permalink
feat(Icon): add new icon SmsTemplate
Browse files Browse the repository at this point in the history
  • Loading branch information
233mawile authored and 233mawile-rc committed Jan 11, 2024
1 parent b7566c1 commit a1d6f41
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 14,057 deletions.
2 changes: 1 addition & 1 deletion .nx/cache/nx-console-project-graph/static/environment.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
exports[`icon svg file expect svg file to match snapshot 1`] = `
"export default \`<svg aria-hidden=\\"true\\" style=\\"position: absolute; width: 0; height: 0; overflow: hidden;\\" version=\\"1.1\\" xmlns=\\"http://www.w3.org/2000/svg\\" xmlns:xlink=\\"http://www.w3.org/1999/xlink\\">
<defs>
<symbol id=\\"icon-sms-template\\" viewBox=\\"0 0 32 32\\">
<title>sms-template</title>
<path d=\\"M22.129 16.509c0.383-0.679 1.36-0.679 1.742 0l1.996 3.542 3.988 0.806c0.723 0.146 1.033 0.988 0.615 1.564l-0.076 0.093-2.754 2.993 0.468 4.041c0.085 0.735-0.624 1.29-1.303 1.066l-0.107-0.042-3.698-1.692-3.698 1.692c-0.673 0.308-1.42-0.195-1.416-0.91l0.007-0.114 0.467-4.041-2.753-2.993c-0.499-0.543-0.255-1.406 0.422-1.626l0.117-0.031 3.987-0.806zM16 2c6.627 0 12 5.373 12 12v1h-2v-1c0-5.523-4.477-10-10-10h-9c-0.552 0-1 0.448-1 1v22c0 0.552 0.448 1 1 1h8v2h-9c-1.105 0-2-0.895-2-2v-24c0-1.105 0.895-2 2-2zM23 19.037l-1.351 2.396c-0.143 0.253-0.388 0.432-0.673 0.489l-2.697 0.544 1.862 2.025c0.169 0.183 0.262 0.422 0.264 0.668l-0.007 0.124-0.316 2.732 2.502-1.144c0.227-0.104 0.482-0.118 0.717-0.044l0.115 0.044 2.501 1.144-0.315-2.732c-0.029-0.247 0.036-0.495 0.179-0.696l0.078-0.096 1.861-2.025-2.696-0.544c-0.244-0.049-0.46-0.188-0.606-0.385l-0.067-0.104zM18 14c0.552 0 1 0.448 1 1s-0.448 1-1 1h-7c-0.552 0-1-0.448-1-1s0.448-1 1-1zM20 9c0.552 0 1 0.448 1 1s-0.448 1-1 1h-9c-0.552 0-1-0.448-1-1s0.448-1 1-1z\\"></path>
</symbol>
<symbol id=\\"icon-ai-sparkles\\" viewBox=\\"0 0 32 32\\">
<title>ai-sparkles</title>
<path d=\\"M27.943 5.806c-0.849-0.241-1.505-0.899-1.761-1.767l-0.272-0.931c-0.048-0.144-0.288-0.144-0.32 0l-0.272 0.931c-0.24 0.851-0.897 1.51-1.761 1.767l-0.725 0.213c-0.013 0.004-0.028 0.008-0.042 0.012-0.13 0.037-0.29 0.082-0.29 0.208 0 0.080 0.048 0.145 0.128 0.161l0.929 0.273c0.849 0.241 1.505 0.899 1.761 1.767l0.213 0.727c0.004 0.014 0.008 0.028 0.012 0.043 0.036 0.13 0.081 0.29 0.207 0.29 0.080 0 0.144-0.048 0.16-0.129l0.272-0.931c0.24-0.851 0.897-1.51 1.761-1.767l0.724-0.213c0.013-0.004 0.027-0.008 0.042-0.012h0c0.131-0.037 0.29-0.082 0.29-0.209 0-0.080-0.048-0.144-0.128-0.161l-0.928-0.273zM3.356 13.738l2.618 0.739c2.389 0.688 4.245 2.524 4.931 4.945l0.737 2.625c0.051 0.204 0.254 0.357 0.457 0.357s0.407-0.153 0.458-0.357l0.737-2.625c0.686-2.396 2.542-4.257 4.931-4.945l2.618-0.739c0.203-0.051 0.356-0.255 0.356-0.459s-0.152-0.408-0.356-0.459l-2.618-0.739c-2.389-0.688-4.245-2.524-4.931-4.945l-0.737-2.626c-0.127-0.408-0.813-0.408-0.915 0l-0.737 2.626c-0.686 2.396-2.542 4.257-4.931 4.945l-2.618 0.739c-0.203 0.051-0.356 0.255-0.356 0.459s0.153 0.408 0.356 0.459zM25.875 23.864l-1.396-0.401c-1.282-0.373-2.266-1.358-2.639-2.642l-0.403-1.403c-0.060-0.224-0.432-0.224-0.492 0l-0.402 1.403c-0.373 1.284-1.357 2.284-2.639 2.642l-1.401 0.403c-0.104 0.030-0.179 0.134-0.179 0.254s0.075 0.209 0.179 0.254l1.401 0.403c1.282 0.373 2.266 1.358 2.639 2.642l0.402 1.403c0.030 0.105 0.134 0.179 0.253 0.179s0.209-0.075 0.253-0.179l0.403-1.403c0.373-1.284 1.357-2.269 2.639-2.642l1.401-0.403c0.104-0.030 0.179-0.134 0.179-0.254 0-0.116-0.071-0.204-0.171-0.25-0.005-0.002-0.011-0.004-0.017-0.004-0.004 0-0.008-0.001-0.012-0.002z\\"></path>
Expand Down
5 changes: 5 additions & 0 deletions packages/juno-icon/assets/icon-sms-template.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14,056 changes: 1 addition & 14,055 deletions packages/juno-icon/devUtils/iconJsonSymbol.json

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions packages/juno-icon/devUtils/iconSymbol.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
export default `<svg aria-hidden="true" style="position: absolute; width: 0; height: 0; overflow: hidden;" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<symbol id="icon-sms-template" viewBox="0 0 32 32">
<title>sms-template</title>
<path d="M22.129 16.509c0.383-0.679 1.36-0.679 1.742 0l1.996 3.542 3.988 0.806c0.723 0.146 1.033 0.988 0.615 1.564l-0.076 0.093-2.754 2.993 0.468 4.041c0.085 0.735-0.624 1.29-1.303 1.066l-0.107-0.042-3.698-1.692-3.698 1.692c-0.673 0.308-1.42-0.195-1.416-0.91l0.007-0.114 0.467-4.041-2.753-2.993c-0.499-0.543-0.255-1.406 0.422-1.626l0.117-0.031 3.987-0.806zM16 2c6.627 0 12 5.373 12 12v1h-2v-1c0-5.523-4.477-10-10-10h-9c-0.552 0-1 0.448-1 1v22c0 0.552 0.448 1 1 1h8v2h-9c-1.105 0-2-0.895-2-2v-24c0-1.105 0.895-2 2-2zM23 19.037l-1.351 2.396c-0.143 0.253-0.388 0.432-0.673 0.489l-2.697 0.544 1.862 2.025c0.169 0.183 0.262 0.422 0.264 0.668l-0.007 0.124-0.316 2.732 2.502-1.144c0.227-0.104 0.482-0.118 0.717-0.044l0.115 0.044 2.501 1.144-0.315-2.732c-0.029-0.247 0.036-0.495 0.179-0.696l0.078-0.096 1.861-2.025-2.696-0.544c-0.244-0.049-0.46-0.188-0.606-0.385l-0.067-0.104zM18 14c0.552 0 1 0.448 1 1s-0.448 1-1 1h-7c-0.552 0-1-0.448-1-1s0.448-1 1-1zM20 9c0.552 0 1 0.448 1 1s-0.448 1-1 1h-9c-0.552 0-1-0.448-1-1s0.448-1 1-1z"></path>
</symbol>
<symbol id="icon-ai-sparkles" viewBox="0 0 32 32">
<title>ai-sparkles</title>
<path d="M27.943 5.806c-0.849-0.241-1.505-0.899-1.761-1.767l-0.272-0.931c-0.048-0.144-0.288-0.144-0.32 0l-0.272 0.931c-0.24 0.851-0.897 1.51-1.761 1.767l-0.725 0.213c-0.013 0.004-0.028 0.008-0.042 0.012-0.13 0.037-0.29 0.082-0.29 0.208 0 0.080 0.048 0.145 0.128 0.161l0.929 0.273c0.849 0.241 1.505 0.899 1.761 1.767l0.213 0.727c0.004 0.014 0.008 0.028 0.012 0.043 0.036 0.13 0.081 0.29 0.207 0.29 0.080 0 0.144-0.048 0.16-0.129l0.272-0.931c0.24-0.851 0.897-1.51 1.761-1.767l0.724-0.213c0.013-0.004 0.027-0.008 0.042-0.012h0c0.131-0.037 0.29-0.082 0.29-0.209 0-0.080-0.048-0.144-0.128-0.161l-0.928-0.273zM3.356 13.738l2.618 0.739c2.389 0.688 4.245 2.524 4.931 4.945l0.737 2.625c0.051 0.204 0.254 0.357 0.457 0.357s0.407-0.153 0.458-0.357l0.737-2.625c0.686-2.396 2.542-4.257 4.931-4.945l2.618-0.739c0.203-0.051 0.356-0.255 0.356-0.459s-0.152-0.408-0.356-0.459l-2.618-0.739c-2.389-0.688-4.245-2.524-4.931-4.945l-0.737-2.626c-0.127-0.408-0.813-0.408-0.915 0l-0.737 2.626c-0.686 2.396-2.542 4.257-4.931 4.945l-2.618 0.739c-0.203 0.051-0.356 0.255-0.356 0.459s0.153 0.408 0.356 0.459zM25.875 23.864l-1.396-0.401c-1.282-0.373-2.266-1.358-2.639-2.642l-0.403-1.403c-0.060-0.224-0.432-0.224-0.492 0l-0.402 1.403c-0.373 1.284-1.357 2.284-2.639 2.642l-1.401 0.403c-0.104 0.030-0.179 0.134-0.179 0.254s0.075 0.209 0.179 0.254l1.401 0.403c1.282 0.373 2.266 1.358 2.639 2.642l0.402 1.403c0.030 0.105 0.134 0.179 0.253 0.179s0.209-0.075 0.253-0.179l0.403-1.403c0.373-1.284 1.357-2.269 2.639-2.642l1.401-0.403c0.104-0.030 0.179-0.134 0.179-0.254 0-0.116-0.071-0.204-0.171-0.25-0.005-0.002-0.011-0.004-0.017-0.004-0.004 0-0.008-0.001-0.012-0.002z"></path>
Expand Down
1 change: 1 addition & 0 deletions packages/juno-icon/devUtils/svgToComponentMapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module.exports = {
'7': '7',
'8': '8',
'9': '9',
SmsTemplate: 'sms-template',
AiSparkles: 'ai-sparkles',
RcDirectory: 'rc-directory',
ReportAnIssueAlternative: 'report-an-issue-alternative',
Expand Down
18 changes: 18 additions & 0 deletions packages/juno-icon/src/SmsTemplate.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import * as React from 'react';
import { SVGProps, Ref, forwardRef, memo } from 'react';

const SmsTemplate = memo(
forwardRef((props: SVGProps<SVGSVGElement>, ref: Ref<SVGSVGElement>) => (
<svg
viewBox="0 0 32 32"
xmlns="http://www.w3.org/2000/svg"
ref={ref}
{...props}
>
<path d="M22.129 16.509a1 1 0 0 1 1.742 0l1.996 3.542 3.988.806a1 1 0 0 1 .615 1.564l-.076.093-2.754 2.993.468 4.041a1 1 0 0 1-1.303 1.066l-.107-.042L23 28.88l-3.698 1.692a1 1 0 0 1-1.416-.91l.007-.114.467-4.041-2.753-2.993a1 1 0 0 1 .422-1.626l.117-.031 3.987-.806zM16 2c6.627 0 12 5.373 12 12v1h-2v-1c0-5.523-4.477-10-10-10H7a1 1 0 0 0-1 1v22a1 1 0 0 0 1 1h8v2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm7 17.037-1.351 2.396a.998.998 0 0 1-.673.489l-2.697.544 1.862 2.025a.997.997 0 0 1 .264.668l-.007.124-.316 2.732 2.502-1.144a.999.999 0 0 1 .717-.044l.115.044 2.501 1.144-.315-2.732a1 1 0 0 1 .179-.696l.078-.096 1.861-2.025-2.696-.544a1.001 1.001 0 0 1-.606-.385l-.067-.104zM18 14a1 1 0 0 1 0 2h-7a1 1 0 0 1 0-2zm2-5a1 1 0 0 1 0 2h-9a1 1 0 0 1 0-2z" />
</svg>
)),
);
SmsTemplate.displayName = 'SmsTemplate';
SmsTemplate['iconName'] = 'sms-template';
export default SmsTemplate;
1 change: 1 addition & 0 deletions packages/juno-icon/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,7 @@ export { default as Signal3 } from './Signal3';
export { default as SmsBorder } from './SmsBorder';
export { default as SmsDefault } from './SmsDefault';
export { default as SmsInviteBorder } from './SmsInviteBorder';
export { default as SmsTemplate } from './SmsTemplate';
export { default as Sms } from './Sms';
export { default as SortMessage } from './SortMessage';
export { default as Sort } from './Sort';
Expand Down
2 changes: 1 addition & 1 deletion sync-github.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"latestCommitSHA": "18aff6525f4209ded6d47ba0469a9b3d4c7e9be8"
"latestCommitSHA": "f95d0a963cfbf36459c88e23ded94b990e679b2b"
}

0 comments on commit a1d6f41

Please sign in to comment.