@leafygreen-ui/icon 14.8.0 → 14.9.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 +6 -0
- package/dist/checksums.json +1 -0
- package/dist/esm/SearchNode.js +2 -0
- package/dist/esm/SearchNode.js.map +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/types/generated/SearchNode.d.ts +17 -0
- package/dist/types/generated/SearchNode.d.ts.map +1 -0
- package/dist/types/generated/index.d.ts +1 -0
- package/dist/types/generated/index.d.ts.map +1 -1
- package/dist/types/glyphs/index.d.ts +4 -0
- package/dist/types/glyphs/index.d.ts.map +1 -1
- package/dist/umd/SearchNode.js +2 -0
- package/dist/umd/SearchNode.js.map +1 -0
- package/dist/umd/index.js +1 -1
- package/dist/umd/index.js.map +1 -1
- package/package.json +3 -3
- package/src/generated/SearchNode.tsx +44 -0
- package/src/generated/index.ts +1 -0
- package/src/glyphs/SearchNode.svg +4 -0
- package/src/glyphs/index.ts +2 -0
- package/stories.js +1 -1
- package/tsdoc.json +84 -0
package/CHANGELOG.md
CHANGED
package/dist/checksums.json
CHANGED
|
@@ -139,6 +139,7 @@
|
|
|
139
139
|
"SMS": "02c507e0e0b5e19eb993a161b570c272",
|
|
140
140
|
"Save": "fc3c31e83aa13d4942bf63257c1b1e74",
|
|
141
141
|
"SearchIndex": "ba804a294af513ead63d9ee1fa8387ec",
|
|
142
|
+
"SearchNode": "944a0b27355b0b2cc6ec9d8e75a02efa",
|
|
142
143
|
"Secondary": "07a18998556ab8687deff6e047d975d6",
|
|
143
144
|
"Serverless": "8669a9fce8f62ddde57601c0fea559d8",
|
|
144
145
|
"Settings": "34b559a3c2f751afd2269bd8ba585287",
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{_ as e,a as l,g as a,b as i,c as r,s as t}from"./glyphCommon-cTThlth0.js";import*as o from"react";import{css as n,cx as s}from"@leafygreen-ui/emotion";import{useIdAllocator as d}from"@leafygreen-ui/hooks";var m,C,c=["className","size","title","aria-label","aria-labelledby","fill","role"],f=function(f){var p=f.className,u=f.size,b=void 0===u?16:u,h=f.title,v=f["aria-label"],y=f["aria-labelledby"],g=f.fill,N=f.role,x=void 0===N?"img":N,E=e(f,c),M=d({prefix:"icon-title"}),R=n(m||(m=l(["\n color: ",";\n "])),g),Z=n(C||(C=l(["\n flex-shrink: 0;\n "]))),k=a(x,"SearchNode",i(i({title:h,titleId:M},"aria-label",v),"aria-labelledby",y));return o.createElement("svg",r({className:s(i({},R,null!=g),Z,p),height:"number"==typeof b?b:t[b],width:"number"==typeof b?b:t[b],role:x},k,E,{viewBox:"0 0 16 16"}),h&&o.createElement("title",{id:M},h),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.3883 9.2529C7.4312 9.8245 6.1735 9.6983 5.3492 8.8741C4.3758 7.9007 4.3758 6.3225 5.3492 5.3492C6.3225 4.3758 7.9007 4.3758 8.8741 5.3492C9.6983 6.1735 9.8245 7.4312 9.2529 8.3883L11.2018 10.3372C11.4405 10.5759 11.4405 10.9631 11.2018 11.2018C10.9631 11.4405 10.5759 11.4405 10.3372 11.2018L8.3883 9.2529ZM8.0095 8.0095C8.5053 7.5136 8.5053 6.7096 8.0095 6.2138C7.5136 5.7179 6.7096 5.7179 6.2138 6.2138C5.7179 6.7096 5.7179 7.5136 6.2138 8.0095C6.7096 8.5053 7.5136 8.5053 8.0095 8.0095Z",fill:"currentColor"}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 8C15 11.866 11.866 15 8 15C4.134 15 1 11.866 1 8C1 4.134 4.134 1 8 1C11.866 1 15 4.134 15 8ZM13.5 8C13.5 11.0375 11.0375 13.5 8 13.5C4.9624 13.5 2.5 11.0375 2.5 8C2.5 4.9624 4.9624 2.5 8 2.5C11.0375 2.5 13.5 4.9624 13.5 8Z",fill:"currentColor"}))};f.displayName="SearchNode",f.isGlyph=!0;export{f as default};
|
|
2
|
+
//# sourceMappingURL=SearchNode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchNode.js","sources":["../../src/generated/SearchNode.tsx"],"sourcesContent":["/**\n* This is a generated file. Do not modify it manually.\n*\n* @script packages/icon/scripts/prebuild/index.ts\n* @checksum 944a0b27355b0b2cc6ec9d8e75a02efa\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { useIdAllocator } from '@leafygreen-ui/hooks';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface SearchNodeProps extends LGGlyph.ComponentProps {}\nconst SearchNode = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: SearchNodeProps) => {\n const titleId = useIdAllocator({\n prefix: 'icon-title'\n });\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'SearchNode', {\n title,\n titleId,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\">{title && <title id={titleId}>{title}</title>}<path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M8.3883 9.2529C7.4312 9.8245 6.1735 9.6983 5.3492 8.8741C4.3758 7.9007 4.3758 6.3225 5.3492 5.3492C6.3225 4.3758 7.9007 4.3758 8.8741 5.3492C9.6983 6.1735 9.8245 7.4312 9.2529 8.3883L11.2018 10.3372C11.4405 10.5759 11.4405 10.9631 11.2018 11.2018C10.9631 11.4405 10.5759 11.4405 10.3372 11.2018L8.3883 9.2529ZM8.0095 8.0095C8.5053 7.5136 8.5053 6.7096 8.0095 6.2138C7.5136 5.7179 6.7096 5.7179 6.2138 6.2138C5.7179 6.7096 5.7179 7.5136 6.2138 8.0095C6.7096 8.5053 7.5136 8.5053 8.0095 8.0095Z\" fill={'currentColor'} /><path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M15 8C15 11.866 11.866 15 8 15C4.134 15 1 11.866 1 8C1 4.134 4.134 1 8 1C11.866 1 15 4.134 15 8ZM13.5 8C13.5 11.0375 11.0375 13.5 8 13.5C4.9624 13.5 2.5 11.0375 2.5 8C2.5 4.9624 4.9624 2.5 8 2.5C11.0375 2.5 13.5 4.9624 13.5 8Z\" fill={'currentColor'} /></svg>;\n};\nSearchNode.displayName = 'SearchNode';\nSearchNode.isGlyph = true;\nexport default SearchNode;"],"names":["SearchNode","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","_excluded","titleId","useIdAllocator","prefix","fillStyle","css","_templateObject","_taggedTemplateLiteral","noFlexShrink","_templateObject2","accessibleProps","generateAccessibleProps","_defineProperty","React","createElement","_extends","cx","height","sizeMap","width","viewBox","id","fillRule","clipRule","d","displayName","isGlyph"],"mappings":"wSAYMA,EAAa,SAAHC,GASO,IARrBC,EAASD,EAATC,UAASC,EAAAF,EACTG,KAAAA,OAAO,IAAHD,EAAG,GAAEA,EACTE,EAAKJ,EAALI,MACgBC,EAASL,EAAxB,cACoBM,EAAcN,EAAlC,mBACDO,EAAIP,EAAJO,KAAIC,EAAAR,EACJS,KAAAA,OAAO,IAAHD,EAAG,MAAKA,EACTE,EAAKC,EAAAX,EAAAY,GAEFC,EAAUC,EAAe,CAC7BC,OAAQ,eAEJC,EAAYC,EAAGC,IAAAA,EAAAC,EACNZ,CAAAA,oBAAAA,eAAAA,GAETa,EAAeH,EAAGI,IAAAA,EAAAF,EAEnB,CAAA,wCACCG,EAAkBC,EAAwBd,EAAM,aAAYe,EAAAA,EAAA,CAChEpB,MAAAA,EACAS,QAAAA,GACC,aAAeR,GACf,kBAAoBC,IAEvB,OAAOmB,EAAAC,cAAA,MAAAC,EAAA,CAAK1B,UAAW2B,EAAEJ,KACtBR,EAAoB,MAART,GACZa,EAAcnB,GAAY4B,OAAwB,iBAAT1B,EAAoBA,EAAO2B,EAAQ3B,GAAO4B,MAAuB,iBAAT5B,EAAoBA,EAAO2B,EAAQ3B,GAAOM,KAAMA,GAAUa,EAAqBZ,EAAK,CAAEsB,QAAQ,cAAa5B,GAASqB,EAAAC,cAAA,QAAA,CAAOO,GAAIpB,GAAUT,GAAeqB,EAAAC,cAAA,OAAA,CAAMQ,SAAS,UAAUC,SAAS,UAAUC,EAAE,+eAA+e7B,KAAM,iBAAkBkB,EAAAC,cAAA,OAAA,CAAMQ,SAAS,UAAUC,SAAS,UAAUC,EAAE,qOAAqO7B,KAAM,iBAC5kC,EACAR,EAAWsC,YAAc,aACzBtC,EAAWuC,SAAU"}
|