From bf7054eb06dcbb0c30a80322b3513e535325cc8e Mon Sep 17 00:00:00 2001 From: Tobias Date: Wed, 19 Dec 2018 08:02:09 +0100 Subject: [PATCH] fix: make icon lib fix due to figma draft edits --- .../group_essential_alert_alarm_bell.svg | 1 - .../icons/group_essential_delete_bin_1.svg | 1 - ...roup_essential_form_validation_check_1.svg | 1 - .../interface_essential_delete_bin_1.svg | 1 - .../scripts/figma/tasks/iconsConverter.js | 42 ++++++++++++------- packages/dnb-ui-lib/scripts/tools/index.js | 4 +- .../icons/group_essential_alert_alarm_bell.js | 25 ----------- .../src/icons/group_essential_delete_bin_1.js | 40 ------------------ ...group_essential_form_validation_check_1.js | 17 -------- packages/dnb-ui-lib/src/icons/icons.lock | 2 +- packages/dnb-ui-lib/src/icons/index.js | 8 ---- .../interface_essential_alert_alarm_bell.js | 5 --- .../icons/interface_essential_delete_bin_1.js | 5 --- ...rface_essential_form_validation_check_1.js | 5 --- .../dnb-ui-lib/src/icons/primary_icons.js | 2 - 15 files changed, 30 insertions(+), 129 deletions(-) delete mode 100644 packages/dnb-ui-lib/assets/icons/group_essential_alert_alarm_bell.svg delete mode 100644 packages/dnb-ui-lib/assets/icons/group_essential_delete_bin_1.svg delete mode 100644 packages/dnb-ui-lib/assets/icons/group_essential_form_validation_check_1.svg delete mode 100644 packages/dnb-ui-lib/assets/icons/interface_essential_delete_bin_1.svg delete mode 100644 packages/dnb-ui-lib/src/icons/group_essential_alert_alarm_bell.js delete mode 100644 packages/dnb-ui-lib/src/icons/group_essential_delete_bin_1.js delete mode 100644 packages/dnb-ui-lib/src/icons/group_essential_form_validation_check_1.js delete mode 100644 packages/dnb-ui-lib/src/icons/interface_essential_alert_alarm_bell.js delete mode 100644 packages/dnb-ui-lib/src/icons/interface_essential_delete_bin_1.js delete mode 100644 packages/dnb-ui-lib/src/icons/interface_essential_form_validation_check_1.js diff --git a/packages/dnb-ui-lib/assets/icons/group_essential_alert_alarm_bell.svg b/packages/dnb-ui-lib/assets/icons/group_essential_alert_alarm_bell.svg deleted file mode 100644 index f7cc136a6f9..00000000000 --- a/packages/dnb-ui-lib/assets/icons/group_essential_alert_alarm_bell.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/dnb-ui-lib/assets/icons/group_essential_delete_bin_1.svg b/packages/dnb-ui-lib/assets/icons/group_essential_delete_bin_1.svg deleted file mode 100644 index bb2702cf29e..00000000000 --- a/packages/dnb-ui-lib/assets/icons/group_essential_delete_bin_1.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/dnb-ui-lib/assets/icons/group_essential_form_validation_check_1.svg b/packages/dnb-ui-lib/assets/icons/group_essential_form_validation_check_1.svg deleted file mode 100644 index 6da1d8009fb..00000000000 --- a/packages/dnb-ui-lib/assets/icons/group_essential_form_validation_check_1.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/dnb-ui-lib/assets/icons/interface_essential_delete_bin_1.svg b/packages/dnb-ui-lib/assets/icons/interface_essential_delete_bin_1.svg deleted file mode 100644 index 586ecb76da5..00000000000 --- a/packages/dnb-ui-lib/assets/icons/interface_essential_delete_bin_1.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/dnb-ui-lib/scripts/figma/tasks/iconsConverter.js b/packages/dnb-ui-lib/scripts/figma/tasks/iconsConverter.js index 225a7103e04..ef61ce2925b 100644 --- a/packages/dnb-ui-lib/scripts/figma/tasks/iconsConverter.js +++ b/packages/dnb-ui-lib/scripts/figma/tasks/iconsConverter.js @@ -75,6 +75,9 @@ const runFrameIconsFactory = async ({ figmaFile, forceReconvert = null }) => { + if (/#skip/.test(frameDoc.name)) { + return undefined + } const frameId = frameDoc.id const originalFrameName = String(frameDoc.name).replace( /^[0-9]+[_\- ]/g, @@ -82,6 +85,17 @@ const runFrameIconsFactory = async ({ ) // because the frame name conains a number first const frameName = formatIconName(originalFrameName) + // split frameName, and use all after the selector/s as iconName additions + const iconNameAdditions = String(originalFrameName) + .split(sizeSeperator) + .slice(1) + .map(n => + String(n) + .trim() + .toLowerCase() + ) // remove space arround the names + .filter(n => n !== 'default') // we don't use default size once we save it to size + // select all icons in the frame const frameDocChildren = iconSelector ? findAllNodes(frameDoc, { name: new RegExp(iconSelector) }) @@ -89,9 +103,19 @@ const runFrameIconsFactory = async ({ // get a list of icons we want to refetch const iconIdsFromDoc = frameDocChildren.reduce((acc, { id, name }) => { - if (!/#skip/.test(name)) { - acc.push(id) + // skip adding the current icon + if (/#skip/.test(name)) { + return acc + } + + // also skip if there are too many underlines + const iconName = prepareIconName(name, iconNameAdditions) + if (iconName.split(/_/g).length > 3) { + return acc } + + // then add to the fetch list + acc.push(id) return acc }, []) @@ -114,9 +138,6 @@ const runFrameIconsFactory = async ({ const iconIdsToFetchFrom = iconIdsFromDoc.filter( refId => !listOfIconUrls.some(([id]) => id === refId) ) - // console.log('\n listOfIconUrls', listOfIconUrls) - // console.log('\niconIdsFromDoc', iconIdsFromDoc) - // console.log('\niconIdsToFetchFrom', iconIdsToFetchFrom) log.start( `> Figma: Starting to fetch ${ @@ -140,17 +161,6 @@ const runFrameIconsFactory = async ({ // my making shure it is in the current figma frame document .filter(([id]) => frameDocChildren.find(({ id: i }) => i === id)) - // split frameName, and use all after the selector/s as iconName additions - const iconNameAdditions = String(originalFrameName) - .split(sizeSeperator) - .slice(1) - .map(n => - String(n) - .trim() - .toLowerCase() - ) // remove space arround the names - .filter(n => n !== 'default') // we don't use default size once we save it to size - log.start( `> Figma: Starting to fetch process ${ listOfIconsToProcess.length diff --git a/packages/dnb-ui-lib/scripts/tools/index.js b/packages/dnb-ui-lib/scripts/tools/index.js index 92f8cbc54e3..1225503c2f1 100644 --- a/packages/dnb-ui-lib/scripts/tools/index.js +++ b/packages/dnb-ui-lib/scripts/tools/index.js @@ -7,7 +7,9 @@ export const asyncForEach = async (array, callback) => { let res = [] for (let i = 0, l = array.length; i < l; ++i) { const cur = await callback(array[i], i, array) - res = Array.isArray(res) ? res.concat(cur) : res.push(cur) + if (typeof cur !== 'undefined') { + res = res.concat(cur) + } } return res } diff --git a/packages/dnb-ui-lib/src/icons/group_essential_alert_alarm_bell.js b/packages/dnb-ui-lib/src/icons/group_essential_alert_alarm_bell.js deleted file mode 100644 index eab56e8a838..00000000000 --- a/packages/dnb-ui-lib/src/icons/group_essential_alert_alarm_bell.js +++ /dev/null @@ -1,25 +0,0 @@ -/** This file is auto generated by convertSvgToJsx.js */ - -import React from 'react' - -const group_essential_alert_alarm_bell = props => ( - - - - -) - -export default group_essential_alert_alarm_bell diff --git a/packages/dnb-ui-lib/src/icons/group_essential_delete_bin_1.js b/packages/dnb-ui-lib/src/icons/group_essential_delete_bin_1.js deleted file mode 100644 index 87690fea464..00000000000 --- a/packages/dnb-ui-lib/src/icons/group_essential_delete_bin_1.js +++ /dev/null @@ -1,40 +0,0 @@ -/** This file is auto generated by convertSvgToJsx.js */ - -import React from 'react' - -const group_essential_delete_bin_1 = props => ( - - - - - - -) - -export default group_essential_delete_bin_1 diff --git a/packages/dnb-ui-lib/src/icons/group_essential_form_validation_check_1.js b/packages/dnb-ui-lib/src/icons/group_essential_form_validation_check_1.js deleted file mode 100644 index b81e0e5e124..00000000000 --- a/packages/dnb-ui-lib/src/icons/group_essential_form_validation_check_1.js +++ /dev/null @@ -1,17 +0,0 @@ -/** This file is auto generated by convertSvgToJsx.js */ - -import React from 'react' - -const group_essential_form_validation_check_1 = props => ( - - - -) - -export default group_essential_form_validation_check_1 diff --git a/packages/dnb-ui-lib/src/icons/icons.lock b/packages/dnb-ui-lib/src/icons/icons.lock index 215157c7c92..b110c3b2d3e 100644 --- a/packages/dnb-ui-lib/src/icons/icons.lock +++ b/packages/dnb-ui-lib/src/icons/icons.lock @@ -1 +1 @@ -{"hamburger_medium.svg":{"id":"828:241","name":"hamburger","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/b34f/0117/842216e7e143d8bd9770122a441fdb85","slug":"cbf00246c3420b5729f9f7c025ecfbbb","frame":"secondary_icons_medium"},"fullscreen_medium.svg":{"id":"850:86","name":"fullscreen","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/38d9/2c12/ebf51e3d78168e554a41c76b305c7096","slug":"cbf00246c3420b5729f9f7c025ecfbbb","frame":"secondary_icons_medium"},"hamburger.svg":{"id":"548:105","name":"hamburger","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/8bc4/b485/3c69f0cd7e89d1b54bcae9acc76ff936","slug":"f76afaf9a754718646564d75921450b2","frame":"secondary_icons"},"fullscreen.svg":{"id":"850:85","name":"fullscreen","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/dc1f/14aa/65e7ca2a7393155c307df7430716e1f4","slug":"f76afaf9a754718646564d75921450b2","frame":"secondary_icons"},"exclamation_medium.svg":{"id":"828:256","name":"exclamation","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/5b44/cc7d/87cacf814895a20f6041d52eeff0515a","slug":"5f65bd20cf0e6825c8a5406e492ca23b","frame":"primary_icons_medium"},"check_medium.svg":{"id":"828:255","name":"check","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/e4e3/b557/09c486ecfcf8836c540e4aaf452dc4ab","slug":"5f65bd20cf0e6825c8a5406e492ca23b","frame":"primary_icons_medium"},"more_medium.svg":{"id":"828:254","name":"more","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/8fdb/7c0c/e991230311f77b0305d2da2a63c3207c","slug":"5f65bd20cf0e6825c8a5406e492ca23b","frame":"primary_icons_medium"},"bell_medium.svg":{"id":"828:253","name":"bell","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/6f52/0472/efb6b84bf09893668442c56150e75450","slug":"5f65bd20cf0e6825c8a5406e492ca23b","frame":"primary_icons_medium"},"search_medium.svg":{"id":"828:252","name":"search","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/fe62/b8ec/b2a8c8e2f49bc10cf12577fc399e32b9","slug":"5f65bd20cf0e6825c8a5406e492ca23b","frame":"primary_icons_medium"},"question_medium.svg":{"id":"828:251","name":"question","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/e654/18b0/84e49c2341646b89cd2176a879b8f31d","slug":"5f65bd20cf0e6825c8a5406e492ca23b","frame":"primary_icons_medium"},"calendar_medium.svg":{"id":"828:250","name":"calendar","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/7e67/f354/edd3994a1585187f65cdcd14acb3a288","slug":"5f65bd20cf0e6825c8a5406e492ca23b","frame":"primary_icons_medium"},"subtract_medium.svg":{"id":"828:249","name":"subtract","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/17b6/b7f4/2dc6218420ed4d0116c81964ebc943ce","slug":"5f65bd20cf0e6825c8a5406e492ca23b","frame":"primary_icons_medium"},"add_medium.svg":{"id":"828:248","name":"add","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/ac1f/f17e/df400a4c94cb6a5374d42ebdd2b3e9a9","slug":"5f65bd20cf0e6825c8a5406e492ca23b","frame":"primary_icons_medium"},"save_medium.svg":{"id":"828:247","name":"save","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/e29b/c92e/d3be44b4637ae4d727d7e57f247efc34","slug":"5f65bd20cf0e6825c8a5406e492ca23b","frame":"primary_icons_medium"},"close_medium.svg":{"id":"828:246","name":"close","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/8ee2/d6c3/78b15fd1d54071094116bea360a7873c","slug":"5f65bd20cf0e6825c8a5406e492ca23b","frame":"primary_icons_medium"},"chevron_left_medium.svg":{"id":"828:245","name":"chevron-left","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/3f2c/f909/1c2804eb5dff13d14f2dc24c1659ef78","slug":"5f65bd20cf0e6825c8a5406e492ca23b","frame":"primary_icons_medium"},"chevron_right_medium.svg":{"id":"828:244","name":"chevron-right","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/370e/1ab4/7d39a36b108e201eb053ef445c8c1a91","slug":"5f65bd20cf0e6825c8a5406e492ca23b","frame":"primary_icons_medium"},"chevron_down_medium.svg":{"id":"828:243","name":"chevron-down","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/0da4/2a7e/5bb7a294d0a27376ceca941b45da6ced","slug":"5f65bd20cf0e6825c8a5406e492ca23b","frame":"primary_icons_medium"},"chevron_up_medium.svg":{"id":"1391:12","name":"chevron-up","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/05f7/6354/b56e4cf2ab4bae16697d6903f51b4d08","slug":"5f65bd20cf0e6825c8a5406e492ca23b","frame":"primary_icons_medium"},"exclamation.svg":{"id":"548:84","name":"exclamation","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/e132/1e83/7920a77924428f83e9c2b685a79258f3","slug":"3d7caaada55565874ee26b98b982b9db","frame":"primary_icons"},"check.svg":{"id":"548:89","name":"check","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/5130/1d28/9437771571465d0d0d25dbdae29b592b","slug":"3d7caaada55565874ee26b98b982b9db","frame":"primary_icons"},"more.svg":{"id":"548:93","name":"more","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/42c1/6ccd/51769969a56c9eb303f9f299445924a9","slug":"3d7caaada55565874ee26b98b982b9db","frame":"primary_icons"},"bell.svg":{"id":"548:113","name":"bell","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/e8f9/35d1/83ea1b7b0770515f27bee67c4131934c","slug":"3d7caaada55565874ee26b98b982b9db","frame":"primary_icons"},"search.svg":{"id":"548:117","name":"search","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/e6a6/f567/15ab80c351b5a3ff4d11eadb33a2bbf9","slug":"3d7caaada55565874ee26b98b982b9db","frame":"primary_icons"},"question.svg":{"id":"548:121","name":"question","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/02a2/5fef/ea6e6aef3fc4b501823f48354c22baf5","slug":"3d7caaada55565874ee26b98b982b9db","frame":"primary_icons"},"calendar.svg":{"id":"548:125","name":"calendar","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/66ef/1f92/3057ca501b9d10b0b382984033e095d2","slug":"3d7caaada55565874ee26b98b982b9db","frame":"primary_icons"},"subtract.svg":{"id":"548:132","name":"subtract","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/32cd/532a/48477f664a740e7f7becac07a2c217c8","slug":"3d7caaada55565874ee26b98b982b9db","frame":"primary_icons"},"add.svg":{"id":"548:135","name":"add","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/bc67/48d8/67273337a670189dd9ad0011ed7ea041","slug":"3d7caaada55565874ee26b98b982b9db","frame":"primary_icons"},"save.svg":{"id":"548:139","name":"save","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/df7d/1585/26e0f7d9aac87a0651d292e0be52b3fb","slug":"3d7caaada55565874ee26b98b982b9db","frame":"primary_icons"},"close.svg":{"id":"548:144","name":"close","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/d937/00b1/408f10f8b38c1f8b0001b94f1af56875","slug":"3d7caaada55565874ee26b98b982b9db","frame":"primary_icons"},"chevron_left.svg":{"id":"548:148","name":"chevron-left","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/1fe5/c93c/dd7d73ab0e453e8edab8e8265467b327","slug":"3d7caaada55565874ee26b98b982b9db","frame":"primary_icons"},"chevron_right.svg":{"id":"548:152","name":"chevron-right","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/d079/e314/8165adacf23f74690eac6de0e04e1790","slug":"3d7caaada55565874ee26b98b982b9db","frame":"primary_icons"},"chevron_up.svg":{"id":"1161:403","name":"chevron-up","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/aeb2/85e4/208f15da523d0ec834bd358b9291c979","slug":"3d7caaada55565874ee26b98b982b9db","frame":"primary_icons"},"chevron_down.svg":{"id":"548:156","name":"chevron-down","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/3168/b23d/938ddb61a27402e0a219791bd601eeb6","slug":"3d7caaada55565874ee26b98b982b9db","frame":"primary_icons"},"interface_essential_delete_bin_1.svg":{"id":"1904:60","name":"Interface-Essential / Delete / bin-1","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/44f5/62fe/c44190c78786be316c2d6659de3f77de","slug":"3d7caaada55565874ee26b98b982b9db","frame":"primary_icons","timestamp":1545169950967},"group_essential_delete_bin_1.svg":{"id":"1904:61","name":"Group","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/e53a/0036/830cee584105f891e77d6f0600e0b6c3","slug":"2aa88d5774005d6ac5cfff0cacb3f7e3","frame":"interface_essential_delete_bin_1","timestamp":1545169970602},"group_essential_form_validation_check_1.svg":{"id":"1904:85","name":"Group","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/7f77/31ac/ca07ec7c9d51d27288dc8321e01656a2","slug":"2ff4ea9d2118a84c295f575591c5da0c","frame":"interface_essential_form_validation_check_1","timestamp":1545169971727},"group_essential_alert_alarm_bell.svg":{"id":"1904:89","name":"Group","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/d1b0/10e7/e44500cabb71b3a2b00f707c280a9d4a","slug":"19ddb950897b598a9ba05ef9a61ca7dc","frame":"interface_essential_alert_alarm_bell","timestamp":1545169974313}} \ No newline at end of file +{"hamburger_medium.svg":{"id":"828:241","name":"hamburger","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/b34f/0117/842216e7e143d8bd9770122a441fdb85","slug":"cbf00246c3420b5729f9f7c025ecfbbb","frame":"secondary_icons_medium","timestamp":1545202745029},"fullscreen_medium.svg":{"id":"850:86","name":"fullscreen","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/38d9/2c12/ebf51e3d78168e554a41c76b305c7096","slug":"cbf00246c3420b5729f9f7c025ecfbbb","frame":"secondary_icons_medium","timestamp":1545202745825},"hamburger.svg":{"id":"548:105","name":"hamburger","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/8bc4/b485/3c69f0cd7e89d1b54bcae9acc76ff936","slug":"f76afaf9a754718646564d75921450b2","frame":"secondary_icons","timestamp":1545202776477},"fullscreen.svg":{"id":"850:85","name":"fullscreen","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/dc1f/14aa/65e7ca2a7393155c307df7430716e1f4","slug":"f76afaf9a754718646564d75921450b2","frame":"secondary_icons","timestamp":1545202777371},"exclamation_medium.svg":{"id":"828:256","name":"exclamation","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/5b44/cc7d/87cacf814895a20f6041d52eeff0515a","slug":"5f65bd20cf0e6825c8a5406e492ca23b","frame":"primary_icons_medium","timestamp":1545202779048},"check_medium.svg":{"id":"828:255","name":"check","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/e4e3/b557/09c486ecfcf8836c540e4aaf452dc4ab","slug":"5f65bd20cf0e6825c8a5406e492ca23b","frame":"primary_icons_medium","timestamp":1545202779839},"more_medium.svg":{"id":"828:254","name":"more","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/8fdb/7c0c/e991230311f77b0305d2da2a63c3207c","slug":"5f65bd20cf0e6825c8a5406e492ca23b","frame":"primary_icons_medium","timestamp":1545202780619},"bell_medium.svg":{"id":"828:253","name":"bell","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/6f52/0472/efb6b84bf09893668442c56150e75450","slug":"5f65bd20cf0e6825c8a5406e492ca23b","frame":"primary_icons_medium","timestamp":1545202781463},"search_medium.svg":{"id":"828:252","name":"search","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/fe62/b8ec/b2a8c8e2f49bc10cf12577fc399e32b9","slug":"5f65bd20cf0e6825c8a5406e492ca23b","frame":"primary_icons_medium","timestamp":1545202782246},"question_medium.svg":{"id":"828:251","name":"question","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/e654/18b0/84e49c2341646b89cd2176a879b8f31d","slug":"5f65bd20cf0e6825c8a5406e492ca23b","frame":"primary_icons_medium","timestamp":1545202783095},"calendar_medium.svg":{"id":"828:250","name":"calendar","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/7e67/f354/edd3994a1585187f65cdcd14acb3a288","slug":"5f65bd20cf0e6825c8a5406e492ca23b","frame":"primary_icons_medium","timestamp":1545202783913},"subtract_medium.svg":{"id":"828:249","name":"subtract","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/17b6/b7f4/2dc6218420ed4d0116c81964ebc943ce","slug":"5f65bd20cf0e6825c8a5406e492ca23b","frame":"primary_icons_medium","timestamp":1545202784688},"add_medium.svg":{"id":"828:248","name":"add","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/ac1f/f17e/df400a4c94cb6a5374d42ebdd2b3e9a9","slug":"5f65bd20cf0e6825c8a5406e492ca23b","frame":"primary_icons_medium","timestamp":1545202785524},"save_medium.svg":{"id":"828:247","name":"save","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/e29b/c92e/d3be44b4637ae4d727d7e57f247efc34","slug":"5f65bd20cf0e6825c8a5406e492ca23b","frame":"primary_icons_medium","timestamp":1545202786305},"close_medium.svg":{"id":"828:246","name":"close","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/8ee2/d6c3/78b15fd1d54071094116bea360a7873c","slug":"5f65bd20cf0e6825c8a5406e492ca23b","frame":"primary_icons_medium","timestamp":1545202787067},"chevron_left_medium.svg":{"id":"828:245","name":"chevron-left","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/3f2c/f909/1c2804eb5dff13d14f2dc24c1659ef78","slug":"5f65bd20cf0e6825c8a5406e492ca23b","frame":"primary_icons_medium","timestamp":1545202787951},"chevron_right_medium.svg":{"id":"828:244","name":"chevron-right","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/370e/1ab4/7d39a36b108e201eb053ef445c8c1a91","slug":"5f65bd20cf0e6825c8a5406e492ca23b","frame":"primary_icons_medium","timestamp":1545202788745},"chevron_down_medium.svg":{"id":"828:243","name":"chevron-down","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/0da4/2a7e/5bb7a294d0a27376ceca941b45da6ced","slug":"5f65bd20cf0e6825c8a5406e492ca23b","frame":"primary_icons_medium","timestamp":1545202789562},"chevron_up_medium.svg":{"id":"1391:12","name":"chevron-up","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/05f7/6354/b56e4cf2ab4bae16697d6903f51b4d08","slug":"5f65bd20cf0e6825c8a5406e492ca23b","frame":"primary_icons_medium","timestamp":1545202790362},"exclamation.svg":{"id":"548:84","name":"exclamation","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/e132/1e83/7920a77924428f83e9c2b685a79258f3","slug":"3d7caaada55565874ee26b98b982b9db","frame":"primary_icons","timestamp":1545202792202},"check.svg":{"id":"548:89","name":"check","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/5130/1d28/9437771571465d0d0d25dbdae29b592b","slug":"3d7caaada55565874ee26b98b982b9db","frame":"primary_icons","timestamp":1545202793024},"more.svg":{"id":"548:93","name":"more","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/42c1/6ccd/51769969a56c9eb303f9f299445924a9","slug":"3d7caaada55565874ee26b98b982b9db","frame":"primary_icons","timestamp":1545202793821},"bell.svg":{"id":"548:113","name":"bell","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/e8f9/35d1/83ea1b7b0770515f27bee67c4131934c","slug":"3d7caaada55565874ee26b98b982b9db","frame":"primary_icons","timestamp":1545202794624},"search.svg":{"id":"548:117","name":"search","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/e6a6/f567/15ab80c351b5a3ff4d11eadb33a2bbf9","slug":"3d7caaada55565874ee26b98b982b9db","frame":"primary_icons","timestamp":1545202795491},"question.svg":{"id":"548:121","name":"question","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/02a2/5fef/ea6e6aef3fc4b501823f48354c22baf5","slug":"3d7caaada55565874ee26b98b982b9db","frame":"primary_icons","timestamp":1545202796306},"calendar.svg":{"id":"548:125","name":"calendar","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/66ef/1f92/3057ca501b9d10b0b382984033e095d2","slug":"3d7caaada55565874ee26b98b982b9db","frame":"primary_icons","timestamp":1545202797128},"subtract.svg":{"id":"548:132","name":"subtract","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/32cd/532a/48477f664a740e7f7becac07a2c217c8","slug":"3d7caaada55565874ee26b98b982b9db","frame":"primary_icons","timestamp":1545202797883},"add.svg":{"id":"548:135","name":"add","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/bc67/48d8/67273337a670189dd9ad0011ed7ea041","slug":"3d7caaada55565874ee26b98b982b9db","frame":"primary_icons","timestamp":1545202798684},"save.svg":{"id":"548:139","name":"save","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/df7d/1585/26e0f7d9aac87a0651d292e0be52b3fb","slug":"3d7caaada55565874ee26b98b982b9db","frame":"primary_icons","timestamp":1545202799461},"close.svg":{"id":"548:144","name":"close","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/d937/00b1/408f10f8b38c1f8b0001b94f1af56875","slug":"3d7caaada55565874ee26b98b982b9db","frame":"primary_icons","timestamp":1545202800360},"chevron_left.svg":{"id":"548:148","name":"chevron-left","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/1fe5/c93c/dd7d73ab0e453e8edab8e8265467b327","slug":"3d7caaada55565874ee26b98b982b9db","frame":"primary_icons","timestamp":1545202801211},"chevron_right.svg":{"id":"548:152","name":"chevron-right","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/d079/e314/8165adacf23f74690eac6de0e04e1790","slug":"3d7caaada55565874ee26b98b982b9db","frame":"primary_icons","timestamp":1545202802030},"chevron_up.svg":{"id":"1161:403","name":"chevron-up","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/aeb2/85e4/208f15da523d0ec834bd358b9291c979","slug":"3d7caaada55565874ee26b98b982b9db","frame":"primary_icons","timestamp":1545202802806},"chevron_down.svg":{"id":"548:156","name":"chevron-down","url":"https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/3168/b23d/938ddb61a27402e0a219791bd601eeb6","slug":"3d7caaada55565874ee26b98b982b9db","frame":"primary_icons","timestamp":1545202803586}} \ No newline at end of file diff --git a/packages/dnb-ui-lib/src/icons/index.js b/packages/dnb-ui-lib/src/icons/index.js index e3ab9746c8f..0db57e22212 100644 --- a/packages/dnb-ui-lib/src/icons/index.js +++ b/packages/dnb-ui-lib/src/icons/index.js @@ -22,12 +22,8 @@ import exclamation from './exclamation.js' import exclamation_medium from './exclamation_medium.js' import fullscreen from './fullscreen.js' import fullscreen_medium from './fullscreen_medium.js' -import group_essential_alert_alarm_bell from './group_essential_alert_alarm_bell.js' -import group_essential_delete_bin_1 from './group_essential_delete_bin_1.js' -import group_essential_form_validation_check_1 from './group_essential_form_validation_check_1.js' import hamburger from './hamburger.js' import hamburger_medium from './hamburger_medium.js' -import interface_essential_delete_bin_1 from './interface_essential_delete_bin_1.js' import more from './more.js' import more_medium from './more_medium.js' import question from './question.js' @@ -62,12 +58,8 @@ export { exclamation_medium, fullscreen, fullscreen_medium, - group_essential_alert_alarm_bell, - group_essential_delete_bin_1, - group_essential_form_validation_check_1, hamburger, hamburger_medium, - interface_essential_delete_bin_1, more, more_medium, question, diff --git a/packages/dnb-ui-lib/src/icons/interface_essential_alert_alarm_bell.js b/packages/dnb-ui-lib/src/icons/interface_essential_alert_alarm_bell.js deleted file mode 100644 index 41dd2011249..00000000000 --- a/packages/dnb-ui-lib/src/icons/interface_essential_alert_alarm_bell.js +++ /dev/null @@ -1,5 +0,0 @@ -/** This file is auto generated by convertSvgToJsx.js */ - -import group_essential_alert_alarm_bell from './group_essential_alert_alarm_bell.js' - -export { group_essential_alert_alarm_bell } diff --git a/packages/dnb-ui-lib/src/icons/interface_essential_delete_bin_1.js b/packages/dnb-ui-lib/src/icons/interface_essential_delete_bin_1.js deleted file mode 100644 index e704af0bdff..00000000000 --- a/packages/dnb-ui-lib/src/icons/interface_essential_delete_bin_1.js +++ /dev/null @@ -1,5 +0,0 @@ -/** This file is auto generated by convertSvgToJsx.js */ - -import group_essential_delete_bin_1 from './group_essential_delete_bin_1.js' - -export { group_essential_delete_bin_1 } diff --git a/packages/dnb-ui-lib/src/icons/interface_essential_form_validation_check_1.js b/packages/dnb-ui-lib/src/icons/interface_essential_form_validation_check_1.js deleted file mode 100644 index bfffaa72090..00000000000 --- a/packages/dnb-ui-lib/src/icons/interface_essential_form_validation_check_1.js +++ /dev/null @@ -1,5 +0,0 @@ -/** This file is auto generated by convertSvgToJsx.js */ - -import group_essential_form_validation_check_1 from './group_essential_form_validation_check_1.js' - -export { group_essential_form_validation_check_1 } diff --git a/packages/dnb-ui-lib/src/icons/primary_icons.js b/packages/dnb-ui-lib/src/icons/primary_icons.js index 38adf1cc542..c5381577e79 100644 --- a/packages/dnb-ui-lib/src/icons/primary_icons.js +++ b/packages/dnb-ui-lib/src/icons/primary_icons.js @@ -10,7 +10,6 @@ import chevron_right from './chevron_right.js' import chevron_up from './chevron_up.js' import close from './close.js' import exclamation from './exclamation.js' -import interface_essential_delete_bin_1 from './interface_essential_delete_bin_1.js' import more from './more.js' import question from './question.js' import save from './save.js' @@ -28,7 +27,6 @@ export { chevron_up, close, exclamation, - interface_essential_delete_bin_1, more, question, save,