@spectrum-web-components/icon 0.12.0-devmode.0 → 0.12.1
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 +4 -4
- package/sp-icon.dev.js +1 -0
- package/sp-icon.dev.js.map +1 -1
- package/sp-icon.js +1 -2
- package/sp-icon.js.map +2 -2
- package/src/Icon.dev.js +7 -1
- package/src/Icon.dev.js.map +1 -1
- package/src/Icon.js +4 -101
- package/src/Icon.js.map +2 -2
- package/src/IconBase.dev.js +1 -0
- package/src/IconBase.dev.js.map +1 -1
- package/src/IconBase.js +2 -32
- package/src/IconBase.js.map +2 -2
- package/src/icon.css.dev.js +1 -0
- package/src/icon.css.dev.js.map +1 -1
- package/src/icon.css.js +2 -4
- package/src/icon.css.js.map +2 -2
- package/src/index.dev.js +1 -0
- package/src/index.dev.js.map +1 -1
- package/src/index.js +1 -2
- package/src/index.js.map +1 -1
- package/src/spectrum-icon-arrow.css.dev.js +1 -0
- package/src/spectrum-icon-arrow.css.dev.js.map +1 -1
- package/src/spectrum-icon-arrow.css.js +2 -4
- package/src/spectrum-icon-arrow.css.js.map +2 -2
- package/src/spectrum-icon-asterisk.css.dev.js +1 -0
- package/src/spectrum-icon-asterisk.css.dev.js.map +1 -1
- package/src/spectrum-icon-asterisk.css.js +2 -4
- package/src/spectrum-icon-asterisk.css.js.map +2 -2
- package/src/spectrum-icon-checkmark.css.dev.js +1 -0
- package/src/spectrum-icon-checkmark.css.dev.js.map +1 -1
- package/src/spectrum-icon-checkmark.css.js +2 -4
- package/src/spectrum-icon-checkmark.css.js.map +2 -2
- package/src/spectrum-icon-chevron.css.dev.js +1 -0
- package/src/spectrum-icon-chevron.css.dev.js.map +1 -1
- package/src/spectrum-icon-chevron.css.js +2 -4
- package/src/spectrum-icon-chevron.css.js.map +2 -2
- package/src/spectrum-icon-corner-triangle.css.dev.js +1 -0
- package/src/spectrum-icon-corner-triangle.css.dev.js.map +1 -1
- package/src/spectrum-icon-corner-triangle.css.js +2 -4
- package/src/spectrum-icon-corner-triangle.css.js.map +2 -2
- package/src/spectrum-icon-cross.css.dev.js +1 -0
- package/src/spectrum-icon-cross.css.dev.js.map +1 -1
- package/src/spectrum-icon-cross.css.js +2 -4
- package/src/spectrum-icon-cross.css.js.map +2 -2
- package/src/spectrum-icon-dash.css.dev.js +1 -0
- package/src/spectrum-icon-dash.css.dev.js.map +1 -1
- package/src/spectrum-icon-dash.css.js +2 -4
- package/src/spectrum-icon-dash.css.js.map +2 -2
- package/src/spectrum-icon-double-gripper.css.dev.js +1 -0
- package/src/spectrum-icon-double-gripper.css.dev.js.map +1 -1
- package/src/spectrum-icon-double-gripper.css.js +2 -4
- package/src/spectrum-icon-double-gripper.css.js.map +2 -2
- package/src/spectrum-icon-single-gripper.css.dev.js +1 -0
- package/src/spectrum-icon-single-gripper.css.dev.js.map +1 -1
- package/src/spectrum-icon-single-gripper.css.js +2 -4
- package/src/spectrum-icon-single-gripper.css.js.map +2 -2
- package/src/spectrum-icon-triple-gripper.css.dev.js +1 -0
- package/src/spectrum-icon-triple-gripper.css.dev.js.map +1 -1
- package/src/spectrum-icon-triple-gripper.css.js +2 -4
- package/src/spectrum-icon-triple-gripper.css.js.map +2 -2
- package/src/spectrum-icon.css.dev.js +1 -0
- package/src/spectrum-icon.css.dev.js.map +1 -1
- package/src/spectrum-icon.css.js +2 -4
- package/src/spectrum-icon.css.js.map +2 -2
- package/stories/icon.stories.js +17 -8
- package/stories/icon.stories.js.map +1 -1
- package/stories/images.js +1 -0
- package/stories/images.js.map +1 -1
- package/test/benchmark/test-basic.js +1 -0
- package/test/benchmark/test-basic.js.map +1 -1
- package/test/icon.test-vrt.js +1 -0
- package/test/icon.test-vrt.js.map +1 -1
- package/test/icon.test.js +27 -12
- package/test/icon.test.js.map +1 -1
@@ -2,6 +2,6 @@
|
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["spectrum-icon-chevron.css.ts"],
|
4
4
|
"sourcesContent": ["/*\nCopyright 2022 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 { css } from '@spectrum-web-components/base';\nconst styles = css`\n@media (forced-colors:active){.spectrum-Icon,.spectrum-UIIcon{forced-color-adjust:auto}}.spectrum-UIIcon-ChevronDown100,.spectrum-UIIcon-ChevronDown200,.spectrum-UIIcon-ChevronDown300,.spectrum-UIIcon-ChevronDown400,.spectrum-UIIcon-ChevronDown500,.spectrum-UIIcon-ChevronDown75{transform:rotate(90deg)}.spectrum-UIIcon-ChevronLeft100,.spectrum-UIIcon-ChevronLeft200,.spectrum-UIIcon-ChevronLeft300,.spectrum-UIIcon-ChevronLeft400,.spectrum-UIIcon-ChevronLeft500,.spectrum-UIIcon-ChevronLeft75{transform:rotate(180deg)}.spectrum-UIIcon-ChevronUp100,.spectrum-UIIcon-ChevronUp200,.spectrum-UIIcon-ChevronUp300,.spectrum-UIIcon-ChevronUp400,.spectrum-UIIcon-ChevronUp500,.spectrum-UIIcon-ChevronUp75{transform:rotate(270deg)}.spectrum-UIIcon-ChevronDown75,.spectrum-UIIcon-ChevronLeft75,.spectrum-UIIcon-ChevronRight75,.spectrum-UIIcon-ChevronUp75{height:var(--spectrum-alias-ui-icon-chevron-size-75);width:var(\n--spectrum-alias-ui-icon-chevron-size-75\n)}.spectrum-UIIcon-ChevronDown100,.spectrum-UIIcon-ChevronLeft100,.spectrum-UIIcon-ChevronRight100,.spectrum-UIIcon-ChevronUp100{height:var(--spectrum-alias-ui-icon-chevron-size-100);width:var(\n--spectrum-alias-ui-icon-chevron-size-100\n)}.spectrum-UIIcon-ChevronDown200,.spectrum-UIIcon-ChevronLeft200,.spectrum-UIIcon-ChevronRight200,.spectrum-UIIcon-ChevronUp200{height:var(--spectrum-alias-ui-icon-chevron-size-200);width:var(\n--spectrum-alias-ui-icon-chevron-size-200\n)}.spectrum-UIIcon-ChevronDown300,.spectrum-UIIcon-ChevronLeft300,.spectrum-UIIcon-ChevronRight300,.spectrum-UIIcon-ChevronUp300{height:var(--spectrum-alias-ui-icon-chevron-size-300);width:var(\n--spectrum-alias-ui-icon-chevron-size-300\n)}.spectrum-UIIcon-ChevronDown400,.spectrum-UIIcon-ChevronLeft400,.spectrum-UIIcon-ChevronRight400,.spectrum-UIIcon-ChevronUp400{height:var(--spectrum-alias-ui-icon-chevron-size-400);width:var(\n--spectrum-alias-ui-icon-chevron-size-400\n)}.spectrum-UIIcon-ChevronDown500,.spectrum-UIIcon-ChevronLeft500,.spectrum-UIIcon-ChevronRight500,.spectrum-UIIcon-ChevronUp500{height:var(--spectrum-alias-ui-icon-chevron-size-500);width:var(\n--spectrum-alias-ui-icon-chevron-size-500\n)}\n`;\nexport default styles;"],
|
5
|
-
"mappings": "
|
6
|
-
"names": []
|
5
|
+
"mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAef,eAAeC",
|
6
|
+
"names": ["css", "styles"]
|
7
7
|
}
|
@@ -2,6 +2,6 @@
|
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["spectrum-icon-corner-triangle.css.ts"],
|
4
4
|
"sourcesContent": ["/*\nCopyright 2022 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 { css } from '@spectrum-web-components/base';\nconst styles = css`\n@media (forced-colors:active){.spectrum-Icon,.spectrum-UIIcon{forced-color-adjust:auto}}.spectrum-UIIcon-CornerTriangle75{height:var(\n--spectrum-alias-ui-icon-cornertriangle-size-75,var(--spectrum-global-dimension-size-65)\n);width:var(\n--spectrum-alias-ui-icon-cornertriangle-size-75,var(--spectrum-global-dimension-size-65)\n)}.spectrum-UIIcon-CornerTriangle100{height:var(--spectrum-alias-ui-icon-cornertriangle-size-100);width:var(\n--spectrum-alias-ui-icon-cornertriangle-size-100\n)}.spectrum-UIIcon-CornerTriangle200{height:var(\n--spectrum-alias-ui-icon-cornertriangle-size-200,var(--spectrum-global-dimension-size-75)\n);width:var(\n--spectrum-alias-ui-icon-cornertriangle-size-200,var(--spectrum-global-dimension-size-75)\n)}.spectrum-UIIcon-CornerTriangle300{height:var(--spectrum-alias-ui-icon-cornertriangle-size-300);width:var(\n--spectrum-alias-ui-icon-cornertriangle-size-300\n)}\n`;\nexport default styles;"],
|
5
|
-
"mappings": "AAWA;
|
5
|
+
"mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAef,eAAe;",
|
6
6
|
"names": []
|
7
7
|
}
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import
|
2
|
-
const styles = css`
|
1
|
+
"use strict";import{css as r}from"@spectrum-web-components/base";const e=r`
|
3
2
|
@media (forced-colors:active){.spectrum-Icon,.spectrum-UIIcon{forced-color-adjust:auto}}.spectrum-UIIcon-CornerTriangle75{height:var(
|
4
3
|
--spectrum-alias-ui-icon-cornertriangle-size-75,var(--spectrum-global-dimension-size-65)
|
5
4
|
);width:var(
|
@@ -13,6 +12,5 @@ const styles = css`
|
|
13
12
|
)}.spectrum-UIIcon-CornerTriangle300{height:var(--spectrum-alias-ui-icon-cornertriangle-size-300);width:var(
|
14
13
|
--spectrum-alias-ui-icon-cornertriangle-size-300
|
15
14
|
)}
|
16
|
-
`;
|
17
|
-
export default styles;
|
15
|
+
`;export default e;
|
18
16
|
//# sourceMappingURL=spectrum-icon-corner-triangle.css.js.map
|
@@ -2,6 +2,6 @@
|
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["spectrum-icon-corner-triangle.css.ts"],
|
4
4
|
"sourcesContent": ["/*\nCopyright 2022 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 { css } from '@spectrum-web-components/base';\nconst styles = css`\n@media (forced-colors:active){.spectrum-Icon,.spectrum-UIIcon{forced-color-adjust:auto}}.spectrum-UIIcon-CornerTriangle75{height:var(\n--spectrum-alias-ui-icon-cornertriangle-size-75,var(--spectrum-global-dimension-size-65)\n);width:var(\n--spectrum-alias-ui-icon-cornertriangle-size-75,var(--spectrum-global-dimension-size-65)\n)}.spectrum-UIIcon-CornerTriangle100{height:var(--spectrum-alias-ui-icon-cornertriangle-size-100);width:var(\n--spectrum-alias-ui-icon-cornertriangle-size-100\n)}.spectrum-UIIcon-CornerTriangle200{height:var(\n--spectrum-alias-ui-icon-cornertriangle-size-200,var(--spectrum-global-dimension-size-75)\n);width:var(\n--spectrum-alias-ui-icon-cornertriangle-size-200,var(--spectrum-global-dimension-size-75)\n)}.spectrum-UIIcon-CornerTriangle300{height:var(--spectrum-alias-ui-icon-cornertriangle-size-300);width:var(\n--spectrum-alias-ui-icon-cornertriangle-size-300\n)}\n`;\nexport default styles;"],
|
5
|
-
"mappings": "
|
6
|
-
"names": []
|
5
|
+
"mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAef,eAAeC",
|
6
|
+
"names": ["css", "styles"]
|
7
7
|
}
|
@@ -2,6 +2,6 @@
|
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["spectrum-icon-cross.css.ts"],
|
4
4
|
"sourcesContent": ["/*\nCopyright 2022 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 { css } from '@spectrum-web-components/base';\nconst styles = css`\n@media (forced-colors:active){.spectrum-Icon,.spectrum-UIIcon{forced-color-adjust:auto}}.spectrum-UIIcon-Cross75{height:var(--spectrum-alias-ui-icon-cross-size-75);width:var(\n--spectrum-alias-ui-icon-cross-size-75\n)}.spectrum-UIIcon-Cross100{height:var(--spectrum-alias-ui-icon-cross-size-100);width:var(\n--spectrum-alias-ui-icon-cross-size-100\n)}.spectrum-UIIcon-Cross200{height:var(--spectrum-alias-ui-icon-cross-size-200);width:var(\n--spectrum-alias-ui-icon-cross-size-200\n)}.spectrum-UIIcon-Cross300{height:var(--spectrum-alias-ui-icon-cross-size-300);width:var(\n--spectrum-alias-ui-icon-cross-size-300\n)}.spectrum-UIIcon-Cross400{height:var(--spectrum-alias-ui-icon-cross-size-400);width:var(\n--spectrum-alias-ui-icon-cross-size-400\n)}.spectrum-UIIcon-Cross500{height:var(--spectrum-alias-ui-icon-cross-size-500);width:var(\n--spectrum-alias-ui-icon-cross-size-500\n)}.spectrum-UIIcon-Cross600{height:var(--spectrum-alias-ui-icon-cross-size-600);width:var(\n--spectrum-alias-ui-icon-cross-size-600\n)}\n`;\nexport default styles;"],
|
5
|
-
"mappings": "AAWA;
|
5
|
+
"mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAiBf,eAAe;",
|
6
6
|
"names": []
|
7
7
|
}
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import
|
2
|
-
const styles = css`
|
1
|
+
"use strict";import{css as s}from"@spectrum-web-components/base";const i=s`
|
3
2
|
@media (forced-colors:active){.spectrum-Icon,.spectrum-UIIcon{forced-color-adjust:auto}}.spectrum-UIIcon-Cross75{height:var(--spectrum-alias-ui-icon-cross-size-75);width:var(
|
4
3
|
--spectrum-alias-ui-icon-cross-size-75
|
5
4
|
)}.spectrum-UIIcon-Cross100{height:var(--spectrum-alias-ui-icon-cross-size-100);width:var(
|
@@ -15,6 +14,5 @@ const styles = css`
|
|
15
14
|
)}.spectrum-UIIcon-Cross600{height:var(--spectrum-alias-ui-icon-cross-size-600);width:var(
|
16
15
|
--spectrum-alias-ui-icon-cross-size-600
|
17
16
|
)}
|
18
|
-
`;
|
19
|
-
export default styles;
|
17
|
+
`;export default i;
|
20
18
|
//# sourceMappingURL=spectrum-icon-cross.css.js.map
|
@@ -2,6 +2,6 @@
|
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["spectrum-icon-cross.css.ts"],
|
4
4
|
"sourcesContent": ["/*\nCopyright 2022 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 { css } from '@spectrum-web-components/base';\nconst styles = css`\n@media (forced-colors:active){.spectrum-Icon,.spectrum-UIIcon{forced-color-adjust:auto}}.spectrum-UIIcon-Cross75{height:var(--spectrum-alias-ui-icon-cross-size-75);width:var(\n--spectrum-alias-ui-icon-cross-size-75\n)}.spectrum-UIIcon-Cross100{height:var(--spectrum-alias-ui-icon-cross-size-100);width:var(\n--spectrum-alias-ui-icon-cross-size-100\n)}.spectrum-UIIcon-Cross200{height:var(--spectrum-alias-ui-icon-cross-size-200);width:var(\n--spectrum-alias-ui-icon-cross-size-200\n)}.spectrum-UIIcon-Cross300{height:var(--spectrum-alias-ui-icon-cross-size-300);width:var(\n--spectrum-alias-ui-icon-cross-size-300\n)}.spectrum-UIIcon-Cross400{height:var(--spectrum-alias-ui-icon-cross-size-400);width:var(\n--spectrum-alias-ui-icon-cross-size-400\n)}.spectrum-UIIcon-Cross500{height:var(--spectrum-alias-ui-icon-cross-size-500);width:var(\n--spectrum-alias-ui-icon-cross-size-500\n)}.spectrum-UIIcon-Cross600{height:var(--spectrum-alias-ui-icon-cross-size-600);width:var(\n--spectrum-alias-ui-icon-cross-size-600\n)}\n`;\nexport default styles;"],
|
5
|
-
"mappings": "
|
6
|
-
"names": []
|
5
|
+
"mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAiBf,eAAeC",
|
6
|
+
"names": ["css", "styles"]
|
7
7
|
}
|
@@ -2,6 +2,6 @@
|
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["spectrum-icon-dash.css.ts"],
|
4
4
|
"sourcesContent": ["/*\nCopyright 2022 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 { css } from '@spectrum-web-components/base';\nconst styles = css`\n@media (forced-colors:active){.spectrum-Icon,.spectrum-UIIcon{forced-color-adjust:auto}}.spectrum-UIIcon-Dash50{height:var(--spectrum-alias-ui-icon-dash-size-50);width:var(\n--spectrum-alias-ui-icon-dash-size-50\n)}.spectrum-UIIcon-Dash75{height:var(--spectrum-alias-ui-icon-dash-size-75);width:var(\n--spectrum-alias-ui-icon-dash-size-75\n)}.spectrum-UIIcon-Dash100{height:var(--spectrum-alias-ui-icon-dash-size-100);width:var(\n--spectrum-alias-ui-icon-dash-size-100\n)}.spectrum-UIIcon-Dash200{height:var(--spectrum-alias-ui-icon-dash-size-200);width:var(\n--spectrum-alias-ui-icon-dash-size-200\n)}.spectrum-UIIcon-Dash300{height:var(--spectrum-alias-ui-icon-dash-size-300);width:var(\n--spectrum-alias-ui-icon-dash-size-300\n)}.spectrum-UIIcon-Dash400{height:var(--spectrum-alias-ui-icon-dash-size-400);width:var(\n--spectrum-alias-ui-icon-dash-size-400\n)}.spectrum-UIIcon-Dash500{height:var(--spectrum-alias-ui-icon-dash-size-500);width:var(\n--spectrum-alias-ui-icon-dash-size-500\n)}.spectrum-UIIcon-Dash600{height:var(--spectrum-alias-ui-icon-dash-size-600);width:var(\n--spectrum-alias-ui-icon-dash-size-600\n)}\n`;\nexport default styles;"],
|
5
|
-
"mappings": "AAWA;
|
5
|
+
"mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAmBf,eAAe;",
|
6
6
|
"names": []
|
7
7
|
}
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import
|
2
|
-
const styles = css`
|
1
|
+
"use strict";import{css as s}from"@spectrum-web-components/base";const i=s`
|
3
2
|
@media (forced-colors:active){.spectrum-Icon,.spectrum-UIIcon{forced-color-adjust:auto}}.spectrum-UIIcon-Dash50{height:var(--spectrum-alias-ui-icon-dash-size-50);width:var(
|
4
3
|
--spectrum-alias-ui-icon-dash-size-50
|
5
4
|
)}.spectrum-UIIcon-Dash75{height:var(--spectrum-alias-ui-icon-dash-size-75);width:var(
|
@@ -17,6 +16,5 @@ const styles = css`
|
|
17
16
|
)}.spectrum-UIIcon-Dash600{height:var(--spectrum-alias-ui-icon-dash-size-600);width:var(
|
18
17
|
--spectrum-alias-ui-icon-dash-size-600
|
19
18
|
)}
|
20
|
-
`;
|
21
|
-
export default styles;
|
19
|
+
`;export default i;
|
22
20
|
//# sourceMappingURL=spectrum-icon-dash.css.js.map
|
@@ -2,6 +2,6 @@
|
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["spectrum-icon-dash.css.ts"],
|
4
4
|
"sourcesContent": ["/*\nCopyright 2022 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 { css } from '@spectrum-web-components/base';\nconst styles = css`\n@media (forced-colors:active){.spectrum-Icon,.spectrum-UIIcon{forced-color-adjust:auto}}.spectrum-UIIcon-Dash50{height:var(--spectrum-alias-ui-icon-dash-size-50);width:var(\n--spectrum-alias-ui-icon-dash-size-50\n)}.spectrum-UIIcon-Dash75{height:var(--spectrum-alias-ui-icon-dash-size-75);width:var(\n--spectrum-alias-ui-icon-dash-size-75\n)}.spectrum-UIIcon-Dash100{height:var(--spectrum-alias-ui-icon-dash-size-100);width:var(\n--spectrum-alias-ui-icon-dash-size-100\n)}.spectrum-UIIcon-Dash200{height:var(--spectrum-alias-ui-icon-dash-size-200);width:var(\n--spectrum-alias-ui-icon-dash-size-200\n)}.spectrum-UIIcon-Dash300{height:var(--spectrum-alias-ui-icon-dash-size-300);width:var(\n--spectrum-alias-ui-icon-dash-size-300\n)}.spectrum-UIIcon-Dash400{height:var(--spectrum-alias-ui-icon-dash-size-400);width:var(\n--spectrum-alias-ui-icon-dash-size-400\n)}.spectrum-UIIcon-Dash500{height:var(--spectrum-alias-ui-icon-dash-size-500);width:var(\n--spectrum-alias-ui-icon-dash-size-500\n)}.spectrum-UIIcon-Dash600{height:var(--spectrum-alias-ui-icon-dash-size-600);width:var(\n--spectrum-alias-ui-icon-dash-size-600\n)}\n`;\nexport default styles;"],
|
5
|
-
"mappings": "
|
6
|
-
"names": []
|
5
|
+
"mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAmBf,eAAeC",
|
6
|
+
"names": ["css", "styles"]
|
7
7
|
}
|
@@ -2,6 +2,6 @@
|
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["spectrum-icon-double-gripper.css.ts"],
|
4
4
|
"sourcesContent": ["/*\nCopyright 2022 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 { css } from '@spectrum-web-components/base';\nconst styles = css`\n@media (forced-colors:active){.spectrum-Icon,.spectrum-UIIcon{forced-color-adjust:auto}}.spectrum-UIIcon-DoubleGripper100{height:var(\n--spectrum-alias-ui-icon-doublegripper-size-100-width,var(--spectrum-global-dimension-size-200)\n);width:var(\n--spectrum-alias-ui-icon-doublegripper-size-100-height\n)}\n`;\nexport default styles;"],
|
5
|
-
"mappings": "AAWA;
|
5
|
+
"mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOf,eAAe;",
|
6
6
|
"names": []
|
7
7
|
}
|
@@ -1,10 +1,8 @@
|
|
1
|
-
import
|
2
|
-
const styles = css`
|
1
|
+
"use strict";import{css as e}from"@spectrum-web-components/base";const r=e`
|
3
2
|
@media (forced-colors:active){.spectrum-Icon,.spectrum-UIIcon{forced-color-adjust:auto}}.spectrum-UIIcon-DoubleGripper100{height:var(
|
4
3
|
--spectrum-alias-ui-icon-doublegripper-size-100-width,var(--spectrum-global-dimension-size-200)
|
5
4
|
);width:var(
|
6
5
|
--spectrum-alias-ui-icon-doublegripper-size-100-height
|
7
6
|
)}
|
8
|
-
`;
|
9
|
-
export default styles;
|
7
|
+
`;export default r;
|
10
8
|
//# sourceMappingURL=spectrum-icon-double-gripper.css.js.map
|
@@ -2,6 +2,6 @@
|
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["spectrum-icon-double-gripper.css.ts"],
|
4
4
|
"sourcesContent": ["/*\nCopyright 2022 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 { css } from '@spectrum-web-components/base';\nconst styles = css`\n@media (forced-colors:active){.spectrum-Icon,.spectrum-UIIcon{forced-color-adjust:auto}}.spectrum-UIIcon-DoubleGripper100{height:var(\n--spectrum-alias-ui-icon-doublegripper-size-100-width,var(--spectrum-global-dimension-size-200)\n);width:var(\n--spectrum-alias-ui-icon-doublegripper-size-100-height\n)}\n`;\nexport default styles;"],
|
5
|
-
"mappings": "
|
6
|
-
"names": []
|
5
|
+
"mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOf,eAAeC",
|
6
|
+
"names": ["css", "styles"]
|
7
7
|
}
|
@@ -2,6 +2,6 @@
|
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["spectrum-icon-single-gripper.css.ts"],
|
4
4
|
"sourcesContent": ["/*\nCopyright 2022 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 { css } from '@spectrum-web-components/base';\nconst styles = css`\n@media (forced-colors:active){.spectrum-Icon,.spectrum-UIIcon{forced-color-adjust:auto}}.spectrum-UIIcon-SingleGripper100{height:var(\n--spectrum-alias-ui-icon-singlegripper-size-100-width,var(--spectrum-global-dimension-size-300)\n);width:var(\n--spectrum-alias-ui-icon-singlegripper-size-100-height\n)}\n`;\nexport default styles;"],
|
5
|
-
"mappings": "AAWA;
|
5
|
+
"mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOf,eAAe;",
|
6
6
|
"names": []
|
7
7
|
}
|
@@ -1,10 +1,8 @@
|
|
1
|
-
import
|
2
|
-
const styles = css`
|
1
|
+
"use strict";import{css as e}from"@spectrum-web-components/base";const i=e`
|
3
2
|
@media (forced-colors:active){.spectrum-Icon,.spectrum-UIIcon{forced-color-adjust:auto}}.spectrum-UIIcon-SingleGripper100{height:var(
|
4
3
|
--spectrum-alias-ui-icon-singlegripper-size-100-width,var(--spectrum-global-dimension-size-300)
|
5
4
|
);width:var(
|
6
5
|
--spectrum-alias-ui-icon-singlegripper-size-100-height
|
7
6
|
)}
|
8
|
-
`;
|
9
|
-
export default styles;
|
7
|
+
`;export default i;
|
10
8
|
//# sourceMappingURL=spectrum-icon-single-gripper.css.js.map
|
@@ -2,6 +2,6 @@
|
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["spectrum-icon-single-gripper.css.ts"],
|
4
4
|
"sourcesContent": ["/*\nCopyright 2022 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 { css } from '@spectrum-web-components/base';\nconst styles = css`\n@media (forced-colors:active){.spectrum-Icon,.spectrum-UIIcon{forced-color-adjust:auto}}.spectrum-UIIcon-SingleGripper100{height:var(\n--spectrum-alias-ui-icon-singlegripper-size-100-width,var(--spectrum-global-dimension-size-300)\n);width:var(\n--spectrum-alias-ui-icon-singlegripper-size-100-height\n)}\n`;\nexport default styles;"],
|
5
|
-
"mappings": "
|
6
|
-
"names": []
|
5
|
+
"mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOf,eAAeC",
|
6
|
+
"names": ["css", "styles"]
|
7
7
|
}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
"use strict";
|
1
2
|
import { css } from "@spectrum-web-components/base";
|
2
3
|
const styles = css`
|
3
4
|
@media (forced-colors:active){.spectrum-Icon,.spectrum-UIIcon{forced-color-adjust:auto}}.spectrum-UIIcon-TripleGripper100{height:var(--spectrum-alias-ui-icon-triplegripper-size-100-width);width:var(
|
@@ -2,6 +2,6 @@
|
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["spectrum-icon-triple-gripper.css.ts"],
|
4
4
|
"sourcesContent": ["/*\nCopyright 2022 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 { css } from '@spectrum-web-components/base';\nconst styles = css`\n@media (forced-colors:active){.spectrum-Icon,.spectrum-UIIcon{forced-color-adjust:auto}}.spectrum-UIIcon-TripleGripper100{height:var(--spectrum-alias-ui-icon-triplegripper-size-100-width);width:var(\n--spectrum-alias-ui-icon-triplegripper-size-100-height,var(--spectrum-global-dimension-size-100)\n)}\n`;\nexport default styles;"],
|
5
|
-
"mappings": "AAWA;
|
5
|
+
"mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAKf,eAAe;",
|
6
6
|
"names": []
|
7
7
|
}
|
@@ -1,8 +1,6 @@
|
|
1
|
-
import
|
2
|
-
const styles = css`
|
1
|
+
"use strict";import{css as e}from"@spectrum-web-components/base";const r=e`
|
3
2
|
@media (forced-colors:active){.spectrum-Icon,.spectrum-UIIcon{forced-color-adjust:auto}}.spectrum-UIIcon-TripleGripper100{height:var(--spectrum-alias-ui-icon-triplegripper-size-100-width);width:var(
|
4
3
|
--spectrum-alias-ui-icon-triplegripper-size-100-height,var(--spectrum-global-dimension-size-100)
|
5
4
|
)}
|
6
|
-
`;
|
7
|
-
export default styles;
|
5
|
+
`;export default r;
|
8
6
|
//# sourceMappingURL=spectrum-icon-triple-gripper.css.js.map
|
@@ -2,6 +2,6 @@
|
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["spectrum-icon-triple-gripper.css.ts"],
|
4
4
|
"sourcesContent": ["/*\nCopyright 2022 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 { css } from '@spectrum-web-components/base';\nconst styles = css`\n@media (forced-colors:active){.spectrum-Icon,.spectrum-UIIcon{forced-color-adjust:auto}}.spectrum-UIIcon-TripleGripper100{height:var(--spectrum-alias-ui-icon-triplegripper-size-100-width);width:var(\n--spectrum-alias-ui-icon-triplegripper-size-100-height,var(--spectrum-global-dimension-size-100)\n)}\n`;\nexport default styles;"],
|
5
|
-
"mappings": "
|
6
|
-
"names": []
|
5
|
+
"mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA;AAAA;AAAA,EAKf,eAAeC",
|
6
|
+
"names": ["css", "styles"]
|
7
7
|
}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
"use strict";
|
1
2
|
import { css } from "@spectrum-web-components/base";
|
2
3
|
const styles = css`
|
3
4
|
:host{fill:currentColor;color:inherit;display:inline-block;pointer-events:none}:host(:not(:root)){overflow:hidden}@media (forced-colors:active){.spectrum-UIIcon,:host{forced-color-adjust:auto}}:host{--spectrum-icon-size-s:var(
|
@@ -2,6 +2,6 @@
|
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["spectrum-icon.css.ts"],
|
4
4
|
"sourcesContent": ["/*\nCopyright 2022 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 { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{fill:currentColor;color:inherit;display:inline-block;pointer-events:none}:host(:not(:root)){overflow:hidden}@media (forced-colors:active){.spectrum-UIIcon,:host{forced-color-adjust:auto}}:host{--spectrum-icon-size-s:var(\n--spectrum-alias-workflow-icon-size-s,var(--spectrum-global-dimension-size-200)\n);--spectrum-icon-size-m:var(\n--spectrum-alias-workflow-icon-size-m,var(--spectrum-global-dimension-size-225)\n);--spectrum-icon-size-l:var(--spectrum-alias-workflow-icon-size-l);--spectrum-icon-size-xl:var(\n--spectrum-alias-workflow-icon-size-xl,var(--spectrum-global-dimension-size-275)\n);--spectrum-icon-size-xxl:var(--spectrum-global-dimension-size-400)}:host([size=s]){height:var(\n--spectrum-icon-size-s\n);width:var(--spectrum-icon-size-s)}:host([size=m]){height:var(\n--spectrum-icon-size-m\n);width:var(--spectrum-icon-size-m)}:host([size=l]){height:var(\n--spectrum-icon-size-l\n);width:var(--spectrum-icon-size-l)}:host([size=xl]){height:var(\n--spectrum-icon-size-xl\n);width:var(--spectrum-icon-size-xl)}:host([size=xxl]){height:var(\n--spectrum-icon-size-xxl\n);width:var(--spectrum-icon-size-xxl)}\n`;\nexport default styles;"],
|
5
|
-
"mappings": "AAWA;
|
5
|
+
"mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAmBf,eAAe;",
|
6
6
|
"names": []
|
7
7
|
}
|
package/src/spectrum-icon.css.js
CHANGED
@@ -1,5 +1,4 @@
|
|
1
|
-
import
|
2
|
-
const styles = css`
|
1
|
+
"use strict";import{css as s}from"@spectrum-web-components/base";const i=s`
|
3
2
|
:host{fill:currentColor;color:inherit;display:inline-block;pointer-events:none}:host(:not(:root)){overflow:hidden}@media (forced-colors:active){.spectrum-UIIcon,:host{forced-color-adjust:auto}}:host{--spectrum-icon-size-s:var(
|
4
3
|
--spectrum-alias-workflow-icon-size-s,var(--spectrum-global-dimension-size-200)
|
5
4
|
);--spectrum-icon-size-m:var(
|
@@ -17,6 +16,5 @@ const styles = css`
|
|
17
16
|
);width:var(--spectrum-icon-size-xl)}:host([size=xxl]){height:var(
|
18
17
|
--spectrum-icon-size-xxl
|
19
18
|
);width:var(--spectrum-icon-size-xxl)}
|
20
|
-
`;
|
21
|
-
export default styles;
|
19
|
+
`;export default i;
|
22
20
|
//# sourceMappingURL=spectrum-icon.css.js.map
|
@@ -2,6 +2,6 @@
|
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["spectrum-icon.css.ts"],
|
4
4
|
"sourcesContent": ["/*\nCopyright 2022 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 { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{fill:currentColor;color:inherit;display:inline-block;pointer-events:none}:host(:not(:root)){overflow:hidden}@media (forced-colors:active){.spectrum-UIIcon,:host{forced-color-adjust:auto}}:host{--spectrum-icon-size-s:var(\n--spectrum-alias-workflow-icon-size-s,var(--spectrum-global-dimension-size-200)\n);--spectrum-icon-size-m:var(\n--spectrum-alias-workflow-icon-size-m,var(--spectrum-global-dimension-size-225)\n);--spectrum-icon-size-l:var(--spectrum-alias-workflow-icon-size-l);--spectrum-icon-size-xl:var(\n--spectrum-alias-workflow-icon-size-xl,var(--spectrum-global-dimension-size-275)\n);--spectrum-icon-size-xxl:var(--spectrum-global-dimension-size-400)}:host([size=s]){height:var(\n--spectrum-icon-size-s\n);width:var(--spectrum-icon-size-s)}:host([size=m]){height:var(\n--spectrum-icon-size-m\n);width:var(--spectrum-icon-size-m)}:host([size=l]){height:var(\n--spectrum-icon-size-l\n);width:var(--spectrum-icon-size-l)}:host([size=xl]){height:var(\n--spectrum-icon-size-xl\n);width:var(--spectrum-icon-size-xl)}:host([size=xxl]){height:var(\n--spectrum-icon-size-xxl\n);width:var(--spectrum-icon-size-xxl)}\n`;\nexport default styles;"],
|
5
|
-
"mappings": "
|
6
|
-
"names": []
|
5
|
+
"mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAmBf,eAAeC",
|
6
|
+
"names": ["css", "styles"]
|
7
7
|
}
|
package/stories/icon.stories.js
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
"use strict";
|
1
2
|
import { html } from "@spectrum-web-components/base";
|
2
3
|
import "@spectrum-web-components/icon/sp-icon.js";
|
3
4
|
import { back } from "./images";
|
@@ -11,30 +12,37 @@ export default {
|
|
11
12
|
export const Medium = () => {
|
12
13
|
return html`
|
13
14
|
<sp-icons-medium></sp-icons-medium>
|
14
|
-
${sizes.map(
|
15
|
+
${sizes.map(
|
16
|
+
(size) => html`
|
15
17
|
<sp-icon size=${size} name="ui:Chevron200"></sp-icon>
|
16
|
-
`
|
18
|
+
`
|
19
|
+
)}
|
17
20
|
`;
|
18
21
|
};
|
19
22
|
export const Large = () => {
|
20
23
|
return html`
|
21
24
|
<sp-icons-large></sp-icons-large>
|
22
|
-
${sizes.map(
|
25
|
+
${sizes.map(
|
26
|
+
(size) => html`
|
23
27
|
<sp-icon size=${size} name="ui:Chevron400"></sp-icon>
|
24
|
-
`
|
28
|
+
`
|
29
|
+
)}
|
25
30
|
`;
|
26
31
|
};
|
27
32
|
export const imageIcon = () => {
|
28
33
|
return html`
|
29
|
-
${sizes.map(
|
34
|
+
${sizes.map(
|
35
|
+
(size) => html`
|
30
36
|
<sp-icon label="Back" size=${size} src=${back}></sp-icon>
|
31
|
-
`
|
37
|
+
`
|
38
|
+
)}
|
32
39
|
`;
|
33
40
|
};
|
34
41
|
imageIcon.storyName = "Image Icon";
|
35
42
|
export const svgIcon = () => {
|
36
43
|
return html`
|
37
|
-
${sizes.map(
|
44
|
+
${sizes.map(
|
45
|
+
(size) => html`
|
38
46
|
<sp-icon size=${size}>
|
39
47
|
<svg
|
40
48
|
xmlns="http://www.w3.org/2000/svg"
|
@@ -49,7 +57,8 @@ export const svgIcon = () => {
|
|
49
57
|
></path>
|
50
58
|
</svg>
|
51
59
|
</sp-icon>
|
52
|
-
`
|
60
|
+
`
|
61
|
+
)}
|
53
62
|
`;
|
54
63
|
};
|
55
64
|
svgIcon.storyName = "SVG Icon";
|
@@ -2,6 +2,6 @@
|
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["icon.stories.ts"],
|
4
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;
|
5
|
+
"mappings": ";AAWA,SAAS,YAA4B;AAErC,OAAO;AACP,SAAS,YAAY;AACrB,OAAO;AACP,OAAO;AAEP,MAAM,QAAQ,CAAC,KAAK,KAAK,KAAK,MAAM,KAAK;AAEzC,eAAe;AAAA,EACX,WAAW;AAAA,EACX,OA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4=";
|
2
3
|
//# sourceMappingURL=images.js.map
|
package/stories/images.js.map
CHANGED
@@ -2,6 +2,6 @@
|
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["images.ts"],
|
4
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*/\n\nexport const back =\n 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9Ii0yOTU3Ljk5NSAtNTUzMC4wMzIgNiAxMCI+PGRlZnM+PHN0eWxlPi5he2ZpbGw6bm9uZTtzdHJva2U6IzE0NzNlNjtzdHJva2UtbGluZWNhcDpyb3VuZDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLXdpZHRoOjJweDt9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImEiIGQ9Ik0yNTEuMywzMzNsNC00LTQtNCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTI3MDEuNjk1IC01MTk2LjAzMikgcm90YXRlKDE4MCkiLz48L3N2Zz4=';\n"],
|
5
|
-
"mappings": "AAYO,aAAM,OACT;",
|
5
|
+
"mappings": ";AAYO,aAAM,OACT;",
|
6
6
|
"names": []
|
7
7
|
}
|
@@ -2,6 +2,6 @@
|
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["test-basic.ts"],
|
4
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*/\n\nimport '@spectrum-web-components/icon/sp-icon.js';\nimport '@spectrum-web-components/icons/sp-icons-medium.js';\nimport { html } from 'lit';\nimport { measureFixtureCreation } from '../../../../test/benchmark/helpers.js';\n\nasync function test(): Promise<void> {\n const iconset = document.createElement('sp-icons-medium');\n document.body.append(iconset);\n await iconset.updateComplete;\n\n measureFixtureCreation(html`\n <sp-icon name=\"ui:Arrow100\"></sp-icon>\n `);\n}\n\ntest();\n"],
|
5
|
-
"mappings": "AAYA;
|
5
|
+
"mappings": ";AAYA,OAAO;AACP,OAAO;AACP,SAAS,YAAY;AACrB,SAAS,8BAA8B;AAEvC,eAAe,OAAsB;AACjC,QAAM,UAAU,SAAS,cAAc,iBAAiB;AACxD,WAAS,KAAK,OAAO,OAAO;AAC5B,QAAM,QAAQ;AAEd,yBAAuB;AAAA;AAAA,KAEtB;AACL;AAEA,KAAK;",
|
6
6
|
"names": []
|
7
7
|
}
|
package/test/icon.test-vrt.js
CHANGED
@@ -2,6 +2,6 @@
|
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["icon.test-vrt.ts"],
|
4
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*/\n\nimport * as stories from '../stories/icon.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('IconStories', stories);\n"],
|
5
|
-
"mappings": "AAYA;
|
5
|
+
"mappings": ";AAYA,YAAY,aAAa;AACzB,SAAS,sBAAsB;AAE/B,eAAe,eAAe,OAAO;",
|
6
6
|
"names": []
|
7
7
|
}
|
package/test/icon.test.js
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
"use strict";
|
1
2
|
import "@spectrum-web-components/icon/sp-icon.js";
|
2
3
|
import "@spectrum-web-components/icons/sp-icons-medium.js";
|
3
4
|
import { elementUpdated, expect, fixture, html } from "@open-wc/testing";
|
@@ -9,9 +10,11 @@ describe("Icon", () => {
|
|
9
10
|
await elementUpdated(icons);
|
10
11
|
});
|
11
12
|
it("loads", async () => {
|
12
|
-
const el = await fixture(
|
13
|
+
const el = await fixture(
|
14
|
+
html`
|
13
15
|
<sp-icon name="ui:Chevron200"></sp-icon>
|
14
|
-
`
|
16
|
+
`
|
17
|
+
);
|
15
18
|
await elementUpdated(el);
|
16
19
|
expect(el).to.not.be.undefined;
|
17
20
|
const container = el.shadowRoot ? el.shadowRoot.querySelector("#container") : el.querySelector("#container");
|
@@ -20,27 +23,35 @@ describe("Icon", () => {
|
|
20
23
|
expect(icon).to.exist;
|
21
24
|
expect(icon.getAttribute("aria-hidden")).to.equal("true");
|
22
25
|
});
|
23
|
-
testForLitDevWarnings(
|
26
|
+
testForLitDevWarnings(
|
27
|
+
async () => await fixture(
|
28
|
+
html`
|
24
29
|
<sp-icon
|
25
30
|
label="Image Icon"
|
26
31
|
src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAMSWlDQ1BJQ0MgUHJvZmlsZQAASImVVwdUU8kanltSSWiBCEgJvYlSpEsJoUUQkCrYCEkgocSYEETsyrIKrl1EQF3RVREXXQsga0Vd66JgX8uLsqisrIsFGypvUkDXPe+98/5z5s6Xf/75/pK5c2cA0KvlSaX5qD4ABZJCWWJUGGtSegaL1AUwoAsogAUQHl8uZSckxAIoQ/3f5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pZj0iaHR0cDovL25zLmFkb2JlLmNvbS9leGlmLzEuMC8iPgogICAgICAgICA8ZXhpZjpQaXhlbFhEaW1lbnNpb24+NjwvZXhpZjpQaXhlbFhEaW1lbnNpb24+CiAgICAgICAgIDxleGlmOlBpeGVsWURpbWVuc2lvbj42PC9leGlmOlBpeGVsWURpbWVuc2lvbj4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CvQIiZ0AAAAcaURPVAAAAAIAAAAAAAAAAwAAACgAAAADAAAAAwAAAEhuvWMmAAAAFElEQVQYGWK8devyfwYsgJFkCQAAAAD//6KX71AAAAARSURBVGO8devyfwYsgJFkCQAGyBUrQ95HqQAAAABJRU5ErkJggg=="
|
27
32
|
></sp-icon>
|
28
|
-
`
|
33
|
+
`
|
34
|
+
)
|
35
|
+
);
|
29
36
|
it("loads w/ src", async () => {
|
30
|
-
const el = await fixture(
|
37
|
+
const el = await fixture(
|
38
|
+
html`
|
31
39
|
<sp-icon
|
32
40
|
label="Image Icon"
|
33
41
|
src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAMSWlDQ1BJQ0MgUHJvZmlsZQAASImVVwdUU8kanltSSWiBCEgJvYlSpEsJoUUQkCrYCEkgocSYEETsyrIKrl1EQF3RVREXXQsga0Vd66JgX8uLsqisrIsFGypvUkDXPe+98/5z5s6Xf/75/pK5c2cA0KvlSaX5qD4ABZJCWWJUGGtSegaL1AUwoAsogAUQHl8uZSckxAIoQ/3f5fUNgKj6q24qrn+O/1cxEAjlfACQBIizBHJ+AcQHAcBL+VJZIQBEP6i3nVUoVeEpEBvJYIAQS1U4R4NLVThLg6vUNsmJHIj3AECm8XiyHAB0W6CeVcTPgTy6tyB2lwjEEgD0yBAH80U8AcTREI8qKJihwtAOOGV9wZPzN86sYU4eL2cYa3JRCzlcLJfm82b/n+X431KQrxjy4QAbTSSLTlTlDOt2K29GjArTIO6V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vcmRmOlJERj4KPC94OnhtcG1ldGE+CvQIiZ0AAAAcaURPVAAAAAIAAAAAAAAAAwAAACgAAAADAAAAAwAAAEhuvWMmAAAAFElEQVQYGWK8devyfwYsgJFkCQAAAAD//6KX71AAAAARSURBVGO8devyfwYsgJFkCQAGyBUrQ95HqQAAAABJRU5ErkJggg=="
|
34
42
|
></sp-icon>
|
35
|
-
`
|
43
|
+
`
|
44
|
+
);
|
36
45
|
await elementUpdated(el);
|
37
46
|
await expect(el).to.be.accessible();
|
38
47
|
});
|
39
48
|
it("loads w/ label", async () => {
|
40
49
|
const label = "Chevron";
|
41
|
-
const el = await fixture(
|
50
|
+
const el = await fixture(
|
51
|
+
html`
|
42
52
|
<sp-icon name="ui:Chevron200" label=${label}></sp-icon>
|
43
|
-
`
|
53
|
+
`
|
54
|
+
);
|
44
55
|
await elementUpdated(el);
|
45
56
|
expect(el).to.not.be.undefined;
|
46
57
|
const container = el.shadowRoot ? el.shadowRoot.querySelector("#container") : el.querySelector("#container");
|
@@ -51,9 +62,11 @@ describe("Icon", () => {
|
|
51
62
|
expect(icon.getAttribute("aria-label")).to.equal(label);
|
52
63
|
});
|
53
64
|
it("does not error when name is missing", async () => {
|
54
|
-
const el = await fixture(
|
65
|
+
const el = await fixture(
|
66
|
+
html`
|
55
67
|
<sp-icon></sp-icon>
|
56
|
-
`
|
68
|
+
`
|
69
|
+
);
|
57
70
|
return elementUpdated(el);
|
58
71
|
});
|
59
72
|
it("does not error with unknown set", async () => {
|
@@ -77,9 +90,11 @@ describe("Icon", () => {
|
|
77
90
|
el.remove();
|
78
91
|
});
|
79
92
|
it("does not add multiple SVGs when removed and re-added to DOM", async () => {
|
80
|
-
const el = await fixture(
|
93
|
+
const el = await fixture(
|
94
|
+
html`
|
81
95
|
<sp-icon name="ui:Chevron200"></sp-icon>
|
82
|
-
`
|
96
|
+
`
|
97
|
+
);
|
83
98
|
await elementUpdated(el);
|
84
99
|
expect(el).to.not.be.undefined;
|
85
100
|
const parent = el.parentNode;
|