@spectrum-web-components/icon 0.11.12-devmode.0 → 0.11.12-devmode.7
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/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@spectrum-web-components/icon",
|
3
|
-
"version": "0.11.12-devmode.
|
3
|
+
"version": "0.11.12-devmode.7+8303f3a2a",
|
4
4
|
"publishConfig": {
|
5
5
|
"access": "public"
|
6
6
|
},
|
@@ -71,8 +71,8 @@
|
|
71
71
|
"lit-html"
|
72
72
|
],
|
73
73
|
"dependencies": {
|
74
|
-
"@spectrum-web-components/base": "^0.5.9-devmode.
|
75
|
-
"@spectrum-web-components/iconset": "^0.6.9-devmode.
|
74
|
+
"@spectrum-web-components/base": "^0.5.9-devmode.31+8303f3a2a",
|
75
|
+
"@spectrum-web-components/iconset": "^0.6.9-devmode.31+8303f3a2a",
|
76
76
|
"tslib": "^2.0.0"
|
77
77
|
},
|
78
78
|
"devDependencies": {
|
@@ -83,5 +83,5 @@
|
|
83
83
|
"sideEffects": [
|
84
84
|
"./sp-*.js"
|
85
85
|
],
|
86
|
-
"gitHead": "
|
86
|
+
"gitHead": "8303f3a2a90b0aedc15158797662ccfa8f4a2031"
|
87
87
|
}
|
package/stories/icon.stories.js
CHANGED
@@ -31,9 +31,7 @@ export const imageIcon = () => {
|
|
31
31
|
`)}
|
32
32
|
`;
|
33
33
|
};
|
34
|
-
imageIcon.
|
35
|
-
name: "Image Icon"
|
36
|
-
};
|
34
|
+
imageIcon.storyName = "Image Icon";
|
37
35
|
export const svgIcon = () => {
|
38
36
|
return html`
|
39
37
|
${sizes.map((size) => html`
|
@@ -54,7 +52,5 @@ export const svgIcon = () => {
|
|
54
52
|
`)}
|
55
53
|
`;
|
56
54
|
};
|
57
|
-
svgIcon.
|
58
|
-
name: "SVG Icon"
|
59
|
-
};
|
55
|
+
svgIcon.storyName = "SVG Icon";
|
60
56
|
//# sourceMappingURL=icon.stories.js.map
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["icon.stories.ts"],
|
4
|
-
"sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { html, TemplateResult } from '@spectrum-web-components/base';\n\nimport '@spectrum-web-components/icon/sp-icon.js';\nimport { back } from './images';\nimport '@spectrum-web-components/icons/sp-icons-medium.js';\nimport '@spectrum-web-components/icons/sp-icons-large.js';\n\nconst sizes = ['s', 'm', 'l', 'xl', 'xxl'];\n\nexport default {\n component: 'sp-icon',\n title: 'Icon',\n};\n\nexport const Medium = (): TemplateResult => {\n return html`\n <sp-icons-medium></sp-icons-medium>\n ${sizes.map(\n (size) => html`\n <sp-icon size=${size} name=\"ui:Chevron200\"></sp-icon>\n `\n )}\n `;\n};\n\nexport const Large = (): TemplateResult => {\n return html`\n <sp-icons-large></sp-icons-large>\n ${sizes.map(\n (size) => html`\n <sp-icon size=${size} name=\"ui:Chevron400\"></sp-icon>\n `\n )}\n `;\n};\n\nexport const imageIcon = (): TemplateResult => {\n return html`\n ${sizes.map(\n (size) => html`\n <sp-icon label=\"Back\" size=${size} src=${back}></sp-icon>\n `\n )}\n `;\n};\n\nimageIcon.
|
5
|
-
"mappings": "AAWA;AAEA;AACA;AACA;AACA;AAEA,MAAM,QAAQ,CAAC,KAAK,KAAK,KAAK,MAAM,KAAK;AAEzC,eAAe;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AACX;AAEO,aAAM,SAAS,MAAsB;AACxC,SAAO;AAAA;AAAA,UAED,MAAM,IACJ,CAAC,SAAS;AAAA,gCACU;AAAA,aAExB;AAAA;AAER;AAEO,aAAM,QAAQ,MAAsB;AACvC,SAAO;AAAA;AAAA,UAED,MAAM,IACJ,CAAC,SAAS;AAAA,gCACU;AAAA,aAExB;AAAA;AAER;AAEO,aAAM,YAAY,MAAsB;AAC3C,SAAO;AAAA,UACD,MAAM,IACJ,CAAC,SAAS;AAAA,6CACuB,YAAY;AAAA,aAEjD;AAAA;AAER;AAEA,UAAU,
|
4
|
+
"sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { html, TemplateResult } from '@spectrum-web-components/base';\n\nimport '@spectrum-web-components/icon/sp-icon.js';\nimport { back } from './images';\nimport '@spectrum-web-components/icons/sp-icons-medium.js';\nimport '@spectrum-web-components/icons/sp-icons-large.js';\n\nconst sizes = ['s', 'm', 'l', 'xl', 'xxl'];\n\nexport default {\n component: 'sp-icon',\n title: 'Icon',\n};\n\nexport const Medium = (): TemplateResult => {\n return html`\n <sp-icons-medium></sp-icons-medium>\n ${sizes.map(\n (size) => html`\n <sp-icon size=${size} name=\"ui:Chevron200\"></sp-icon>\n `\n )}\n `;\n};\n\nexport const Large = (): TemplateResult => {\n return html`\n <sp-icons-large></sp-icons-large>\n ${sizes.map(\n (size) => html`\n <sp-icon size=${size} name=\"ui:Chevron400\"></sp-icon>\n `\n )}\n `;\n};\n\nexport const imageIcon = (): TemplateResult => {\n return html`\n ${sizes.map(\n (size) => html`\n <sp-icon label=\"Back\" size=${size} src=${back}></sp-icon>\n `\n )}\n `;\n};\n\nimageIcon.storyName = 'Image Icon';\n\nexport const svgIcon = (): TemplateResult => {\n return html`\n ${sizes.map(\n (size) => html`\n <sp-icon size=${size}>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 22 22\"\n fill=\"currentColor\"\n height=\"18\"\n width=\"18\"\n aria-hidden=\"true\"\n >\n <path\n d=\"M19.75,10.04h-15l5.97-5.97a.483.483,0,0,0,0-.7l-.35-.36a.513.513,0,0,0-.71,0L2.24,10.44a.513.513,0,0,0,0,.71l7.39,7.84a.513.513,0,0,0,.71,0l.35-.35a.513.513,0,0,0,0-.71L4.76,11.5H19.75a.25.25,0,0,0,.25-.25v-.96A.25.25,0,0,0,19.75,10.04Z\"\n ></path>\n </svg>\n </sp-icon>\n `\n )}\n `;\n};\n\nsvgIcon.storyName = 'SVG Icon';\n"],
|
5
|
+
"mappings": "AAWA;AAEA;AACA;AACA;AACA;AAEA,MAAM,QAAQ,CAAC,KAAK,KAAK,KAAK,MAAM,KAAK;AAEzC,eAAe;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AACX;AAEO,aAAM,SAAS,MAAsB;AACxC,SAAO;AAAA;AAAA,UAED,MAAM,IACJ,CAAC,SAAS;AAAA,gCACU;AAAA,aAExB;AAAA;AAER;AAEO,aAAM,QAAQ,MAAsB;AACvC,SAAO;AAAA;AAAA,UAED,MAAM,IACJ,CAAC,SAAS;AAAA,gCACU;AAAA,aAExB;AAAA;AAER;AAEO,aAAM,YAAY,MAAsB;AAC3C,SAAO;AAAA,UACD,MAAM,IACJ,CAAC,SAAS;AAAA,6CACuB,YAAY;AAAA,aAEjD;AAAA;AAER;AAEA,UAAU,YAAY;AAEf,aAAM,UAAU,MAAsB;AACzC,SAAO;AAAA,UACD,MAAM,IACJ,CAAC,SAAS;AAAA,gCACU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aAexB;AAAA;AAER;AAEA,QAAQ,YAAY;",
|
6
6
|
"names": []
|
7
7
|
}
|