@spectrum-web-components/icons-workflow 1.0.0-rc.0 → 1.0.0-rc.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/bin/build-icons-mapping.js +90 -0
- package/bin/build.js +43 -73
- package/package.json +6 -5
- package/src/DefaultIcon.js +13 -35
- package/src/DefaultIcon.js.map +2 -2
- package/src/elements/IconAddContent.js +1 -1
- package/src/elements/IconAddContent.js.map +2 -2
- package/src/elements/IconAlert.js +1 -1
- package/src/elements/IconAlert.js.map +2 -2
- package/src/elements/IconAlertCircle.js +1 -1
- package/src/elements/IconAlertCircle.js.map +2 -2
- package/src/elements/IconAlertCircleFilled.js +1 -1
- package/src/elements/IconAlertCircleFilled.js.map +2 -2
- package/src/elements/IconAlertDiamond.js +1 -1
- package/src/elements/IconAlertDiamond.js.map +2 -2
- package/src/elements/IconAlertTriangle.js +1 -1
- package/src/elements/IconAlertTriangle.js.map +2 -2
- package/src/elements/IconAnchorSelect.js +1 -1
- package/src/elements/IconAnchorSelect.js.map +2 -2
- package/src/elements/IconAssetsAdded.js +1 -1
- package/src/elements/IconAssetsAdded.js.map +2 -2
- package/src/elements/IconAt.js +1 -1
- package/src/elements/IconAt.js.map +2 -2
- package/src/elements/IconAudio.js +1 -1
- package/src/elements/IconAudio.js.map +2 -2
- package/src/elements/IconBeaker.js +1 -1
- package/src/elements/IconBeaker.js.map +2 -2
- package/src/elements/IconBetaApp.js +1 -1
- package/src/elements/IconBetaApp.js.map +2 -2
- package/src/elements/IconBinoculars.js +1 -1
- package/src/elements/IconBinoculars.js.map +2 -2
- package/src/elements/IconBoolean.js +1 -1
- package/src/elements/IconBoolean.js.map +2 -2
- package/src/elements/IconBorder.js +1 -1
- package/src/elements/IconBorder.js.map +2 -2
- package/src/elements/IconBrowse.js +1 -1
- package/src/elements/IconBrowse.js.map +2 -2
- package/src/elements/IconCalendarDay.js +1 -1
- package/src/elements/IconCalendarDay.js.map +2 -2
- package/src/elements/IconCalendarWeek.js +1 -1
- package/src/elements/IconCalendarWeek.js.map +2 -2
- package/src/elements/IconCapitals.js +1 -1
- package/src/elements/IconCapitals.js.map +2 -2
- package/src/elements/IconCheckBox.js +1 -1
- package/src/elements/IconCheckBox.js.map +2 -2
- package/src/elements/IconCircle.js +1 -1
- package/src/elements/IconCircle.js.map +2 -2
- package/src/elements/IconCircleFilled.js +1 -1
- package/src/elements/IconCircleFilled.js.map +2 -2
- package/src/elements/IconClassicGridView.js +1 -1
- package/src/elements/IconClassicGridView.js.map +2 -2
- package/src/elements/IconClockPending.js +1 -1
- package/src/elements/IconClockPending.js.map +2 -2
- package/src/elements/IconCloneStamp.js +1 -1
- package/src/elements/IconCloneStamp.js.map +2 -2
- package/src/elements/IconCloud.js +1 -1
- package/src/elements/IconCloud.js.map +2 -2
- package/src/elements/IconCloudDisconnected.js +1 -1
- package/src/elements/IconCloudDisconnected.js.map +2 -2
- package/src/elements/IconCloudError.js +1 -1
- package/src/elements/IconCloudError.js.map +2 -2
- package/src/elements/IconCloudOutline.js +1 -1
- package/src/elements/IconCloudOutline.js.map +2 -2
- package/src/elements/IconCloudStateDisconnected.js +1 -1
- package/src/elements/IconCloudStateDisconnected.js.map +2 -2
- package/src/elements/IconCloudStateError.js +1 -1
- package/src/elements/IconCloudStateError.js.map +2 -2
- package/src/elements/IconCompass.js +1 -1
- package/src/elements/IconCompass.js.map +2 -2
- package/src/elements/IconCursorClick.js +1 -1
- package/src/elements/IconCursorClick.js.map +2 -2
- package/src/elements/IconDate.js +1 -1
- package/src/elements/IconDate.js.map +2 -2
- package/src/elements/IconDeselect.js +1 -1
- package/src/elements/IconDeselect.js.map +2 -2
- package/src/elements/IconDesktopAndMobile.js +1 -1
- package/src/elements/IconDesktopAndMobile.js.map +2 -2
- package/src/elements/IconDeviceDesktopMobile.js +1 -1
- package/src/elements/IconDeviceDesktopMobile.js.map +2 -2
- package/src/elements/IconDeviceMobile.js +1 -1
- package/src/elements/IconDeviceMobile.js.map +2 -2
- package/src/elements/IconDevices.js +1 -1
- package/src/elements/IconDevices.js.map +2 -2
- package/src/elements/IconDirectSelect.js +1 -1
- package/src/elements/IconDirectSelect.js.map +2 -2
- package/src/elements/IconDiscover.js +1 -1
- package/src/elements/IconDiscover.js.map +2 -2
- package/src/elements/IconDistributeHorizontally.js +1 -1
- package/src/elements/IconDistributeHorizontally.js.map +2 -2
- package/src/elements/IconDistributeSpaceHoriz.js +1 -1
- package/src/elements/IconDistributeSpaceHoriz.js.map +2 -2
- package/src/elements/IconDistributeSpaceHorizontally.js +1 -1
- package/src/elements/IconDistributeSpaceHorizontally.js.map +2 -2
- package/src/elements/IconDistributeSpaceVert.js +1 -1
- package/src/elements/IconDistributeSpaceVert.js.map +2 -2
- package/src/elements/IconDistributeSpaceVertically.js +1 -1
- package/src/elements/IconDistributeSpaceVertically.js.map +2 -2
- package/src/elements/IconDistributeVertically.js +1 -1
- package/src/elements/IconDistributeVertically.js.map +2 -2
- package/src/elements/IconDocument.js +1 -1
- package/src/elements/IconDocument.js.map +2 -2
- package/src/elements/IconDocumentOutline.js +1 -1
- package/src/elements/IconDocumentOutline.js.map +2 -2
- package/src/elements/IconDownload.js +1 -1
- package/src/elements/IconDownload.js.map +2 -2
- package/src/elements/IconEditNo.js +1 -1
- package/src/elements/IconEditNo.js.map +2 -2
- package/src/elements/IconEffectBorder.js +1 -1
- package/src/elements/IconEffectBorder.js.map +2 -2
- package/src/elements/IconEmail.js +1 -1
- package/src/elements/IconEmail.js.map +2 -2
- package/src/elements/IconEmailOutline.js +1 -1
- package/src/elements/IconEmailOutline.js.map +2 -2
- package/src/elements/IconEngagement.js +1 -1
- package/src/elements/IconEngagement.js.map +2 -2
- package/src/elements/IconEvents.js +1 -1
- package/src/elements/IconEvents.js.map +2 -2
- package/src/elements/IconExport.js +1 -1
- package/src/elements/IconExport.js.map +2 -2
- package/src/elements/IconExportTo.js +1 -1
- package/src/elements/IconExportTo.js.map +2 -2
- package/src/elements/IconEyedropper.js +1 -1
- package/src/elements/IconEyedropper.js.map +2 -2
- package/src/elements/IconFile.js +1 -1
- package/src/elements/IconFile.js.map +2 -2
- package/src/elements/IconFileText.js +1 -1
- package/src/elements/IconFileText.js.map +2 -2
- package/src/elements/IconFileTxt.js +1 -1
- package/src/elements/IconFileTxt.js.map +2 -2
- package/src/elements/IconFilters.js +1 -1
- package/src/elements/IconFilters.js.map +2 -2
- package/src/elements/IconFolder.js +1 -1
- package/src/elements/IconFolder.js.map +2 -2
- package/src/elements/IconFolderOutline.js +1 -1
- package/src/elements/IconFolderOutline.js.map +2 -2
- package/src/elements/IconGradientHorizontal.js +1 -1
- package/src/elements/IconGradientHorizontal.js.map +2 -2
- package/src/elements/IconGradientRadial.js +1 -1
- package/src/elements/IconGradientRadial.js.map +2 -2
- package/src/elements/IconGroupNo.js +1 -1
- package/src/elements/IconGroupNo.js.map +2 -2
- package/src/elements/IconHelp.js +1 -1
- package/src/elements/IconHelp.js.map +2 -2
- package/src/elements/IconHelpCircle.js +1 -1
- package/src/elements/IconHelpCircle.js.map +2 -2
- package/src/elements/IconHomepage.js +1 -1
- package/src/elements/IconHomepage.js.map +2 -2
- package/src/elements/IconImageProfile.js +1 -1
- package/src/elements/IconImageProfile.js.map +2 -2
- package/src/elements/IconInfo.js +1 -1
- package/src/elements/IconInfo.js.map +2 -2
- package/src/elements/IconInfoCircle.js +1 -1
- package/src/elements/IconInfoCircle.js.map +2 -2
- package/src/elements/IconInfoOutline.js +1 -1
- package/src/elements/IconInfoOutline.js.map +2 -2
- package/src/elements/IconInteraction.js +1 -1
- package/src/elements/IconInteraction.js.map +2 -2
- package/src/elements/IconInvert.js +1 -1
- package/src/elements/IconInvert.js.map +2 -2
- package/src/elements/IconInvertAdj.js +1 -1
- package/src/elements/IconInvertAdj.js.map +2 -2
- package/src/elements/IconLabel.js +1 -1
- package/src/elements/IconLabel.js.map +2 -2
- package/src/elements/IconLandscape.js +1 -1
- package/src/elements/IconLandscape.js.map +2 -2
- package/src/elements/IconLassoSelect.js +1 -1
- package/src/elements/IconLassoSelect.js.map +2 -2
- package/src/elements/IconLight.js +1 -1
- package/src/elements/IconLight.js.map +2 -2
- package/src/elements/IconLightbulb.js +1 -1
- package/src/elements/IconLightbulb.js.map +2 -2
- package/src/elements/IconLighten.js +1 -1
- package/src/elements/IconLighten.js.map +2 -2
- package/src/elements/IconLinearGradient.js +1 -1
- package/src/elements/IconLinearGradient.js.map +2 -2
- package/src/elements/IconLinkOff.js +1 -1
- package/src/elements/IconLinkOff.js.map +2 -2
- package/src/elements/IconLinkOut.js +1 -1
- package/src/elements/IconLinkOut.js.map +2 -2
- package/src/elements/IconListBulleted.js +1 -1
- package/src/elements/IconListBulleted.js.map +2 -2
- package/src/elements/IconListMultiSelect.js +1 -1
- package/src/elements/IconListMultiSelect.js.map +2 -2
- package/src/elements/IconLock.js +1 -1
- package/src/elements/IconLock.js.map +2 -2
- package/src/elements/IconLockClosed.js +1 -1
- package/src/elements/IconLockClosed.js.map +2 -2
- package/src/elements/IconLooks.js +1 -1
- package/src/elements/IconLooks.js.map +2 -2
- package/src/elements/IconMagnify.js +1 -1
- package/src/elements/IconMagnify.js.map +2 -2
- package/src/elements/IconMarket.js +1 -1
- package/src/elements/IconMarket.js.map +2 -2
- package/src/elements/IconMeasure.js +1 -1
- package/src/elements/IconMeasure.js.map +2 -2
- package/src/elements/IconMention.js +1 -1
- package/src/elements/IconMention.js.map +2 -2
- package/src/elements/IconMenuHamburger.js +1 -1
- package/src/elements/IconMenuHamburger.js.map +2 -2
- package/src/elements/IconMicrophone.js +1 -1
- package/src/elements/IconMicrophone.js.map +2 -2
- package/src/elements/IconMoveTo.js +1 -1
- package/src/elements/IconMoveTo.js.map +2 -2
- package/src/elements/IconMusicNote.js +1 -1
- package/src/elements/IconMusicNote.js.map +2 -2
- package/src/elements/IconNew.js +1 -1
- package/src/elements/IconNew.js.map +2 -2
- package/src/elements/IconNewItem.js +1 -1
- package/src/elements/IconNewItem.js.map +2 -2
- package/src/elements/IconNoEdit.js +1 -1
- package/src/elements/IconNoEdit.js.map +2 -2
- package/src/elements/IconOrientationLandscape.js +1 -1
- package/src/elements/IconOrientationLandscape.js.map +2 -2
- package/src/elements/IconOrientationPortrait.js +1 -1
- package/src/elements/IconOrientationPortrait.js.map +2 -2
- package/src/elements/IconPending.js +1 -1
- package/src/elements/IconPending.js.map +2 -2
- package/src/elements/IconPortrait.js +1 -1
- package/src/elements/IconPortrait.js.map +2 -2
- package/src/elements/IconProjectAdd.js +1 -1
- package/src/elements/IconProjectAdd.js.map +2 -2
- package/src/elements/IconProjectCreate.js +1 -1
- package/src/elements/IconProjectCreate.js.map +2 -2
- package/src/elements/IconPublishNo.js +1 -1
- package/src/elements/IconPublishNo.js.map +2 -2
- package/src/elements/IconPublishRemove.js +1 -1
- package/src/elements/IconPublishRemove.js.map +2 -2
- package/src/elements/IconRadialGradient.js +1 -1
- package/src/elements/IconRadialGradient.js.map +2 -2
- package/src/elements/IconRealTimeCustomerProfile.js +1 -1
- package/src/elements/IconRealTimeCustomerProfile.js.map +2 -2
- package/src/elements/IconRectSelect.js +1 -1
- package/src/elements/IconRectSelect.js.map +2 -2
- package/src/elements/IconRectangle.js +1 -1
- package/src/elements/IconRectangle.js.map +2 -2
- package/src/elements/IconRectangleHoriz.js +1 -1
- package/src/elements/IconRectangleHoriz.js.map +2 -2
- package/src/elements/IconRegionSelect.js +1 -1
- package/src/elements/IconRegionSelect.js.map +2 -2
- package/src/elements/IconRotateOrientation.js +1 -1
- package/src/elements/IconRotateOrientation.js.map +2 -2
- package/src/elements/IconRotateRight.js +1 -1
- package/src/elements/IconRotateRight.js.map +2 -2
- package/src/elements/IconRuler.js +1 -1
- package/src/elements/IconRuler.js.map +2 -2
- package/src/elements/IconSampler.js +1 -1
- package/src/elements/IconSampler.js.map +2 -2
- package/src/elements/IconSaveTo.js +1 -1
- package/src/elements/IconSaveTo.js.map +2 -2
- package/src/elements/IconSearch.js +1 -1
- package/src/elements/IconSearch.js.map +2 -2
- package/src/elements/IconSelectBox.js +1 -1
- package/src/elements/IconSelectBox.js.map +2 -2
- package/src/elements/IconSelectBoxAll.js +1 -1
- package/src/elements/IconSelectBoxAll.js.map +2 -2
- package/src/elements/IconSelectMulti.js +1 -1
- package/src/elements/IconSelectMulti.js.map +2 -2
- package/src/elements/IconSelectNo.js +1 -1
- package/src/elements/IconSelectNo.js.map +2 -2
- package/src/elements/IconSelectRectangle.js +1 -1
- package/src/elements/IconSelectRectangle.js.map +2 -2
- package/src/elements/IconShop.js +1 -1
- package/src/elements/IconShop.js.map +2 -2
- package/src/elements/IconShowMenu.js +1 -1
- package/src/elements/IconShowMenu.js.map +2 -2
- package/src/elements/IconSmallCaps.js +1 -1
- package/src/elements/IconSmallCaps.js.map +2 -2
- package/src/elements/IconSortDown.js +1 -1
- package/src/elements/IconSortDown.js.map +2 -2
- package/src/elements/IconSortOrderDown.js +1 -1
- package/src/elements/IconSortOrderDown.js.map +2 -2
- package/src/elements/IconSortOrderUp.js +1 -1
- package/src/elements/IconSortOrderUp.js.map +2 -2
- package/src/elements/IconSortUp.js +1 -1
- package/src/elements/IconSortUp.js.map +2 -2
- package/src/elements/IconStampClone.js +1 -1
- package/src/elements/IconStampClone.js.map +2 -2
- package/src/elements/IconStar.js +1 -1
- package/src/elements/IconStar.js.map +2 -2
- package/src/elements/IconStarFilled.js +1 -1
- package/src/elements/IconStarFilled.js.map +2 -2
- package/src/elements/IconStarOutline.js +1 -1
- package/src/elements/IconStarOutline.js.map +2 -2
- package/src/elements/IconTag.js +1 -1
- package/src/elements/IconTag.js.map +2 -2
- package/src/elements/IconTaskList.js +1 -1
- package/src/elements/IconTaskList.js.map +2 -2
- package/src/elements/IconTextBulleted.js +1 -1
- package/src/elements/IconTextBulleted.js.map +2 -2
- package/src/elements/IconTextCapsAll.js +1 -1
- package/src/elements/IconTextCapsAll.js.map +2 -2
- package/src/elements/IconTextCapsSmall.js +1 -1
- package/src/elements/IconTextCapsSmall.js.map +2 -2
- package/src/elements/IconTextUnderline.js +1 -1
- package/src/elements/IconTextUnderline.js.map +2 -2
- package/src/elements/IconTips.js +1 -1
- package/src/elements/IconTips.js.map +2 -2
- package/src/elements/IconToggle.js +1 -1
- package/src/elements/IconToggle.js.map +2 -2
- package/src/elements/IconTransparency.js +1 -1
- package/src/elements/IconTransparency.js.map +2 -2
- package/src/elements/IconUnderline.js +1 -1
- package/src/elements/IconUnderline.js.map +2 -2
- package/src/elements/IconUngroup.js +1 -1
- package/src/elements/IconUngroup.js.map +2 -2
- package/src/elements/IconUnlink.js +1 -1
- package/src/elements/IconUnlink.js.map +2 -2
- package/src/elements/IconUserAvatar.js +1 -1
- package/src/elements/IconUserAvatar.js.map +2 -2
- package/src/elements/IconViewGrid.js +1 -1
- package/src/elements/IconViewGrid.js.map +2 -2
- package/src/elements/IconViewTransparency.js +1 -1
- package/src/elements/IconViewTransparency.js.map +2 -2
- package/src/elements/IconViewWeek.js +1 -1
- package/src/elements/IconViewWeek.js.map +2 -2
- package/src/elements/IconVoiceOver.js +1 -1
- package/src/elements/IconVoiceOver.js.map +2 -2
- package/src/elements/IconVolumeMute.js +1 -1
- package/src/elements/IconVolumeMute.js.map +2 -2
- package/src/elements/IconVolumeOff.js +1 -1
- package/src/elements/IconVolumeOff.js.map +2 -2
- package/src/elements/IconWebPage.js +1 -1
- package/src/elements/IconWebPage.js.map +2 -2
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/explicit-function-return-type */
|
|
2
|
+
/*
|
|
3
|
+
Copyright 2020 Adobe. All rights reserved.
|
|
4
|
+
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License. You may obtain a copy
|
|
6
|
+
of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
|
|
8
|
+
Unless required by applicable law or agreed to in writing, software distributed under
|
|
9
|
+
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
10
|
+
OF ANY KIND, either express or implied. See the License for the specific language
|
|
11
|
+
governing permissions and limitations under the License.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
import fs from 'fs';
|
|
15
|
+
import path from 'path';
|
|
16
|
+
import { fileURLToPath } from 'url';
|
|
17
|
+
|
|
18
|
+
import { getComponentName } from './build.js';
|
|
19
|
+
|
|
20
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
21
|
+
|
|
22
|
+
/*
|
|
23
|
+
* You can run this script by running the `build-icons-mapping ` on `packages/icons-workflow/package.json`,
|
|
24
|
+
* which generates the icons mapping from an internal CSV file.
|
|
25
|
+
* This is a manual step and should only be run when the icons team provides updates.
|
|
26
|
+
* Place the CSV file under the `packages/icons-workflow/bin` folder and run the script to generate the new JSON mapping file.
|
|
27
|
+
* This JSON mapping should be committed to the repository.
|
|
28
|
+
*/
|
|
29
|
+
const saveIconsMapping = async () => {
|
|
30
|
+
// check if there is file with .csv extension in the bin folder
|
|
31
|
+
const files = fs.promises.readdir(__dirname);
|
|
32
|
+
let data = '';
|
|
33
|
+
try {
|
|
34
|
+
const fileNames = await files;
|
|
35
|
+
const csvFile = fileNames.find((file) => file.endsWith('.csv'));
|
|
36
|
+
if (csvFile) {
|
|
37
|
+
data = await fs.promises.readFile(
|
|
38
|
+
path.join(__dirname, csvFile),
|
|
39
|
+
'utf8'
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
} catch (error) {
|
|
43
|
+
throw new Error(`Error reading the bin directory: ${error.message}`);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
if (!data) {
|
|
47
|
+
throw new Error(
|
|
48
|
+
'No csv file found in the src folder. Please make sure you have the csv file in the "packages/icons-workflow/bin" folder'
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
const rows = data.split('\n');
|
|
53
|
+
const mapping = {};
|
|
54
|
+
rows.forEach((row) => {
|
|
55
|
+
const columns = row.split(',');
|
|
56
|
+
// if the third column says "name change"
|
|
57
|
+
if (columns.length >= 3 && columns[2] === 'name change') {
|
|
58
|
+
const oldName = getComponentName(columns[0]);
|
|
59
|
+
const newName = getComponentName(columns[1]);
|
|
60
|
+
|
|
61
|
+
// skip if the old or new name is a number
|
|
62
|
+
if (
|
|
63
|
+
!Number.isNaN(Number(oldName)) ||
|
|
64
|
+
!Number.isNaN(Number(newName))
|
|
65
|
+
) {
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
mapping[oldName] = newName;
|
|
70
|
+
mapping[newName] = oldName;
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
if (Object.keys(mapping).length === 0) {
|
|
75
|
+
console.warn('No valid name changes found in the CSV file.');
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
const outputPath = path.join(__dirname, './icons-mapping.json');
|
|
79
|
+
try {
|
|
80
|
+
await fs.promises.writeFile(
|
|
81
|
+
outputPath,
|
|
82
|
+
JSON.stringify(mapping),
|
|
83
|
+
'utf8'
|
|
84
|
+
);
|
|
85
|
+
} catch (error) {
|
|
86
|
+
throw new Error(`Error saving the icons mapping: ${error.message}`);
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
await saveIconsMapping();
|
package/bin/build.js
CHANGED
|
@@ -19,6 +19,8 @@ import prettier from 'prettier';
|
|
|
19
19
|
import Case from 'case';
|
|
20
20
|
import { fileURLToPath } from 'url';
|
|
21
21
|
|
|
22
|
+
import systemsIconMapping from './icons-mapping.json' assert { type: 'json' };
|
|
23
|
+
|
|
22
24
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
23
25
|
|
|
24
26
|
const rootDir = path.join(__dirname, '../../../');
|
|
@@ -41,21 +43,22 @@ const S2IConsPackageDir =
|
|
|
41
43
|
'@adobe/spectrum-css-workflow-icons-s2/dist/assets/svg';
|
|
42
44
|
const keepColors = '';
|
|
43
45
|
|
|
44
|
-
|
|
45
|
-
fs.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
46
|
+
const ensureDirectoryExists = (dirPath) => {
|
|
47
|
+
if (!fs.existsSync(dirPath)) {
|
|
48
|
+
fs.mkdirSync(dirPath);
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
const directories = [
|
|
53
|
+
`${rootDir}packages/icons-workflow/src`,
|
|
54
|
+
`${rootDir}packages/icons-workflow/src/icons`,
|
|
55
|
+
`${rootDir}packages/icons-workflow/src/icons-s2`,
|
|
56
|
+
`${rootDir}packages/icons-workflow/src/elements`,
|
|
57
|
+
`${rootDir}packages/icons-workflow/icons`,
|
|
58
|
+
];
|
|
59
|
+
|
|
60
|
+
directories.forEach(ensureDirectoryExists);
|
|
61
|
+
|
|
59
62
|
fs.writeFileSync(
|
|
60
63
|
path.join(rootDir, 'packages', 'icons-workflow', 'src', 'icons.ts'),
|
|
61
64
|
disclaimer,
|
|
@@ -82,6 +85,23 @@ let manifestListings = `\r\nexport const iconManifest = [\r\n`;
|
|
|
82
85
|
|
|
83
86
|
const defaultIconImport = `import { DefaultIcon as AlternateIcon } from '../DefaultIcon.js';\r\n`;
|
|
84
87
|
|
|
88
|
+
// A function that process the raw svg name and returns the component name
|
|
89
|
+
export const getComponentName = (i) => {
|
|
90
|
+
let id = path
|
|
91
|
+
.basename(i, '.svg')
|
|
92
|
+
.replace(/^(S2_Icon_|S_)/, '')
|
|
93
|
+
.replace(/(_20_N|_22x20_N|_18_N@2x)$/, '');
|
|
94
|
+
if (i.startsWith('Ad')) {
|
|
95
|
+
id = i.replace(/^Ad/, '') + 'Advert';
|
|
96
|
+
}
|
|
97
|
+
const replacements = {
|
|
98
|
+
UnLink: 'Unlink',
|
|
99
|
+
TextStrikeThrough: 'TextStrikethrough',
|
|
100
|
+
github: 'GitHub',
|
|
101
|
+
};
|
|
102
|
+
return Case.pascal(replacements[id] || id);
|
|
103
|
+
};
|
|
104
|
+
|
|
85
105
|
async function buildIcons(icons, tag, iconsNameList) {
|
|
86
106
|
icons.forEach((i) => {
|
|
87
107
|
const svg = fs.readFileSync(i, 'utf-8');
|
|
@@ -216,8 +236,12 @@ async function buildIcons(icons, tag, iconsNameList) {
|
|
|
216
236
|
// check if the icon is present in the other version
|
|
217
237
|
let otherVersionIconImport = defaultIconImport;
|
|
218
238
|
|
|
219
|
-
|
|
220
|
-
|
|
239
|
+
const alternateTag = tag === 'icons' ? 'icons-s2' : 'icons';
|
|
240
|
+
// if there is a mapping icon found from the above iconset update otherVersionIconImport
|
|
241
|
+
if (systemsIconMapping[ComponentName]) {
|
|
242
|
+
otherVersionIconImport = `import { ${systemsIconMapping[ComponentName]}Icon as AlternateIcon } from '../${alternateTag}/${systemsIconMapping[ComponentName]}.js';\r\n`;
|
|
243
|
+
} else if (iconsNameList.includes(ComponentName)) {
|
|
244
|
+
// if there is a no mapping icon found reset to DefaultIcon
|
|
221
245
|
otherVersionIconImport = `import { ${ComponentName}Icon as AlternateIcon } from '../${alternateTag}/${id}.js';\r\n`;
|
|
222
246
|
}
|
|
223
247
|
|
|
@@ -344,64 +368,10 @@ const iconsV2 = (
|
|
|
344
368
|
).sort();
|
|
345
369
|
|
|
346
370
|
const iconsV1NameList = iconsV1.map((i) => {
|
|
347
|
-
|
|
348
|
-
.basename(i, '.svg')
|
|
349
|
-
.replace('S2_Icon_', '')
|
|
350
|
-
.replace('_20_N', '')
|
|
351
|
-
.replace('_22x20_N', '');
|
|
352
|
-
|
|
353
|
-
if (id.search(/^Ad[A-Z]/) !== -1) {
|
|
354
|
-
id = id.replace(/^Ad/, '');
|
|
355
|
-
id += 'Advert';
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
if (id === 'UnLink') {
|
|
359
|
-
id = 'Unlink';
|
|
360
|
-
}
|
|
361
|
-
if (id === 'TextStrikeThrough') {
|
|
362
|
-
id = 'TextStrikethrough';
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
let ComponentName = id === 'github' ? 'GitHub' : Case.pascal(id);
|
|
366
|
-
|
|
367
|
-
if (ComponentName === 'TextStrikeThrough') {
|
|
368
|
-
ComponentName = 'TextStrikethrough';
|
|
369
|
-
}
|
|
370
|
-
if (ComponentName === 'UnLink') {
|
|
371
|
-
ComponentName = 'Unlink';
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
return ComponentName;
|
|
371
|
+
return getComponentName(i);
|
|
375
372
|
});
|
|
376
373
|
const iconsV2NameList = iconsV2.map((i) => {
|
|
377
|
-
|
|
378
|
-
.basename(i, '.svg')
|
|
379
|
-
.replace('S2_Icon_', '')
|
|
380
|
-
.replace('_20_N', '')
|
|
381
|
-
.replace('_22x20_N', '');
|
|
382
|
-
|
|
383
|
-
if (id.search(/^Ad[A-Z]/) !== -1) {
|
|
384
|
-
id = id.replace(/^Ad/, '');
|
|
385
|
-
id += 'Advert';
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
if (id === 'UnLink') {
|
|
389
|
-
id = 'Unlink';
|
|
390
|
-
}
|
|
391
|
-
if (id === 'TextStrikeThrough') {
|
|
392
|
-
id = 'TextStrikethrough';
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
let ComponentName = id === 'github' ? 'GitHub' : Case.pascal(id);
|
|
396
|
-
|
|
397
|
-
if (ComponentName === 'TextStrikeThrough') {
|
|
398
|
-
ComponentName = 'TextStrikethrough';
|
|
399
|
-
}
|
|
400
|
-
if (ComponentName === 'UnLink') {
|
|
401
|
-
ComponentName = 'Unlink';
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
return ComponentName;
|
|
374
|
+
return getComponentName(i);
|
|
405
375
|
});
|
|
406
376
|
|
|
407
377
|
await buildIcons(iconsV1, 'icons', iconsV2NameList);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spectrum-web-components/icons-workflow",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -26,7 +26,8 @@
|
|
|
26
26
|
"./package.json": "./package.json"
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
|
-
"build": "node ./bin/build.js"
|
|
29
|
+
"build": "node ./bin/build.js",
|
|
30
|
+
"build-icons-mapping": "node ./bin/build-icons-mapping.js"
|
|
30
31
|
},
|
|
31
32
|
"files": [
|
|
32
33
|
"**/*.d.ts",
|
|
@@ -44,8 +45,8 @@
|
|
|
44
45
|
"lit-html"
|
|
45
46
|
],
|
|
46
47
|
"dependencies": {
|
|
47
|
-
"@spectrum-web-components/base": "^1.0.0-rc.
|
|
48
|
-
"@spectrum-web-components/icon": "^1.0.0-rc.
|
|
48
|
+
"@spectrum-web-components/base": "^1.0.0-rc.1",
|
|
49
|
+
"@spectrum-web-components/icon": "^1.0.0-rc.1"
|
|
49
50
|
},
|
|
50
51
|
"devDependencies": {
|
|
51
52
|
"@adobe/spectrum-css-workflow-icons": "1.5.4",
|
|
@@ -64,5 +65,5 @@
|
|
|
64
65
|
"./src/index.js",
|
|
65
66
|
"./icons/*"
|
|
66
67
|
],
|
|
67
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "9f2638a0500c33adc8e06079a87a55b7d5695966"
|
|
68
69
|
}
|
package/src/DefaultIcon.js
CHANGED
|
@@ -1,41 +1,19 @@
|
|
|
1
|
-
"use strict";import{tag as a}from"./custom-tag.js";export{setCustomTemplateLiteralTag}from"./custom-tag.js";export const DefaultIcon=({width:
|
|
1
|
+
"use strict";import{tag as a}from"./custom-tag.js";export{setCustomTemplateLiteralTag}from"./custom-tag.js";export const DefaultIcon=({width:e=24,height:l=24,hidden:t=!1,title:r="Default"}={})=>a`
|
|
2
2
|
<svg
|
|
3
|
-
fill="#000000"
|
|
4
|
-
height=${l}
|
|
5
|
-
width=${t}
|
|
6
|
-
version="1.1"
|
|
7
|
-
id="Layer_1"
|
|
8
3
|
xmlns="http://www.w3.org/2000/svg"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
aria-
|
|
4
|
+
viewBox="0 0 20 20"
|
|
5
|
+
role="img"
|
|
6
|
+
fill="currentColor"
|
|
7
|
+
width=${e}
|
|
8
|
+
height=${l}
|
|
9
|
+
aria-hidden=${t?"true":"false"}
|
|
10
|
+
aria-label=${t?void 0:r}
|
|
15
11
|
>
|
|
16
|
-
<
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
x="12"
|
|
22
|
-
y="12"
|
|
23
|
-
width="40"
|
|
24
|
-
height="40"
|
|
25
|
-
>
|
|
26
|
-
<path
|
|
27
|
-
d="M32 49.5C22.3506 49.5 14.5 41.6504 14.5 32C14.5 22.3496 22.3506 14.5 32 14.5C41.6494 14.5 49.5 22.3496 49.5 32C49.5 41.6504 41.6494 49.5 32 49.5ZM32 17.5C24.0048 17.5 17.5 24.004 17.5 32C17.5 39.996 24.0048 46.5 32 46.5C39.9952 46.5 46.5 39.996 46.5 32C46.5 24.004 39.9952 17.5 32 17.5Z"
|
|
28
|
-
fill="#292929"
|
|
29
|
-
/>
|
|
30
|
-
</mask>
|
|
31
|
-
<g mask="url(#mask0_76606_3852)">
|
|
32
|
-
<rect x="12" y="12" width="40" height="40" fill="white" />
|
|
33
|
-
</g>
|
|
34
|
-
<defs>
|
|
35
|
-
<clipPath id="clip0_76606_3852">
|
|
36
|
-
<rect width="64" height="64" rx="16" fill="white" />
|
|
37
|
-
</clipPath>
|
|
38
|
-
</defs>
|
|
12
|
+
<path
|
|
13
|
+
d="m10,18.75c-4.82471,0-8.75-3.9248-8.75-8.75S5.17529,1.25,10,1.25s8.75,3.9248,8.75,8.75-3.92529,8.75-8.75,8.75Zm0-16c-3.99756,0-7.25,3.25195-7.25,7.25s3.25244,7.25,7.25,7.25,7.25-3.25195,7.25-7.25-3.25244-7.25-7.25-7.25Z"
|
|
14
|
+
fill="currentColor"
|
|
15
|
+
stroke-width="0"
|
|
16
|
+
></path>
|
|
39
17
|
</svg>
|
|
40
18
|
`;
|
|
41
19
|
//# sourceMappingURL=DefaultIcon.js.map
|
package/src/DefaultIcon.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["DefaultIcon.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*/\n\nimport { tag as html, TemplateResult } from './custom-tag.js';\n\nexport { setCustomTemplateLiteralTag } from './custom-tag.js';\nexport const DefaultIcon = ({\n width = 24,\n height = 24,\n hidden = false,\n title = 'Default',\n} = {}): string | TemplateResult => {\n return html`\n <svg\n
|
|
5
|
-
"mappings": "aAYA,OAAS,OAAOA,MAA4B,kBAE5C,OAAS,gCAAmC,kBACrC,aAAM,YAAc,CAAC,CACxB,MAAAC,EAAQ,GACR,OAAAC,EAAS,GACT,OAAAC,EAAS,GACT,MAAAC,EAAQ,SACZ,EAAI,CAAC,IACMJ;AAAA;AAAA;AAAA
|
|
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 { tag as html, TemplateResult } from './custom-tag.js';\n\nexport { setCustomTemplateLiteralTag } from './custom-tag.js';\nexport const DefaultIcon = ({\n width = 24,\n height = 24,\n hidden = false,\n title = 'Default',\n} = {}): string | TemplateResult => {\n return html`\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 20 20\"\n role=\"img\"\n fill=\"currentColor\"\n width=${width}\n height=${height}\n aria-hidden=${hidden ? 'true' : 'false'}\n aria-label=${hidden ? undefined : title}\n >\n <path\n d=\"m10,18.75c-4.82471,0-8.75-3.9248-8.75-8.75S5.17529,1.25,10,1.25s8.75,3.9248,8.75,8.75-3.92529,8.75-8.75,8.75Zm0-16c-3.99756,0-7.25,3.25195-7.25,7.25s3.25244,7.25,7.25,7.25,7.25-3.25195,7.25-7.25-3.25244-7.25-7.25-7.25Z\"\n fill=\"currentColor\"\n stroke-width=\"0\"\n ></path>\n </svg>\n `;\n};\n"],
|
|
5
|
+
"mappings": "aAYA,OAAS,OAAOA,MAA4B,kBAE5C,OAAS,gCAAmC,kBACrC,aAAM,YAAc,CAAC,CACxB,MAAAC,EAAQ,GACR,OAAAC,EAAS,GACT,OAAAC,EAAS,GACT,MAAAC,EAAQ,SACZ,EAAI,CAAC,IACMJ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAMSC,CAAK;AAAA,qBACJC,CAAM;AAAA,0BACDC,EAAS,OAAS,OAAO;AAAA,yBAC1BA,EAAS,OAAYC,CAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;",
|
|
6
6
|
"names": ["html", "width", "height", "hidden", "title"]
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";import{html as e}from"@spectrum-web-components/base";import{IconBase as t}from"@spectrum-web-components/icon";import{setCustomTemplateLiteralTag as r}from"../custom-tag.js";import{AddContentIcon as
|
|
1
|
+
"use strict";import{html as e}from"@spectrum-web-components/base";import{IconBase as t}from"@spectrum-web-components/icon";import{setCustomTemplateLiteralTag as r}from"../custom-tag.js";import{AddContentIcon as s}from"../icons-s2/AddContent.js";import{AssetsAddedIcon as l}from"../icons/AssetsAdded.js";export class IconAddContent extends t{render(){return r(e),this.spectrumVersion===2?s({hidden:!this.label,title:this.label}):l({hidden:!this.label,title:this.label})}}
|
|
2
2
|
//# sourceMappingURL=IconAddContent.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["IconAddContent.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*/\n\nimport { html, TemplateResult } from '@spectrum-web-components/base';\nimport { IconBase } from '@spectrum-web-components/icon';\nimport { setCustomTemplateLiteralTag } from '../custom-tag.js';\n\nimport { AddContentIcon as CurrentIcon } from '../icons-s2/AddContent.js';\n\nimport {
|
|
5
|
-
"mappings": "aAYA,OAAS,QAAAA,MAA4B,gCACrC,OAAS,YAAAC,MAAgB,gCACzB,OAAS,+BAAAC,MAAmC,mBAE5C,OAAS,kBAAkBC,MAAmB,4BAE9C,OAAS,
|
|
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 { html, TemplateResult } from '@spectrum-web-components/base';\nimport { IconBase } from '@spectrum-web-components/icon';\nimport { setCustomTemplateLiteralTag } from '../custom-tag.js';\n\nimport { AddContentIcon as CurrentIcon } from '../icons-s2/AddContent.js';\n\nimport { AssetsAddedIcon as AlternateIcon } from '../icons/AssetsAdded.js';\n\n/**\n * @element sp-icon-add-content\n */\nexport class IconAddContent extends IconBase {\n protected override render(): TemplateResult {\n setCustomTemplateLiteralTag(html);\n\n if (this.spectrumVersion === 2) {\n return CurrentIcon({ hidden: !this.label, title: this.label }) as TemplateResult;\n }\n return AlternateIcon({ hidden: !this.label, title: this.label }) as TemplateResult;\n }\n}\n"],
|
|
5
|
+
"mappings": "aAYA,OAAS,QAAAA,MAA4B,gCACrC,OAAS,YAAAC,MAAgB,gCACzB,OAAS,+BAAAC,MAAmC,mBAE5C,OAAS,kBAAkBC,MAAmB,4BAE9C,OAAS,mBAAmBC,MAAqB,0BAK1C,aAAM,uBAAuBH,CAAS,CACxB,QAAyB,CAG1C,OAFAC,EAA4BF,CAAI,EAE5B,KAAK,kBAAoB,EACpBG,EAAY,CAAE,OAAQ,CAAC,KAAK,MAAO,MAAO,KAAK,KAAM,CAAC,EAExDC,EAAc,CAAE,OAAQ,CAAC,KAAK,MAAO,MAAO,KAAK,KAAM,CAAC,CACjE,CACF",
|
|
6
6
|
"names": ["html", "IconBase", "setCustomTemplateLiteralTag", "CurrentIcon", "AlternateIcon"]
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";import{html as e}from"@spectrum-web-components/base";import{IconBase as t}from"@spectrum-web-components/icon";import{setCustomTemplateLiteralTag as r}from"../custom-tag.js";import{AlertIcon as l}from"../icons/Alert.js";import{
|
|
1
|
+
"use strict";import{html as e}from"@spectrum-web-components/base";import{IconBase as t}from"@spectrum-web-components/icon";import{setCustomTemplateLiteralTag as r}from"../custom-tag.js";import{AlertIcon as l}from"../icons/Alert.js";import{AlertTriangleIcon as o}from"../icons-s2/AlertTriangle.js";export class IconAlert extends t{render(){return r(e),this.spectrumVersion===1?l({hidden:!this.label,title:this.label}):o({hidden:!this.label,title:this.label})}}
|
|
2
2
|
//# sourceMappingURL=IconAlert.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["IconAlert.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*/\n\nimport { html, TemplateResult } from '@spectrum-web-components/base';\nimport { IconBase } from '@spectrum-web-components/icon';\nimport { setCustomTemplateLiteralTag } from '../custom-tag.js';\n\nimport { AlertIcon as CurrentIcon } from '../icons/Alert.js';\n\nimport {
|
|
5
|
-
"mappings": "aAYA,OAAS,QAAAA,MAA4B,gCACrC,OAAS,YAAAC,MAAgB,gCACzB,OAAS,+BAAAC,MAAmC,mBAE5C,OAAS,aAAaC,MAAmB,oBAEzC,OAAS,
|
|
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 { html, TemplateResult } from '@spectrum-web-components/base';\nimport { IconBase } from '@spectrum-web-components/icon';\nimport { setCustomTemplateLiteralTag } from '../custom-tag.js';\n\nimport { AlertIcon as CurrentIcon } from '../icons/Alert.js';\n\nimport { AlertTriangleIcon as AlternateIcon } from '../icons-s2/AlertTriangle.js';\n\n/**\n * @element sp-icon-alert\n */\nexport class IconAlert extends IconBase {\n protected override render(): TemplateResult {\n setCustomTemplateLiteralTag(html);\n\n if (this.spectrumVersion === 1) {\n return CurrentIcon({ hidden: !this.label, title: this.label }) as TemplateResult;\n }\n return AlternateIcon({ hidden: !this.label, title: this.label }) as TemplateResult;\n }\n}\n"],
|
|
5
|
+
"mappings": "aAYA,OAAS,QAAAA,MAA4B,gCACrC,OAAS,YAAAC,MAAgB,gCACzB,OAAS,+BAAAC,MAAmC,mBAE5C,OAAS,aAAaC,MAAmB,oBAEzC,OAAS,qBAAqBC,MAAqB,+BAK5C,aAAM,kBAAkBH,CAAS,CACnB,QAAyB,CAG1C,OAFAC,EAA4BF,CAAI,EAE5B,KAAK,kBAAoB,EACpBG,EAAY,CAAE,OAAQ,CAAC,KAAK,MAAO,MAAO,KAAK,KAAM,CAAC,EAExDC,EAAc,CAAE,OAAQ,CAAC,KAAK,MAAO,MAAO,KAAK,KAAM,CAAC,CACjE,CACF",
|
|
6
6
|
"names": ["html", "IconBase", "setCustomTemplateLiteralTag", "CurrentIcon", "AlternateIcon"]
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";import{html as e}from"@spectrum-web-components/base";import{IconBase as t}from"@spectrum-web-components/icon";import{setCustomTemplateLiteralTag as r}from"../custom-tag.js";import{AlertCircleIcon as l}from"../icons/AlertCircle.js";import{
|
|
1
|
+
"use strict";import{html as e}from"@spectrum-web-components/base";import{IconBase as t}from"@spectrum-web-components/icon";import{setCustomTemplateLiteralTag as r}from"../custom-tag.js";import{AlertCircleIcon as l}from"../icons/AlertCircle.js";import{AlertDiamondIcon as o}from"../icons-s2/AlertDiamond.js";export class IconAlertCircle extends t{render(){return r(e),this.spectrumVersion===1?l({hidden:!this.label,title:this.label}):o({hidden:!this.label,title:this.label})}}
|
|
2
2
|
//# sourceMappingURL=IconAlertCircle.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["IconAlertCircle.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*/\n\nimport { html, TemplateResult } from '@spectrum-web-components/base';\nimport { IconBase } from '@spectrum-web-components/icon';\nimport { setCustomTemplateLiteralTag } from '../custom-tag.js';\n\nimport { AlertCircleIcon as CurrentIcon } from '../icons/AlertCircle.js';\n\nimport {
|
|
5
|
-
"mappings": "aAYA,OAAS,QAAAA,MAA4B,gCACrC,OAAS,YAAAC,MAAgB,gCACzB,OAAS,+BAAAC,MAAmC,mBAE5C,OAAS,mBAAmBC,MAAmB,0BAE/C,OAAS,
|
|
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 { html, TemplateResult } from '@spectrum-web-components/base';\nimport { IconBase } from '@spectrum-web-components/icon';\nimport { setCustomTemplateLiteralTag } from '../custom-tag.js';\n\nimport { AlertCircleIcon as CurrentIcon } from '../icons/AlertCircle.js';\n\nimport { AlertDiamondIcon as AlternateIcon } from '../icons-s2/AlertDiamond.js';\n\n/**\n * @element sp-icon-alert-circle\n */\nexport class IconAlertCircle extends IconBase {\n protected override render(): TemplateResult {\n setCustomTemplateLiteralTag(html);\n\n if (this.spectrumVersion === 1) {\n return CurrentIcon({ hidden: !this.label, title: this.label }) as TemplateResult;\n }\n return AlternateIcon({ hidden: !this.label, title: this.label }) as TemplateResult;\n }\n}\n"],
|
|
5
|
+
"mappings": "aAYA,OAAS,QAAAA,MAA4B,gCACrC,OAAS,YAAAC,MAAgB,gCACzB,OAAS,+BAAAC,MAAmC,mBAE5C,OAAS,mBAAmBC,MAAmB,0BAE/C,OAAS,oBAAoBC,MAAqB,8BAK3C,aAAM,wBAAwBH,CAAS,CACzB,QAAyB,CAG1C,OAFAC,EAA4BF,CAAI,EAE5B,KAAK,kBAAoB,EACpBG,EAAY,CAAE,OAAQ,CAAC,KAAK,MAAO,MAAO,KAAK,KAAM,CAAC,EAExDC,EAAc,CAAE,OAAQ,CAAC,KAAK,MAAO,MAAO,KAAK,KAAM,CAAC,CACjE,CACF",
|
|
6
6
|
"names": ["html", "IconBase", "setCustomTemplateLiteralTag", "CurrentIcon", "AlternateIcon"]
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";import{html as e}from"@spectrum-web-components/base";import{IconBase as t}from"@spectrum-web-components/icon";import{setCustomTemplateLiteralTag as l}from"../custom-tag.js";import{AlertCircleFilledIcon as r}from"../icons/AlertCircleFilled.js";import{
|
|
1
|
+
"use strict";import{html as e}from"@spectrum-web-components/base";import{IconBase as t}from"@spectrum-web-components/icon";import{setCustomTemplateLiteralTag as l}from"../custom-tag.js";import{AlertCircleFilledIcon as r}from"../icons/AlertCircleFilled.js";import{AlertDiamondIcon as i}from"../icons-s2/AlertDiamond.js";export class IconAlertCircleFilled extends t{render(){return l(e),this.spectrumVersion===1?r({hidden:!this.label,title:this.label}):i({hidden:!this.label,title:this.label})}}
|
|
2
2
|
//# sourceMappingURL=IconAlertCircleFilled.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["IconAlertCircleFilled.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*/\n\nimport { html, TemplateResult } from '@spectrum-web-components/base';\nimport { IconBase } from '@spectrum-web-components/icon';\nimport { setCustomTemplateLiteralTag } from '../custom-tag.js';\n\nimport { AlertCircleFilledIcon as CurrentIcon } from '../icons/AlertCircleFilled.js';\n\nimport {
|
|
5
|
-
"mappings": "aAYA,OAAS,QAAAA,MAA4B,gCACrC,OAAS,YAAAC,MAAgB,gCACzB,OAAS,+BAAAC,MAAmC,mBAE5C,OAAS,yBAAyBC,MAAmB,gCAErD,OAAS,
|
|
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 { html, TemplateResult } from '@spectrum-web-components/base';\nimport { IconBase } from '@spectrum-web-components/icon';\nimport { setCustomTemplateLiteralTag } from '../custom-tag.js';\n\nimport { AlertCircleFilledIcon as CurrentIcon } from '../icons/AlertCircleFilled.js';\n\nimport { AlertDiamondIcon as AlternateIcon } from '../icons-s2/AlertDiamond.js';\n\n/**\n * @element sp-icon-alert-circle-filled\n */\nexport class IconAlertCircleFilled extends IconBase {\n protected override render(): TemplateResult {\n setCustomTemplateLiteralTag(html);\n\n if (this.spectrumVersion === 1) {\n return CurrentIcon({ hidden: !this.label, title: this.label }) as TemplateResult;\n }\n return AlternateIcon({ hidden: !this.label, title: this.label }) as TemplateResult;\n }\n}\n"],
|
|
5
|
+
"mappings": "aAYA,OAAS,QAAAA,MAA4B,gCACrC,OAAS,YAAAC,MAAgB,gCACzB,OAAS,+BAAAC,MAAmC,mBAE5C,OAAS,yBAAyBC,MAAmB,gCAErD,OAAS,oBAAoBC,MAAqB,8BAK3C,aAAM,8BAA8BH,CAAS,CAC/B,QAAyB,CAG1C,OAFAC,EAA4BF,CAAI,EAE5B,KAAK,kBAAoB,EACpBG,EAAY,CAAE,OAAQ,CAAC,KAAK,MAAO,MAAO,KAAK,KAAM,CAAC,EAExDC,EAAc,CAAE,OAAQ,CAAC,KAAK,MAAO,MAAO,KAAK,KAAM,CAAC,CACjE,CACF",
|
|
6
6
|
"names": ["html", "IconBase", "setCustomTemplateLiteralTag", "CurrentIcon", "AlternateIcon"]
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";import{html as e}from"@spectrum-web-components/base";import{IconBase as t}from"@spectrum-web-components/icon";import{setCustomTemplateLiteralTag as r}from"../custom-tag.js";import{AlertDiamondIcon as l}from"../icons-s2/AlertDiamond.js";import{
|
|
1
|
+
"use strict";import{html as e}from"@spectrum-web-components/base";import{IconBase as t}from"@spectrum-web-components/icon";import{setCustomTemplateLiteralTag as r}from"../custom-tag.js";import{AlertDiamondIcon as l}from"../icons-s2/AlertDiamond.js";import{AlertCircleFilledIcon as o}from"../icons/AlertCircleFilled.js";export class IconAlertDiamond extends t{render(){return r(e),this.spectrumVersion===2?l({hidden:!this.label,title:this.label}):o({hidden:!this.label,title:this.label})}}
|
|
2
2
|
//# sourceMappingURL=IconAlertDiamond.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["IconAlertDiamond.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*/\n\nimport { html, TemplateResult } from '@spectrum-web-components/base';\nimport { IconBase } from '@spectrum-web-components/icon';\nimport { setCustomTemplateLiteralTag } from '../custom-tag.js';\n\nimport { AlertDiamondIcon as CurrentIcon } from '../icons-s2/AlertDiamond.js';\n\nimport {
|
|
5
|
-
"mappings": "aAYA,OAAS,QAAAA,MAA4B,gCACrC,OAAS,YAAAC,MAAgB,gCACzB,OAAS,+BAAAC,MAAmC,mBAE5C,OAAS,oBAAoBC,MAAmB,8BAEhD,OAAS,
|
|
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 { html, TemplateResult } from '@spectrum-web-components/base';\nimport { IconBase } from '@spectrum-web-components/icon';\nimport { setCustomTemplateLiteralTag } from '../custom-tag.js';\n\nimport { AlertDiamondIcon as CurrentIcon } from '../icons-s2/AlertDiamond.js';\n\nimport { AlertCircleFilledIcon as AlternateIcon } from '../icons/AlertCircleFilled.js';\n\n/**\n * @element sp-icon-alert-diamond\n */\nexport class IconAlertDiamond extends IconBase {\n protected override render(): TemplateResult {\n setCustomTemplateLiteralTag(html);\n\n if (this.spectrumVersion === 2) {\n return CurrentIcon({ hidden: !this.label, title: this.label }) as TemplateResult;\n }\n return AlternateIcon({ hidden: !this.label, title: this.label }) as TemplateResult;\n }\n}\n"],
|
|
5
|
+
"mappings": "aAYA,OAAS,QAAAA,MAA4B,gCACrC,OAAS,YAAAC,MAAgB,gCACzB,OAAS,+BAAAC,MAAmC,mBAE5C,OAAS,oBAAoBC,MAAmB,8BAEhD,OAAS,yBAAyBC,MAAqB,gCAKhD,aAAM,yBAAyBH,CAAS,CAC1B,QAAyB,CAG1C,OAFAC,EAA4BF,CAAI,EAE5B,KAAK,kBAAoB,EACpBG,EAAY,CAAE,OAAQ,CAAC,KAAK,MAAO,MAAO,KAAK,KAAM,CAAC,EAExDC,EAAc,CAAE,OAAQ,CAAC,KAAK,MAAO,MAAO,KAAK,KAAM,CAAC,CACjE,CACF",
|
|
6
6
|
"names": ["html", "IconBase", "setCustomTemplateLiteralTag", "CurrentIcon", "AlternateIcon"]
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";import{html as e}from"@spectrum-web-components/base";import{IconBase as t}from"@spectrum-web-components/icon";import{setCustomTemplateLiteralTag as r}from"../custom-tag.js";import{AlertTriangleIcon as l}from"../icons-s2/AlertTriangle.js";import{
|
|
1
|
+
"use strict";import{html as e}from"@spectrum-web-components/base";import{IconBase as t}from"@spectrum-web-components/icon";import{setCustomTemplateLiteralTag as r}from"../custom-tag.js";import{AlertTriangleIcon as l}from"../icons-s2/AlertTriangle.js";import{AlertIcon as o}from"../icons/Alert.js";export class IconAlertTriangle extends t{render(){return r(e),this.spectrumVersion===2?l({hidden:!this.label,title:this.label}):o({hidden:!this.label,title:this.label})}}
|
|
2
2
|
//# sourceMappingURL=IconAlertTriangle.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["IconAlertTriangle.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*/\n\nimport { html, TemplateResult } from '@spectrum-web-components/base';\nimport { IconBase } from '@spectrum-web-components/icon';\nimport { setCustomTemplateLiteralTag } from '../custom-tag.js';\n\nimport { AlertTriangleIcon as CurrentIcon } from '../icons-s2/AlertTriangle.js';\n\nimport {
|
|
5
|
-
"mappings": "aAYA,OAAS,QAAAA,MAA4B,gCACrC,OAAS,YAAAC,MAAgB,gCACzB,OAAS,+BAAAC,MAAmC,mBAE5C,OAAS,qBAAqBC,MAAmB,+BAEjD,OAAS,
|
|
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 { html, TemplateResult } from '@spectrum-web-components/base';\nimport { IconBase } from '@spectrum-web-components/icon';\nimport { setCustomTemplateLiteralTag } from '../custom-tag.js';\n\nimport { AlertTriangleIcon as CurrentIcon } from '../icons-s2/AlertTriangle.js';\n\nimport { AlertIcon as AlternateIcon } from '../icons/Alert.js';\n\n/**\n * @element sp-icon-alert-triangle\n */\nexport class IconAlertTriangle extends IconBase {\n protected override render(): TemplateResult {\n setCustomTemplateLiteralTag(html);\n\n if (this.spectrumVersion === 2) {\n return CurrentIcon({ hidden: !this.label, title: this.label }) as TemplateResult;\n }\n return AlternateIcon({ hidden: !this.label, title: this.label }) as TemplateResult;\n }\n}\n"],
|
|
5
|
+
"mappings": "aAYA,OAAS,QAAAA,MAA4B,gCACrC,OAAS,YAAAC,MAAgB,gCACzB,OAAS,+BAAAC,MAAmC,mBAE5C,OAAS,qBAAqBC,MAAmB,+BAEjD,OAAS,aAAaC,MAAqB,oBAKpC,aAAM,0BAA0BH,CAAS,CAC3B,QAAyB,CAG1C,OAFAC,EAA4BF,CAAI,EAE5B,KAAK,kBAAoB,EACpBG,EAAY,CAAE,OAAQ,CAAC,KAAK,MAAO,MAAO,KAAK,KAAM,CAAC,EAExDC,EAAc,CAAE,OAAQ,CAAC,KAAK,MAAO,MAAO,KAAK,KAAM,CAAC,CACjE,CACF",
|
|
6
6
|
"names": ["html", "IconBase", "setCustomTemplateLiteralTag", "CurrentIcon", "AlternateIcon"]
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";import{html as e}from"@spectrum-web-components/base";import{IconBase as t}from"@spectrum-web-components/icon";import{setCustomTemplateLiteralTag as r}from"../custom-tag.js";import{AnchorSelectIcon as l}from"../icons/AnchorSelect.js";import{
|
|
1
|
+
"use strict";import{html as e}from"@spectrum-web-components/base";import{IconBase as t}from"@spectrum-web-components/icon";import{setCustomTemplateLiteralTag as r}from"../custom-tag.js";import{AnchorSelectIcon as l}from"../icons/AnchorSelect.js";import{DirectSelectIcon as o}from"../icons-s2/DirectSelect.js";export class IconAnchorSelect extends t{render(){return r(e),this.spectrumVersion===1?l({hidden:!this.label,title:this.label}):o({hidden:!this.label,title:this.label})}}
|
|
2
2
|
//# sourceMappingURL=IconAnchorSelect.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["IconAnchorSelect.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*/\n\nimport { html, TemplateResult } from '@spectrum-web-components/base';\nimport { IconBase } from '@spectrum-web-components/icon';\nimport { setCustomTemplateLiteralTag } from '../custom-tag.js';\n\nimport { AnchorSelectIcon as CurrentIcon } from '../icons/AnchorSelect.js';\n\nimport {
|
|
5
|
-
"mappings": "aAYA,OAAS,QAAAA,MAA4B,gCACrC,OAAS,YAAAC,MAAgB,gCACzB,OAAS,+BAAAC,MAAmC,mBAE5C,OAAS,oBAAoBC,MAAmB,2BAEhD,OAAS,
|
|
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 { html, TemplateResult } from '@spectrum-web-components/base';\nimport { IconBase } from '@spectrum-web-components/icon';\nimport { setCustomTemplateLiteralTag } from '../custom-tag.js';\n\nimport { AnchorSelectIcon as CurrentIcon } from '../icons/AnchorSelect.js';\n\nimport { DirectSelectIcon as AlternateIcon } from '../icons-s2/DirectSelect.js';\n\n/**\n * @element sp-icon-anchor-select\n */\nexport class IconAnchorSelect extends IconBase {\n protected override render(): TemplateResult {\n setCustomTemplateLiteralTag(html);\n\n if (this.spectrumVersion === 1) {\n return CurrentIcon({ hidden: !this.label, title: this.label }) as TemplateResult;\n }\n return AlternateIcon({ hidden: !this.label, title: this.label }) as TemplateResult;\n }\n}\n"],
|
|
5
|
+
"mappings": "aAYA,OAAS,QAAAA,MAA4B,gCACrC,OAAS,YAAAC,MAAgB,gCACzB,OAAS,+BAAAC,MAAmC,mBAE5C,OAAS,oBAAoBC,MAAmB,2BAEhD,OAAS,oBAAoBC,MAAqB,8BAK3C,aAAM,yBAAyBH,CAAS,CAC1B,QAAyB,CAG1C,OAFAC,EAA4BF,CAAI,EAE5B,KAAK,kBAAoB,EACpBG,EAAY,CAAE,OAAQ,CAAC,KAAK,MAAO,MAAO,KAAK,KAAM,CAAC,EAExDC,EAAc,CAAE,OAAQ,CAAC,KAAK,MAAO,MAAO,KAAK,KAAM,CAAC,CACjE,CACF",
|
|
6
6
|
"names": ["html", "IconBase", "setCustomTemplateLiteralTag", "CurrentIcon", "AlternateIcon"]
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";import{html as e}from"@spectrum-web-components/base";import{IconBase as t}from"@spectrum-web-components/icon";import{setCustomTemplateLiteralTag as s}from"../custom-tag.js";import{AssetsAddedIcon as r}from"../icons/AssetsAdded.js";import{
|
|
1
|
+
"use strict";import{html as e}from"@spectrum-web-components/base";import{IconBase as t}from"@spectrum-web-components/icon";import{setCustomTemplateLiteralTag as s}from"../custom-tag.js";import{AssetsAddedIcon as r}from"../icons/AssetsAdded.js";import{AddContentIcon as l}from"../icons-s2/AddContent.js";export class IconAssetsAdded extends t{render(){return s(e),this.spectrumVersion===1?r({hidden:!this.label,title:this.label}):l({hidden:!this.label,title:this.label})}}
|
|
2
2
|
//# sourceMappingURL=IconAssetsAdded.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["IconAssetsAdded.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*/\n\nimport { html, TemplateResult } from '@spectrum-web-components/base';\nimport { IconBase } from '@spectrum-web-components/icon';\nimport { setCustomTemplateLiteralTag } from '../custom-tag.js';\n\nimport { AssetsAddedIcon as CurrentIcon } from '../icons/AssetsAdded.js';\n\nimport {
|
|
5
|
-
"mappings": "aAYA,OAAS,QAAAA,MAA4B,gCACrC,OAAS,YAAAC,MAAgB,gCACzB,OAAS,+BAAAC,MAAmC,mBAE5C,OAAS,mBAAmBC,MAAmB,0BAE/C,OAAS,
|
|
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 { html, TemplateResult } from '@spectrum-web-components/base';\nimport { IconBase } from '@spectrum-web-components/icon';\nimport { setCustomTemplateLiteralTag } from '../custom-tag.js';\n\nimport { AssetsAddedIcon as CurrentIcon } from '../icons/AssetsAdded.js';\n\nimport { AddContentIcon as AlternateIcon } from '../icons-s2/AddContent.js';\n\n/**\n * @element sp-icon-assets-added\n */\nexport class IconAssetsAdded extends IconBase {\n protected override render(): TemplateResult {\n setCustomTemplateLiteralTag(html);\n\n if (this.spectrumVersion === 1) {\n return CurrentIcon({ hidden: !this.label, title: this.label }) as TemplateResult;\n }\n return AlternateIcon({ hidden: !this.label, title: this.label }) as TemplateResult;\n }\n}\n"],
|
|
5
|
+
"mappings": "aAYA,OAAS,QAAAA,MAA4B,gCACrC,OAAS,YAAAC,MAAgB,gCACzB,OAAS,+BAAAC,MAAmC,mBAE5C,OAAS,mBAAmBC,MAAmB,0BAE/C,OAAS,kBAAkBC,MAAqB,4BAKzC,aAAM,wBAAwBH,CAAS,CACzB,QAAyB,CAG1C,OAFAC,EAA4BF,CAAI,EAE5B,KAAK,kBAAoB,EACpBG,EAAY,CAAE,OAAQ,CAAC,KAAK,MAAO,MAAO,KAAK,KAAM,CAAC,EAExDC,EAAc,CAAE,OAAQ,CAAC,KAAK,MAAO,MAAO,KAAK,KAAM,CAAC,CACjE,CACF",
|
|
6
6
|
"names": ["html", "IconBase", "setCustomTemplateLiteralTag", "CurrentIcon", "AlternateIcon"]
|
|
7
7
|
}
|
package/src/elements/IconAt.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";import{html as e}from"@spectrum-web-components/base";import{IconBase as t}from"@spectrum-web-components/icon";import{setCustomTemplateLiteralTag as r}from"../custom-tag.js";import{AtIcon as l}from"../icons/At.js";import{
|
|
1
|
+
"use strict";import{html as e}from"@spectrum-web-components/base";import{IconBase as t}from"@spectrum-web-components/icon";import{setCustomTemplateLiteralTag as r}from"../custom-tag.js";import{AtIcon as l}from"../icons/At.js";import{MentionIcon as o}from"../icons-s2/Mention.js";export class IconAt extends t{render(){return r(e),this.spectrumVersion===1?l({hidden:!this.label,title:this.label}):o({hidden:!this.label,title:this.label})}}
|
|
2
2
|
//# sourceMappingURL=IconAt.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["IconAt.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*/\n\nimport { html, TemplateResult } from '@spectrum-web-components/base';\nimport { IconBase } from '@spectrum-web-components/icon';\nimport { setCustomTemplateLiteralTag } from '../custom-tag.js';\n\nimport { AtIcon as CurrentIcon } from '../icons/At.js';\n\nimport {
|
|
5
|
-
"mappings": "aAYA,OAAS,QAAAA,MAA4B,gCACrC,OAAS,YAAAC,MAAgB,gCACzB,OAAS,+BAAAC,MAAmC,mBAE5C,OAAS,UAAUC,MAAmB,iBAEtC,OAAS,eAAeC,MAAqB,
|
|
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 { html, TemplateResult } from '@spectrum-web-components/base';\nimport { IconBase } from '@spectrum-web-components/icon';\nimport { setCustomTemplateLiteralTag } from '../custom-tag.js';\n\nimport { AtIcon as CurrentIcon } from '../icons/At.js';\n\nimport { MentionIcon as AlternateIcon } from '../icons-s2/Mention.js';\n\n/**\n * @element sp-icon-at\n */\nexport class IconAt extends IconBase {\n protected override render(): TemplateResult {\n setCustomTemplateLiteralTag(html);\n\n if (this.spectrumVersion === 1) {\n return CurrentIcon({ hidden: !this.label, title: this.label }) as TemplateResult;\n }\n return AlternateIcon({ hidden: !this.label, title: this.label }) as TemplateResult;\n }\n}\n"],
|
|
5
|
+
"mappings": "aAYA,OAAS,QAAAA,MAA4B,gCACrC,OAAS,YAAAC,MAAgB,gCACzB,OAAS,+BAAAC,MAAmC,mBAE5C,OAAS,UAAUC,MAAmB,iBAEtC,OAAS,eAAeC,MAAqB,yBAKtC,aAAM,eAAeH,CAAS,CAChB,QAAyB,CAG1C,OAFAC,EAA4BF,CAAI,EAE5B,KAAK,kBAAoB,EACpBG,EAAY,CAAE,OAAQ,CAAC,KAAK,MAAO,MAAO,KAAK,KAAM,CAAC,EAExDC,EAAc,CAAE,OAAQ,CAAC,KAAK,MAAO,MAAO,KAAK,KAAM,CAAC,CACjE,CACF",
|
|
6
6
|
"names": ["html", "IconBase", "setCustomTemplateLiteralTag", "CurrentIcon", "AlternateIcon"]
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";import{html as e}from"@spectrum-web-components/base";import{IconBase as t}from"@spectrum-web-components/icon";import{setCustomTemplateLiteralTag as r}from"../custom-tag.js";import{AudioIcon as
|
|
1
|
+
"use strict";import{html as e}from"@spectrum-web-components/base";import{IconBase as t}from"@spectrum-web-components/icon";import{setCustomTemplateLiteralTag as r}from"../custom-tag.js";import{AudioIcon as o}from"../icons/Audio.js";import{MusicNoteIcon as l}from"../icons-s2/MusicNote.js";export class IconAudio extends t{render(){return r(e),this.spectrumVersion===1?o({hidden:!this.label,title:this.label}):l({hidden:!this.label,title:this.label})}}
|
|
2
2
|
//# sourceMappingURL=IconAudio.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["IconAudio.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*/\n\nimport { html, TemplateResult } from '@spectrum-web-components/base';\nimport { IconBase } from '@spectrum-web-components/icon';\nimport { setCustomTemplateLiteralTag } from '../custom-tag.js';\n\nimport { AudioIcon as CurrentIcon } from '../icons/Audio.js';\n\nimport {
|
|
5
|
-
"mappings": "aAYA,OAAS,QAAAA,MAA4B,gCACrC,OAAS,YAAAC,MAAgB,gCACzB,OAAS,+BAAAC,MAAmC,mBAE5C,OAAS,aAAaC,MAAmB,oBAEzC,OAAS,
|
|
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 { html, TemplateResult } from '@spectrum-web-components/base';\nimport { IconBase } from '@spectrum-web-components/icon';\nimport { setCustomTemplateLiteralTag } from '../custom-tag.js';\n\nimport { AudioIcon as CurrentIcon } from '../icons/Audio.js';\n\nimport { MusicNoteIcon as AlternateIcon } from '../icons-s2/MusicNote.js';\n\n/**\n * @element sp-icon-audio\n */\nexport class IconAudio extends IconBase {\n protected override render(): TemplateResult {\n setCustomTemplateLiteralTag(html);\n\n if (this.spectrumVersion === 1) {\n return CurrentIcon({ hidden: !this.label, title: this.label }) as TemplateResult;\n }\n return AlternateIcon({ hidden: !this.label, title: this.label }) as TemplateResult;\n }\n}\n"],
|
|
5
|
+
"mappings": "aAYA,OAAS,QAAAA,MAA4B,gCACrC,OAAS,YAAAC,MAAgB,gCACzB,OAAS,+BAAAC,MAAmC,mBAE5C,OAAS,aAAaC,MAAmB,oBAEzC,OAAS,iBAAiBC,MAAqB,2BAKxC,aAAM,kBAAkBH,CAAS,CACnB,QAAyB,CAG1C,OAFAC,EAA4BF,CAAI,EAE5B,KAAK,kBAAoB,EACpBG,EAAY,CAAE,OAAQ,CAAC,KAAK,MAAO,MAAO,KAAK,KAAM,CAAC,EAExDC,EAAc,CAAE,OAAQ,CAAC,KAAK,MAAO,MAAO,KAAK,KAAM,CAAC,CACjE,CACF",
|
|
6
6
|
"names": ["html", "IconBase", "setCustomTemplateLiteralTag", "CurrentIcon", "AlternateIcon"]
|
|
7
7
|
}
|