From 292010c81a36c60680d419d3d4b2cef3f22b76fb Mon Sep 17 00:00:00 2001 From: "christian.b.hoffmann" Date: Tue, 16 Jan 2024 01:21:51 +0100 Subject: [PATCH] fixes icon keys --- packages/icons/icons-optimized/index.ts | 673 ++---------------------- packages/icons/scripts/index.mjs | 5 +- 2 files changed, 56 insertions(+), 622 deletions(-) diff --git a/packages/icons/icons-optimized/index.ts b/packages/icons/icons-optimized/index.ts index e04fbd787..f0828f1ad 100644 --- a/packages/icons/icons-optimized/index.ts +++ b/packages/icons/icons-optimized/index.ts @@ -1387,685 +1387,118 @@ const blrWiFiXxs = () => import(`!!raw-loader!@boiler/icons/icons-optimized/${'W export const PureIconKeys = [ 'blr360', - 'blr360', - 'blr360', - 'blr360', - 'blr360', - 'blr360', - 'blrArrow', - 'blrArrow', - 'blrArrow', - 'blrArrow', - 'blrArrow', - 'blrArrow', - 'blrArrow', - 'blrArrow', - 'blrArrow', - 'blrArrow', - 'blrArrow', - 'blrArrow', - 'blrArrow', - 'blrArrow', - 'blrArrow', - 'blrArrow', - 'blrArrow', - 'blrArrow', - 'blrArrow', - 'blrArrow', - 'blrArrow', - 'blrArrow', - 'blrArrow', - 'blrArrow', - 'blrBag', - 'blrBag', + 'blrArrowDown', + 'blrArrowLeft', + 'blrArrowRight', + 'blrArrowUp', 'blrBag', - 'blrBag', - 'blrBag', - 'blrBag', - 'blrBook', - 'blrBook', - 'blrBook', 'blrBook', - 'blrBook', - 'blrBook', - 'blrBookmark', - 'blrBookmark', - 'blrBookmark', - 'blrBookmark', 'blrBookmark', - 'blrBookmark', - 'blrBriefcase', - 'blrBriefcase', - 'blrBriefcase', - 'blrBriefcase', - 'blrBriefcase', 'blrBriefcase', 'blrCalendar', - 'blrCalendar', - 'blrCalendar', - 'blrCalendar', - 'blrCalendar', - 'blrCalendar', - 'blrCalendar', - 'blrCalendar', - 'blrCalendar', - 'blrCalendar', - 'blrCalendar', - 'blrCalendar', - 'blrCamera', + 'blrCalendarToday', 'blrCamera', - 'blrCamera', - 'blrCamera', - 'blrCamera', - 'blrCamera', - 'blrCart', - 'blrCart', 'blrCart', - 'blrCart', - 'blrCart', - 'blrCart', - 'blrChat', - 'blrChat', - 'blrChat', 'blrChat', - 'blrChat', - 'blrChat', - 'blrCheckmark', - 'blrCheckmark', - 'blrCheckmark', - 'blrCheckmark', 'blrCheckmark', - 'blrCheckmark', - 'blrChevron', - 'blrChevron', - 'blrChevron', - 'blrChevron', - 'blrChevron', - 'blrChevron', - 'blrChevron', - 'blrChevron', - 'blrChevron', - 'blrChevron', - 'blrChevron', - 'blrChevron', - 'blrChevron', - 'blrChevron', - 'blrChevron', - 'blrChevron', - 'blrChevron', - 'blrChevron', - 'blrChevron', - 'blrChevron', - 'blrChevron', - 'blrChevron', - 'blrChevron', - 'blrChevron', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClock', - 'blrClose', - 'blrClose', - 'blrClose', - 'blrClose', - 'blrClose', + 'blrChevronDown', + 'blrChevronLeft', + 'blrChevronRight', + 'blrChevronUp', + 'blrClock0000', + 'blrClock0030', + 'blrClock0100', + 'blrClock0130', + 'blrClock0300', + 'blrClock0330', + 'blrClock0430', + 'blrClock0500', + 'blrClock0700', + 'blrClock0730', + 'blrClock0900', + 'blrClock0930', + 'blrClock1100', + 'blrClock1130', 'blrClose', 'blrCloud', - 'blrCloud', - 'blrCloud', - 'blrCloud', - 'blrCloud', - 'blrCloud', - 'blrCloud', - 'blrCloud', - 'blrCloud', - 'blrCloud', - 'blrCloud', - 'blrCloud', - 'blrCompass', + 'blrCloudUpload', 'blrCompass', - 'blrCompass', - 'blrCompass', - 'blrCompass', - 'blrCompass', - 'blrCopy', - 'blrCopy', 'blrCopy', - 'blrCopy', - 'blrCopy', - 'blrCopy', - 'blrCrop', - 'blrCrop', - 'blrCrop', 'blrCrop', - 'blrCrop', - 'blrCrop', - 'blrDislike', - 'blrDislike', - 'blrDislike', - 'blrDislike', 'blrDislike', - 'blrDislike', - 'blrDocument', - 'blrDocument', - 'blrDocument', - 'blrDocument', - 'blrDocument', - 'blrDocument', - 'blrDocument', - 'blrDocument', - 'blrDocument', - 'blrDocument', - 'blrDocument', - 'blrDocument', - 'blrDownload', - 'blrDownload', - 'blrDownload', - 'blrDownload', - 'blrDownload', + 'blrDocumentNew', + 'blrDocumentTwo', 'blrDownload', 'blrDrag', - 'blrDrag', - 'blrDrag', - 'blrDrag', - 'blrDrag', - 'blrDrag', - 'blrEnvelopeClosed', 'blrEnvelopeClosed', - 'blrEnvelopeClosed', - 'blrEnvelopeClosed', - 'blrEnvelopeClosed', - 'blrEnvelopeClosed', - 'blrEnvelopeOpen', - 'blrEnvelopeOpen', 'blrEnvelopeOpen', - 'blrEnvelopeOpen', - 'blrEnvelopeOpen', - 'blrEnvelopeOpen', - 'blrEqual', - 'blrEqual', - 'blrEqual', 'blrEqual', - 'blrEqual', - 'blrEqual', - 'blrError', - 'blrError', - 'blrError', - 'blrError', + 'blrErrorFilled', 'blrError', - 'blrError', - 'blrError', - 'blrError', - 'blrError', - 'blrError', - 'blrError', - 'blrError', - 'blrEye', - 'blrEye', - 'blrEye', - 'blrEye', - 'blrEye', - 'blrEye', - 'blrEye', - 'blrEye', - 'blrEye', - 'blrEye', - 'blrEye', - 'blrEye', - 'blrEye', - 'blrEye', - 'blrEye', - 'blrEye', - 'blrEye', 'blrEye', + 'blrEyeOff', + 'blrEyeOn', 'blrFlag', - 'blrFlag', - 'blrFlag', - 'blrFlag', - 'blrFlag', - 'blrFlag', - 'blrFolder', - 'blrFolder', - 'blrFolder', - 'blrFolder', - 'blrFolder', - 'blrFolder', - 'blrFolder', 'blrFolder', - 'blrFolder', - 'blrFolder', - 'blrFolder', - 'blrFolder', - 'blrFolder', - 'blrFolder', - 'blrFolder', - 'blrFolder', - 'blrFolder', - 'blrFolder', - 'blrForward', - 'blrForward', + 'blrFolderOpen', + 'blrFolderOpenSide', 'blrForward', - 'blrForward', - 'blrForward', - 'blrForward', - 'blrGlobe', - 'blrGlobe', - 'blrGlobe', 'blrGlobe', - 'blrGlobe', - 'blrGlobe', - 'blrHeart', - 'blrHeart', - 'blrHeart', - 'blrHeart', 'blrHeart', - 'blrHeart', - 'blrHome', - 'blrHome', - 'blrHome', - 'blrHome', - 'blrHome', 'blrHome', 'blrImage', - 'blrImage', - 'blrImage', - 'blrImage', - 'blrImage', - 'blrImage', - 'blrInbox', - 'blrInbox', - 'blrInbox', - 'blrInbox', - 'blrInbox', - 'blrInbox', - 'blrInfo', + 'blrInboxMessageMail', 'blrInfo', - 'blrInfo', - 'blrInfo', - 'blrInfo', - 'blrInfo', - 'blrLike', - 'blrLike', - 'blrLike', 'blrLike', - 'blrLike', - 'blrLike', - 'blrLink', - 'blrLink', - 'blrLink', - 'blrLink', + 'blrLinkBroken', 'blrLink', - 'blrLink', - 'blrLink', - 'blrLink', - 'blrLink', - 'blrLink', - 'blrLink', - 'blrLink', - 'blrLock', - 'blrLock', - 'blrLock', - 'blrLock', - 'blrLock', - 'blrLock', - 'blrLock', - 'blrLock', - 'blrLock', - 'blrLock', - 'blrLock', - 'blrLock', - 'blrMenu', - 'blrMenu', - 'blrMenu', - 'blrMenu', - 'blrMenu', + 'blrLockClosed', + 'blrLockOpen', 'blrMenu', 'blrMicrophone', - 'blrMicrophone', - 'blrMicrophone', - 'blrMicrophone', - 'blrMicrophone', - 'blrMicrophone', - 'blrMinus', 'blrMinus', - 'blrMinus', - 'blrMinus', - 'blrMinus', - 'blrMinus', - 'blrMore', - 'blrMore', - 'blrMore', - 'blrMore', - 'blrMore', - 'blrMore', - 'blrMore', - 'blrMore', - 'blrMore', - 'blrMore', - 'blrMore', - 'blrMore', - 'blrMore', - 'blrMore', + 'blrMoreHorizontal', 'blrMore', - 'blrMore', - 'blrMore', - 'blrMore', - 'blrMusic', - 'blrMusic', - 'blrMusic', + 'blrMoreVertical', 'blrMusic', - 'blrMusic', - 'blrMusic', - 'blrNotification', - 'blrNotification', - 'blrNotification', - 'blrNotification', - 'blrNotification', - 'blrNotification', - 'blrNotification', - 'blrNotification', - 'blrNotification', - 'blrNotification', - 'blrNotification', - 'blrNotification', - 'blrOff', - 'blrOff', - 'blrOff', - 'blrOff', + 'blrNotificationBellOff', + 'blrNotificationBellOn', 'blrOff', - 'blrOff', - 'blrOn', - 'blrOn', - 'blrOn', - 'blrOn', - 'blrOn', 'blrOn', 'blrPause', - 'blrPause', - 'blrPause', - 'blrPause', - 'blrPause', - 'blrPause', - 'blrPen', 'blrPen', - 'blrPen', - 'blrPen', - 'blrPen', - 'blrPen', - 'blrPhone', - 'blrPhone', - 'blrPhone', - 'blrPhone', - 'blrPhone', - 'blrPhone', - 'blrPhone', - 'blrPhone', + 'blrPhoneIncomingCall', 'blrPhone', - 'blrPhone', - 'blrPhone', - 'blrPhone', - 'blrPhone', - 'blrPhone', - 'blrPhone', - 'blrPhone', - 'blrPhone', - 'blrPhone', - 'blrPin', - 'blrPin', - 'blrPin', + 'blrPhoneOutgoingCall', 'blrPin', - 'blrPin', - 'blrPin', - 'blrPlane', - 'blrPlane', - 'blrPlane', - 'blrPlane', 'blrPlane', - 'blrPlane', - 'blrPlay', - 'blrPlay', - 'blrPlay', - 'blrPlay', - 'blrPlay', 'blrPlay', 'blrPlus', - 'blrPlus', - 'blrPlus', - 'blrPlus', - 'blrPlus', - 'blrPlus', - 'blrPrinter', 'blrPrinter', - 'blrPrinter', - 'blrPrinter', - 'blrPrinter', - 'blrPrinter', - 'blrProfile', - 'blrProfile', 'blrProfile', - 'blrProfile', - 'blrProfile', - 'blrProfile', - 'blrRefresh', - 'blrRefresh', - 'blrRefresh', - 'blrRefresh', - 'blrRefresh', - 'blrRefresh', - 'blrRefresh', - 'blrRefresh', - 'blrRefresh', + 'blrRefresh2', 'blrRefresh', - 'blrRefresh', - 'blrRefresh', - 'blrResize', - 'blrResize', - 'blrResize', - 'blrResize', - 'blrResize', - 'blrResize', - 'blrResize', - 'blrResize', - 'blrResize', - 'blrResize', - 'blrResize', - 'blrResize', - 'blrScissors', - 'blrScissors', - 'blrScissors', - 'blrScissors', + 'blrResizeIn', + 'blrResizeOut', 'blrScissors', - 'blrScissors', - 'blrSearch', - 'blrSearch', - 'blrSearch', - 'blrSearch', - 'blrSearch', 'blrSearch', - 'blrSelection', - 'blrSelection', - 'blrSelection', - 'blrSelection', - 'blrSelection', - 'blrSelection', - 'blrSelection', - 'blrSelection', - 'blrSelection', - 'blrSelection', - 'blrSelection', - 'blrSelection', - 'blrSelection', - 'blrSelection', - 'blrSelection', - 'blrSelection', - 'blrSelection', - 'blrSelection', - 'blrSelection', - 'blrSelection', - 'blrSelection', - 'blrSelection', - 'blrSelection', - 'blrSelection', + 'blrSelectionBoxOff', + 'blrSelectionBoxOn', + 'blrSelectionOff', + 'blrSelectionOn', 'blrSend', - 'blrSend', - 'blrSend', - 'blrSend', - 'blrSend', - 'blrSend', - 'blrSettings', - 'blrSettings', - 'blrSettings', - 'blrSettings', - 'blrSettings', - 'blrSettings', - 'blrShare', + 'blrSettingsCog', 'blrShare', - 'blrShare', - 'blrShare', - 'blrShare', - 'blrShare', - 'blrShopping', - 'blrShopping', - 'blrShopping', - 'blrShopping', - 'blrShopping', - 'blrShopping', - 'blrSmoothie', - 'blrSmoothie', + 'blrShoppingBasket', 'blrSmoothie', - 'blrSound', - 'blrSound', - 'blrSound', - 'blrSound', - 'blrSound', - 'blrSound', - 'blrSound', - 'blrSound', - 'blrSound', - 'blrSound', - 'blrSound', - 'blrSound', + 'blrSoundMax', + 'blrSoundMin', 'blrStar', - 'blrStar', - 'blrStar', - 'blrStar', - 'blrStar', - 'blrStar', - 'blrTag', 'blrTag', - 'blrTag', - 'blrTag', - 'blrTag', - 'blrTag', - 'blrTrash', - 'blrTrash', 'blrTrash', - 'blrTrash', - 'blrTrash', - 'blrTrash', - 'blrUpload', - 'blrUpload', - 'blrUpload', 'blrUpload', - 'blrUpload', - 'blrUpload', - 'blrVideo', - 'blrVideo', - 'blrVideo', - 'blrVideo', + 'blrVideoCamera', 'blrVideo', - 'blrVideo', - 'blrVideo', - 'blrVideo', - 'blrVideo', - 'blrVideo', - 'blrVideo', - 'blrVideo', - 'blrWiFi', - 'blrWiFi', - 'blrWiFi', - 'blrWiFi', - 'blrWiFi', 'blrWiFi', ]; diff --git a/packages/icons/scripts/index.mjs b/packages/icons/scripts/index.mjs index 1f6a0e8ef..a4fa9a89e 100644 --- a/packages/icons/scripts/index.mjs +++ b/packages/icons/scripts/index.mjs @@ -20,13 +20,14 @@ fs.readdir(iconDir, (err, files) => { if (file.endsWith('.svg')) { const fileName = path.parse(file).name; const withPrefix = `blr${fileName}`; - const withoutSize = withPrefix.split('_')[0]; + const splitsWithoutSize = withPrefix.split('_').slice(0, -1); + const withoutSize = splitsWithoutSize.join('-'); const name = camelCase(withPrefix); const nameWithoutSize = camelCase(withoutSize); iconNames.push(name); - if (pureKeys.indexOf(nameWithoutSize) === -1) { + if (pureKeys.indexOf(`"${nameWithoutSize}"`) === -1) { pureKeys.push(`"${nameWithoutSize}"`); }