@leafygreen-ui/icon 14.7.2 → 14.8.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 +2 -0
- package/dist/esm/CollapseVertical.js +2 -0
- package/dist/esm/CollapseVertical.js.map +1 -0
- package/dist/esm/ExpandVertical.js +2 -0
- package/dist/esm/ExpandVertical.js.map +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/types/generated/CollapseVertical.d.ts +17 -0
- package/dist/types/generated/CollapseVertical.d.ts.map +1 -0
- package/dist/types/generated/ExpandVertical.d.ts +17 -0
- package/dist/types/generated/ExpandVertical.d.ts.map +1 -0
- package/dist/types/generated/index.d.ts +2 -0
- package/dist/types/generated/index.d.ts.map +1 -1
- package/dist/types/glyphs/index.d.ts +8 -0
- package/dist/types/glyphs/index.d.ts.map +1 -1
- package/dist/umd/CollapseVertical.js +2 -0
- package/dist/umd/CollapseVertical.js.map +1 -0
- package/dist/umd/ExpandVertical.js +2 -0
- package/dist/umd/ExpandVertical.js.map +1 -0
- package/dist/umd/index.js +1 -1
- package/dist/umd/index.js.map +1 -1
- package/package.json +2 -2
- package/src/generated/CollapseVertical.tsx +44 -0
- package/src/generated/ExpandVertical.tsx +44 -0
- package/src/generated/index.ts +2 -0
- package/src/glyphs/CollapseVertical.svg +3 -0
- package/src/glyphs/ExpandVertical.svg +3 -0
- package/src/glyphs/index.ts +4 -0
- package/stories.js +1 -1
- package/tsdoc.json +168 -0
package/CHANGELOG.md
CHANGED
package/dist/checksums.json
CHANGED
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
"Code": "d1646228a06071051ef13676e6a11303",
|
|
41
41
|
"CodeBlock": "fe7d7e62b2cd7fdbaf37e4bcd3a4c6fe",
|
|
42
42
|
"Coin": "5ad701f313c4e655eac0938f2d7f3fb8",
|
|
43
|
+
"CollapseVertical": "55b0520dbe25c4bb01628bf6aba3d353",
|
|
43
44
|
"Colon": "aa11cb66b8291a087fe11fbe4616292c",
|
|
44
45
|
"Config": "3e43b9a64baef9e6a2e1b0bad4c0d4e7",
|
|
45
46
|
"Connect": "cacc5f021481d402053e2d0be9bd7edb",
|
|
@@ -62,6 +63,7 @@
|
|
|
62
63
|
"EmptyFolder": "e643d2b2219d2af0c9f7019a024cf5fd",
|
|
63
64
|
"Eraser": "f3dc3704cab47b6e170449b95ce7941e",
|
|
64
65
|
"Escalation": "cc58f19c520502262c789fb80932b8e7",
|
|
66
|
+
"ExpandVertical": "154b87ec1a0bc735dce75670de6f86bf",
|
|
65
67
|
"Export": "a270d72889172f9ce9df760e21081433",
|
|
66
68
|
"Favorite": "7244d39bbd8e05a17d3f20d10b6125d5",
|
|
67
69
|
"Federation": "a0ccfa81ae5643665b2623d2a09961d3",
|
|
@@ -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 C from"react";import{css as o,cx as s}from"@leafygreen-ui/emotion";import{useIdAllocator as m}from"@leafygreen-ui/hooks";var n,f,p=["className","size","title","aria-label","aria-labelledby","fill","role"],c=function(c){var b=c.className,d=c.size,y=void 0===d?16:d,L=c.title,h=c["aria-label"],u=c["aria-labelledby"],g=c.fill,v=c.role,x=void 0===v?"img":v,N=e(c,p),E=m({prefix:"icon-title"}),k=o(n||(n=l(["\n color: ",";\n "])),g),w=o(f||(f=l(["\n flex-shrink: 0;\n "]))),z=a(x,"CollapseVertical",i(i({title:L,titleId:E},"aria-label",h),"aria-labelledby",u));return C.createElement("svg",r({className:s(i({},k,null!=g),w,b),height:"number"==typeof y?y:t[y],width:"number"==typeof y?y:t[y],role:x},z,N,{viewBox:"0 0 16 16"}),L&&C.createElement("title",{id:E},L),C.createElement("path",{d:"M11.5306 14.5316C11.6005 14.4619 11.656 14.3791 11.6938 14.288C11.7317 14.1968 11.7512 14.0991 11.7512 14.0004C11.7512 13.9016 11.7317 13.8039 11.6938 13.7127C11.656 13.6216 11.6005 13.5388 11.5306 13.4691L8.5306 10.4691C8.46092 10.3992 8.37813 10.3437 8.28696 10.3059C8.1958 10.268 8.09806 10.2485 7.99935 10.2485C7.90064 10.2485 7.8029 10.268 7.71173 10.3059C7.62057 10.3437 7.53778 10.3992 7.4681 10.4691L4.4681 13.4691C4.3272 13.61 4.24805 13.8011 4.24805 14.0004C4.24805 14.1996 4.3272 14.3907 4.4681 14.5316C4.60899 14.6725 4.80009 14.7517 4.99935 14.7517C5.19861 14.7517 5.3897 14.6725 5.5306 14.5316L7.99997 12.0635L10.4693 14.5335C10.5391 14.6031 10.6219 14.6583 10.7131 14.6958C10.8042 14.7334 10.9018 14.7527 11.0004 14.7525C11.0989 14.7523 11.1965 14.7327 11.2875 14.6948C11.3784 14.6569 11.4611 14.6015 11.5306 14.5316ZM5.5306 1.47013L7.99997 3.9395L10.4693 1.4695C10.6102 1.32861 10.8013 1.24945 11.0006 1.24945C11.1999 1.24945 11.391 1.32861 11.5318 1.4695C11.6727 1.6104 11.7519 1.80149 11.7519 2.00075C11.7519 2.20001 11.6727 2.39111 11.5318 2.532L8.53185 5.532C8.46217 5.60192 8.37937 5.6574 8.28821 5.69525C8.19705 5.73311 8.09931 5.75259 8.0006 5.75259C7.90189 5.75259 7.80415 5.73311 7.71298 5.69525C7.62182 5.6574 7.53903 5.60192 7.46935 5.532L4.46935 2.532C4.32845 2.39111 4.2493 2.20001 4.2493 2.00075C4.2493 1.80149 4.32845 1.6104 4.46935 1.4695C4.61024 1.32861 4.80134 1.24945 5.0006 1.24945C5.19986 1.24945 5.39095 1.32861 5.53185 1.4695L5.5306 1.47013Z",fill:"#5C6C75"}))};c.displayName="CollapseVertical",c.isGlyph=!0;export{c as default};
|
|
2
|
+
//# sourceMappingURL=CollapseVertical.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CollapseVertical.js","sources":["../../src/generated/CollapseVertical.tsx"],"sourcesContent":["/**\n* This is a generated file. Do not modify it manually.\n*\n* @script packages/icon/scripts/prebuild/index.ts\n* @checksum 55b0520dbe25c4bb01628bf6aba3d353\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 CollapseVerticalProps extends LGGlyph.ComponentProps {}\nconst CollapseVertical = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: CollapseVerticalProps) => {\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, 'CollapseVertical', {\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 d=\"M11.5306 14.5316C11.6005 14.4619 11.656 14.3791 11.6938 14.288C11.7317 14.1968 11.7512 14.0991 11.7512 14.0004C11.7512 13.9016 11.7317 13.8039 11.6938 13.7127C11.656 13.6216 11.6005 13.5388 11.5306 13.4691L8.5306 10.4691C8.46092 10.3992 8.37813 10.3437 8.28696 10.3059C8.1958 10.268 8.09806 10.2485 7.99935 10.2485C7.90064 10.2485 7.8029 10.268 7.71173 10.3059C7.62057 10.3437 7.53778 10.3992 7.4681 10.4691L4.4681 13.4691C4.3272 13.61 4.24805 13.8011 4.24805 14.0004C4.24805 14.1996 4.3272 14.3907 4.4681 14.5316C4.60899 14.6725 4.80009 14.7517 4.99935 14.7517C5.19861 14.7517 5.3897 14.6725 5.5306 14.5316L7.99997 12.0635L10.4693 14.5335C10.5391 14.6031 10.6219 14.6583 10.7131 14.6958C10.8042 14.7334 10.9018 14.7527 11.0004 14.7525C11.0989 14.7523 11.1965 14.7327 11.2875 14.6948C11.3784 14.6569 11.4611 14.6015 11.5306 14.5316ZM5.5306 1.47013L7.99997 3.9395L10.4693 1.4695C10.6102 1.32861 10.8013 1.24945 11.0006 1.24945C11.1999 1.24945 11.391 1.32861 11.5318 1.4695C11.6727 1.6104 11.7519 1.80149 11.7519 2.00075C11.7519 2.20001 11.6727 2.39111 11.5318 2.532L8.53185 5.532C8.46217 5.60192 8.37937 5.6574 8.28821 5.69525C8.19705 5.73311 8.09931 5.75259 8.0006 5.75259C7.90189 5.75259 7.80415 5.73311 7.71298 5.69525C7.62182 5.6574 7.53903 5.60192 7.46935 5.532L4.46935 2.532C4.32845 2.39111 4.2493 2.20001 4.2493 2.00075C4.2493 1.80149 4.32845 1.6104 4.46935 1.4695C4.61024 1.32861 4.80134 1.24945 5.0006 1.24945C5.19986 1.24945 5.39095 1.32861 5.53185 1.4695L5.5306 1.47013Z\" fill=\"#5C6C75\" /></svg>;\n};\nCollapseVertical.displayName = 'CollapseVertical';\nCollapseVertical.isGlyph = true;\nexport default CollapseVertical;"],"names":["CollapseVertical","_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","d","displayName","isGlyph"],"mappings":"wSAYMA,EAAmB,SAAHC,GASO,IAR3BC,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,mBAAkBe,EAAAA,EAAA,CACtEpB,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,EAAE,28CAA28C3B,KAAK,YACttD,EACAR,EAAiBoC,YAAc,mBAC/BpC,EAAiBqC,SAAU"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{_ as e,a,g as l,b as i,c as r,s as t}from"./glyphCommon-cTThlth0.js";import*as C from"react";import{css as o,cx as s}from"@leafygreen-ui/emotion";import{useIdAllocator as m}from"@leafygreen-ui/hooks";var n,f,p=["className","size","title","aria-label","aria-labelledby","fill","role"],c=function(c){var d=c.className,b=c.size,y=void 0===b?16:b,L=c.title,h=c["aria-label"],u=c["aria-labelledby"],g=c.fill,v=c.role,x=void 0===v?"img":v,E=e(c,p),N=m({prefix:"icon-title"}),k=o(n||(n=a(["\n color: ",";\n "])),g),w=o(f||(f=a(["\n flex-shrink: 0;\n "]))),z=l(x,"ExpandVertical",i(i({title:L,titleId:N},"aria-label",h),"aria-labelledby",u));return C.createElement("svg",r({className:s(i({},k,null!=g),w,d),height:"number"==typeof y?y:t[y],width:"number"==typeof y?y:t[y],role:x},z,E,{viewBox:"0 0 16 16"}),L&&C.createElement("title",{id:N},L),C.createElement("path",{d:"M11.5306 10.4694C11.6005 10.5391 11.656 10.6219 11.6938 10.713C11.7317 10.8042 11.7512 10.9019 11.7512 11.0007C11.7512 11.0994 11.7317 11.1971 11.6938 11.2883C11.656 11.3794 11.6005 11.4622 11.5306 11.5319L8.5306 14.5319C8.46092 14.6018 8.37813 14.6573 8.28696 14.6952C8.1958 14.733 8.09806 14.7525 7.99935 14.7525C7.90064 14.7525 7.8029 14.733 7.71173 14.6952C7.62057 14.6573 7.53778 14.6018 7.4681 14.5319L4.4681 11.5319C4.3272 11.391 4.24805 11.1999 4.24805 11.0007C4.24805 10.8014 4.3272 10.6103 4.4681 10.4694C4.60899 10.3285 4.80009 10.2494 4.99935 10.2494C5.19861 10.2494 5.3897 10.3285 5.5306 10.4694L7.99997 12.9375L10.4693 10.4675C10.5391 10.3979 10.6219 10.3428 10.7131 10.3052C10.8042 10.2676 10.9018 10.2483 11.0004 10.2485C11.0989 10.2487 11.1965 10.2683 11.2875 10.3062C11.3784 10.3441 11.4611 10.3996 11.5306 10.4694ZM5.5306 5.53191L7.99997 3.06253L10.4693 5.53253C10.6102 5.67343 10.8013 5.75258 11.0006 5.75258C11.1999 5.75258 11.391 5.67343 11.5318 5.53253C11.6727 5.39164 11.7519 5.20054 11.7519 5.00128C11.7519 4.80203 11.6727 4.61093 11.5318 4.47003L8.53185 1.47003C8.46217 1.40011 8.37938 1.34464 8.28821 1.30678C8.19705 1.26893 8.09931 1.24944 8.0006 1.24944C7.90189 1.24944 7.80415 1.26893 7.71298 1.30678C7.62182 1.34464 7.53903 1.40011 7.46935 1.47003L4.46935 4.47003C4.32845 4.61093 4.2493 4.80203 4.2493 5.00128C4.2493 5.20054 4.32845 5.39164 4.46935 5.53253C4.61024 5.67343 4.80134 5.75258 5.0006 5.75258C5.19986 5.75258 5.39095 5.67343 5.53185 5.53253L5.5306 5.53191Z",fill:"#5C6C75"}))};c.displayName="ExpandVertical",c.isGlyph=!0;export{c as default};
|
|
2
|
+
//# sourceMappingURL=ExpandVertical.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExpandVertical.js","sources":["../../src/generated/ExpandVertical.tsx"],"sourcesContent":["/**\n* This is a generated file. Do not modify it manually.\n*\n* @script packages/icon/scripts/prebuild/index.ts\n* @checksum 154b87ec1a0bc735dce75670de6f86bf\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 ExpandVerticalProps extends LGGlyph.ComponentProps {}\nconst ExpandVertical = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: ExpandVerticalProps) => {\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, 'ExpandVertical', {\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 d=\"M11.5306 10.4694C11.6005 10.5391 11.656 10.6219 11.6938 10.713C11.7317 10.8042 11.7512 10.9019 11.7512 11.0007C11.7512 11.0994 11.7317 11.1971 11.6938 11.2883C11.656 11.3794 11.6005 11.4622 11.5306 11.5319L8.5306 14.5319C8.46092 14.6018 8.37813 14.6573 8.28696 14.6952C8.1958 14.733 8.09806 14.7525 7.99935 14.7525C7.90064 14.7525 7.8029 14.733 7.71173 14.6952C7.62057 14.6573 7.53778 14.6018 7.4681 14.5319L4.4681 11.5319C4.3272 11.391 4.24805 11.1999 4.24805 11.0007C4.24805 10.8014 4.3272 10.6103 4.4681 10.4694C4.60899 10.3285 4.80009 10.2494 4.99935 10.2494C5.19861 10.2494 5.3897 10.3285 5.5306 10.4694L7.99997 12.9375L10.4693 10.4675C10.5391 10.3979 10.6219 10.3428 10.7131 10.3052C10.8042 10.2676 10.9018 10.2483 11.0004 10.2485C11.0989 10.2487 11.1965 10.2683 11.2875 10.3062C11.3784 10.3441 11.4611 10.3996 11.5306 10.4694ZM5.5306 5.53191L7.99997 3.06253L10.4693 5.53253C10.6102 5.67343 10.8013 5.75258 11.0006 5.75258C11.1999 5.75258 11.391 5.67343 11.5318 5.53253C11.6727 5.39164 11.7519 5.20054 11.7519 5.00128C11.7519 4.80203 11.6727 4.61093 11.5318 4.47003L8.53185 1.47003C8.46217 1.40011 8.37938 1.34464 8.28821 1.30678C8.19705 1.26893 8.09931 1.24944 8.0006 1.24944C7.90189 1.24944 7.80415 1.26893 7.71298 1.30678C7.62182 1.34464 7.53903 1.40011 7.46935 1.47003L4.46935 4.47003C4.32845 4.61093 4.2493 4.80203 4.2493 5.00128C4.2493 5.20054 4.32845 5.39164 4.46935 5.53253C4.61024 5.67343 4.80134 5.75258 5.0006 5.75258C5.19986 5.75258 5.39095 5.67343 5.53185 5.53253L5.5306 5.53191Z\" fill=\"#5C6C75\" /></svg>;\n};\nExpandVertical.displayName = 'ExpandVertical';\nExpandVertical.isGlyph = true;\nexport default ExpandVertical;"],"names":["ExpandVertical","_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","d","displayName","isGlyph"],"mappings":"mSAYMA,EAAiB,SAAHC,GASO,IARzBC,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,iBAAgBe,EAAAA,EAAA,CACpEpB,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,EAAE,69CAA69C3B,KAAK,YACxuD,EACAR,EAAeoC,YAAc,iBAC7BpC,EAAeqC,SAAU"}
|