@gitlab/svgs 3.129.0 → 3.131.0

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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "illustrationCount": 419,
2
+ "illustrationCount": 433,
3
3
  "illustrations": [
4
4
  {
5
5
  "name": "sprite_icons/abuse.svg",
@@ -1665,6 +1665,62 @@
1665
1665
  "name": "sprite_icons/weight.svg",
1666
1666
  "size": 355
1667
1667
  },
1668
+ {
1669
+ "name": "sprite_icons/work-item-enhancement.svg",
1670
+ "size": 714
1671
+ },
1672
+ {
1673
+ "name": "sprite_icons/work-item-epic.svg",
1674
+ "size": 483
1675
+ },
1676
+ {
1677
+ "name": "sprite_icons/work-item-feature-flag.svg",
1678
+ "size": 342
1679
+ },
1680
+ {
1681
+ "name": "sprite_icons/work-item-feature.svg",
1682
+ "size": 650
1683
+ },
1684
+ {
1685
+ "name": "sprite_icons/work-item-incident.svg",
1686
+ "size": 393
1687
+ },
1688
+ {
1689
+ "name": "sprite_icons/work-item-issue.svg",
1690
+ "size": 361
1691
+ },
1692
+ {
1693
+ "name": "sprite_icons/work-item-keyresult.svg",
1694
+ "size": 349
1695
+ },
1696
+ {
1697
+ "name": "sprite_icons/work-item-maintenance.svg",
1698
+ "size": 866
1699
+ },
1700
+ {
1701
+ "name": "sprite_icons/work-item-new.svg",
1702
+ "size": 547
1703
+ },
1704
+ {
1705
+ "name": "sprite_icons/work-item-objective.svg",
1706
+ "size": 1269
1707
+ },
1708
+ {
1709
+ "name": "sprite_icons/work-item-requirement.svg",
1710
+ "size": 565
1711
+ },
1712
+ {
1713
+ "name": "sprite_icons/work-item-task.svg",
1714
+ "size": 427
1715
+ },
1716
+ {
1717
+ "name": "sprite_icons/work-item-test-case.svg",
1718
+ "size": 336
1719
+ },
1720
+ {
1721
+ "name": "sprite_icons/work-item-ticket.svg",
1722
+ "size": 409
1723
+ },
1668
1724
  {
1669
1725
  "name": "sprite_icons/work-items.svg",
1670
1726
  "size": 403
@@ -0,0 +1 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M8.37 4.578a1 1 0 011.26 0l.077.068 1.646 1.647.069.076a1 1 0 010 1.262l-.069.076-7.99 7.99a1 1 0 01-1.338.069l-.076-.069-1.646-1.646a1 1 0 010-1.414l7.99-7.99.076-.069zm-6.653 8.766l.94.94L6.938 10 6 9.06l-4.282 4.284zM11.22 9.22a.75.75 0 011.06 0l1.5 1.5a.75.75 0 01-1.06 1.06l-1.5-1.5a.75.75 0 010-1.06zM7.06 8l.94.94L9.94 7 9 6.06 7.06 8zm8.19-1.75a.75.75 0 010 1.5h-1.5a.75.75 0 010-1.5h1.5zM4.22 2.22a.75.75 0 011.06 0l1.5 1.5a.75.75 0 11-1.06 1.06l-1.5-1.5a.75.75 0 010-1.06zm8.5 0a.75.75 0 011.06 1.06l-1.5 1.5a.75.75 0 01-1.06-1.06l1.5-1.5zM9 0a.75.75 0 01.75.75v1.5a.75.75 0 01-1.5 0V.75A.75.75 0 019 0z"/></svg>
@@ -0,0 +1 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M12.482 1.01c.343.052.639.28.775.605l2.628 6.308a1.5 1.5 0 01-1.189 2.064L14.5 10h-13v.75c0 .138.112.25.25.25h12l.077.004a.75.75 0 010 1.492l-.077.004H3.5v.75c0 .138.112.25.25.25h8.5a.75.75 0 010 1.5h-8.5A1.75 1.75 0 012 13.25v-.75h-.25A1.75 1.75 0 010 10.75V8.436c.005-.108.022-.218.052-.327l.063-.186 2.628-6.308a1 1 0 01.775-.604L3.667 1h8.666l.15.01zM1.5 8.5h13l-2.5-6H4l-2.5 6z"/></svg>
@@ -0,0 +1 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M1 2c4.7-3.6 9.3 3.6 14 0v9c-4.199 3.216-8.318-2.187-12.5-.809v4.06a.75.75 0 01-1.5 0V2zm6.459 1.4C5.311 2.568 3.893 2.094 2.5 2.814v5.819c2.265-.546 4.413.338 6.041.969 2.148.831 3.566 1.304 4.959.584v-5.82c-2.265.546-4.413-.336-6.041-.966z"/></svg>
@@ -0,0 +1 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M8 0a8 8 0 110 16A8 8 0 018 0zm0 1.5a6.5 6.5 0 100 13 6.5 6.5 0 000-13zm0 1.25a.75.75 0 01.688.451l1.045 2.412 2.618.25a.75.75 0 01.425 1.309l-1.971 1.74.572 2.565a.75.75 0 01-1.113.81L8 10.948l-2.264 1.337a.75.75 0 01-1.113-.809l.571-2.565-1.97-1.74a.75.75 0 01.425-1.309l2.617-.25L7.312 3.2l.051-.097A.75.75 0 018 2.75zm-.534 3.866a.75.75 0 01-.616.448l-1.336.127 1.006.89a.75.75 0 01.235.725l-.292 1.31 1.156-.682.09-.046a.75.75 0 01.672.046l1.155.681-.29-1.31a.75.75 0 01.234-.725l1.005-.889-1.335-.127a.75.75 0 01-.616-.448L8 5.385l-.534 1.231z"/></svg>
@@ -0,0 +1 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M12.154 1.254A3 3 0 0115 4.25v8a3 3 0 01-3 3H4a3 3 0 01-3-3v-8a3 3 0 013-3h8l.154.004zM4 2.75a1.5 1.5 0 00-1.5 1.5v8a1.5 1.5 0 001.5 1.5h8a1.5 1.5 0 001.5-1.5v-8a1.5 1.5 0 00-1.347-1.492L12 2.75H4zM8 10a1 1 0 110 2 1 1 0 010-2zm0-5.5a.75.75 0 01.75.75v3a.75.75 0 01-1.5 0v-3A.75.75 0 018 4.5z"/></svg>
@@ -0,0 +1 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11.204 1.01A2 2 0 0113 3v10l-.01.204a2 2 0 01-1.786 1.785L11 15H5l-.204-.01a2 2 0 01-1.785-1.786L3 13V3a2 2 0 011.796-1.99L5 1h6l.204.01zM5 2.5a.5.5 0 00-.5.5v10a.5.5 0 00.5.5h6a.5.5 0 00.5-.5V3a.5.5 0 00-.5-.5H5zM9.5 4a.75.75 0 010 1.5h-3a.75.75 0 010-1.5h3z"/></svg>
@@ -0,0 +1 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M15 5.25a.75.75 0 01-1.5 0V3.56L9 8.06v3.19a.75.75 0 01-.22.53l-3 3a.75.75 0 01-1.28-.53V11.5H1.75a.75.75 0 01-.53-1.28l3-3A.75.75 0 014.75 7h3.19l4.5-4.5h-1.69a.75.75 0 010-1.5H15v4.25zM3.56 10H6v2.44l1.5-1.5V8.558l-.03-.028-.027-.03H5.06L3.56 10z"/></svg>
@@ -0,0 +1 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11.443 1.005a3.75 3.75 0 010 7.49l-.193.005c-.217 0-.429-.021-.635-.057L10.06 9l.941.94 1-1 2.405 2.406.149.164a2.165 2.165 0 01-3.045 3.045l-.164-.149L8.939 12l1-1-.94-.94-4.344 4.345a2.164 2.164 0 01-2.896.149l-.164-.149a2.164 2.164 0 010-3.06l4.343-4.346L3.5 4.561l-.616.616-.508-.761-1-1.5-.34-.512 1.368-1.369.512.341 1.5 1 .76.508-.615.616 2.438 2.438.557-.556A3.75 3.75 0 0111.25 1l.193.005zM11.25 2.5a2.25 2.25 0 00-2.153 2.903l.13.43-.318.317-6.254 6.255a.666.666 0 000 .94l.105.085c.257.17.608.142.835-.085L9.849 7.09l.317-.318.43.13c.209.063.428.098.654.098l.23-.012a2.25 2.25 0 001.798-3.207l-1.498 1.5a.75.75 0 01-1.06-1.061l1.498-1.5a2.233 2.233 0 00-.738-.208l-.23-.012zm-.19 9.5l1.345 1.345.105.085a.664.664 0 00.92-.92l-.085-.105L12 11.06l-.94.94z"/></svg>
@@ -0,0 +1 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11 0a2 2 0 012 2v3.25a.75.75 0 01-1.5 0V2a.5.5 0 00-.5-.5H6a.5.5 0 00-.5.5v8a.5.5 0 00.5.5h1.25a.75.75 0 010 1.5H6a2 2 0 01-2-2V5.5H3a.5.5 0 00-.5.5v8a.5.5 0 00.5.5h5a.5.5 0 00.5-.5v-.25a.75.75 0 011.5 0V14a2 2 0 01-2 2H3a2 2 0 01-2-2V6a2 2 0 012-2h1V2a2 2 0 012-2h5zm2 8a.75.75 0 01.75.75v1.5h1.5a.75.75 0 010 1.5h-1.5v1.5a.75.75 0 01-1.5 0v-1.5h-1.5a.75.75 0 010-1.5h1.5v-1.5A.75.75 0 0113 8zM9.75 3a.75.75 0 010 1.5h-2.5a.75.75 0 010-1.5h2.5z"/></svg>
@@ -0,0 +1 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M4.358.877a8 8 0 014.47-.834.75.75 0 01-.155 1.492 6.5 6.5 0 00-3.632.678l-.222.118A6.5 6.5 0 002.244 4.98l-.112.225a6.5 6.5 0 001.272 7.392l.18.174a6.502 6.502 0 003.314 1.636l.248.037a6.5 6.5 0 003.65-.576l.224-.112a6.5 6.5 0 003.445-6.43l.746-.077.746-.078a8.002 8.002 0 01-4.24 7.913l-.276.138a7.998 7.998 0 01-4.492.709l-.306-.047a8 8 0 01-4.077-2.012l-.222-.214A8 8 0 01.777 4.56l.139-.276a8 8 0 013.17-3.26l.272-.147zM12.22.22a.75.75 0 011.28.53V2.5h1.75l.112.01a.75.75 0 01.491 1.186l-.073.085-3 3a.75.75 0 01-.53.22h-.38a4 4 0 01.11 1.404l-.044.305a4 4 0 01-2.982 3.175l-.303.062a4 4 0 01-2.111-.223l-.283-.123a4 4 0 01-1.597-1.4l-.16-.264a4 4 0 01-.477-2.371l.046-.306a4 4 0 01.933-1.907l.213-.224a4 4 0 011.861-1.02l.076-.015a.75.75 0 01.27 1.474l-.185.051a2.5 2.5 0 00-.978.587l-.133.139c-.3.338-.5.751-.583 1.192l-.029.192a2.501 2.501 0 00.298 1.482l.1.165a2.5 2.5 0 00.998.874l.177.078a2.5 2.5 0 001.32.14l.189-.04a2.5 2.5 0 001.864-1.984l.027-.19A2.5 2.5 0 0010.29 7h-.23L8.53 8.53a.75.75 0 11-1.06-1.06L9 5.94V3.75c0-.199.079-.39.22-.53l3-3zm2.913 6.283a.75.75 0 01.824.668l-1.492.155a.75.75 0 01.668-.823zM10.5 4.061V5.5h1.44l1.5-1.5H12V2.56l-1.5 1.5z"/></svg>
@@ -0,0 +1 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13 1a2 2 0 012 2v6.25a.75.75 0 01-1.5 0V3a.5.5 0 00-.5-.5H3a.5.5 0 00-.5.5v10a.5.5 0 00.5.5h5.25a.75.75 0 010 1.5H3a2 2 0 01-2-2V3a2 2 0 012-2h10zm1.22 10.22a.75.75 0 111.06 1.06l-2.5 2.5a.75.75 0 01-.946.094l-.114-.094-1-1-.052-.056a.75.75 0 011.056-1.056l.056.052.47.47 1.97-1.97zm-5.893-.716a.75.75 0 010 1.492L8.25 12h-3.5a.75.75 0 010-1.5h3.5l.077.004zM11.25 7.25a.75.75 0 010 1.5h-6.5a.75.75 0 010-1.5h6.5zm0-3.25a.75.75 0 010 1.5h-6.5a.75.75 0 010-1.5h6.5z"/></svg>
@@ -0,0 +1 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.25 9a.75.75 0 01.75.75V12a3 3 0 01-3 3H4a3 3 0 01-3-3V9.75a.75.75 0 011.5 0V12A1.5 1.5 0 004 13.5h8a1.5 1.5 0 001.5-1.5V9.75a.75.75 0 01.75-.75zm-1.474-6.682a.75.75 0 011.056 1.056l-.052.057-6.096 6.096a.751.751 0 01-.955.088l-.115-.096-2.403-2.484-.05-.057A.75.75 0 015.232 5.94l.056.052 1.873 1.935L12.72 2.37l.056-.052z"/></svg>
@@ -0,0 +1 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M12.327.004a.75.75 0 010 1.492l-.077.004H12V12a4 4 0 01-7.995.206L4 12V1.5h-.25a.75.75 0 010-1.5h8.5l.077.004zM5.5 12l.013.256A2.5 2.5 0 0010.5 12v-.5H8.75a.75.75 0 010-1.5h1.75V8.5H8.75a.75.75 0 010-1.5h1.75V5.5h-5V12zm0-8h5V1.5h-5V4z"/></svg>
@@ -0,0 +1 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11.94 1.94a1.5 1.5 0 002.12 2.12L16 6 6 16l-1.94-1.94a1.5 1.5 0 00-2.12-2.12L0 10 10 0l1.94 1.94zM2.12 10l.105.104A3 3 0 016 13c0 .268-.04.526-.105.773L6 13.88l4.41-4.41-3.88-3.878L2.121 10zm5.47-5.47l3.879 3.88L13.879 6l-.106-.105A2.99 2.99 0 0113 6a3 3 0 01-3-3c0-.268.038-.527.104-.774L10 2.12 7.59 4.53z"/></svg>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/svgs",
3
- "version": "3.129.0",
3
+ "version": "3.131.0",
4
4
  "description": "SVG Assets for GitLab",
5
5
  "main": "./index.js",
6
6
  "repository": "git@gitlab.com:gitlab-org/gitlab-svgs.git",
@@ -18,7 +18,7 @@
18
18
  "devDependencies": {
19
19
  "@arkweid/lefthook": "^0.7.7",
20
20
  "@gitlab/eslint-plugin": "20.7.1",
21
- "@gitlab/svgs": "^3.128.0",
21
+ "@gitlab/svgs": "^3.129.0",
22
22
  "@gitlab/ui": "^113.3.2",
23
23
  "@nuxtjs/tailwindcss": "6.11.4",
24
24
  "dompurify": "^3.2.4",
@@ -339,6 +339,16 @@ const fileExtensionIcons = {
339
339
  cu: 'cuda',
340
340
  cuh: 'cuda',
341
341
  log: 'log',
342
+ 'code-workplace': 'vscode',
343
+ '7z': 'zip',
344
+ 'c++': 'cpp',
345
+ 'vbox-prev': 'virtual',
346
+ 'ng-template': 'angular',
347
+ 'YAML-tmLanguage': 'yaml',
348
+ };
349
+
350
+ const threeFileExtensionIcons = {
351
+ 'sln.dotsettings.user': 'settings',
342
352
  };
343
353
 
344
354
  const twoFileExtensionIcons = {
@@ -348,16 +358,10 @@ const twoFileExtensionIcons = {
348
358
  'mdown.rendered': 'markdown',
349
359
  'mkd.rendered': 'markdown',
350
360
  'mkdn.rendered': 'markdown',
351
- 'YAML-tmLanguage': 'yaml',
352
361
  'sln.dotsettings': 'settings',
353
- 'sln.dotsettings.user': 'settings',
354
362
  'd.dts': 'typescript-def',
355
363
  'd.mts': 'typescript-def',
356
364
  'd.ts': 'typescript-def',
357
- 'code-workplace': 'vscode',
358
- '7z': 'zip',
359
- 'c++': 'cpp',
360
- 'vbox-prev': 'virtual',
361
365
  'js.map': 'javascript-map',
362
366
  'css.map': 'css-map',
363
367
  'spec.ts': 'test-ts',
@@ -372,11 +376,8 @@ const twoFileExtensionIcons = {
372
376
  'spec.js': 'test-js',
373
377
  'test.js': 'test-js',
374
378
  'js.snap': 'test-js',
375
- // 'routing.ts': 'angular-routing',
376
- // 'routing.js': 'angular-routing',
377
379
  'module.ts': 'angular',
378
380
  'module.js': 'angular',
379
- 'ng-template': 'angular',
380
381
  'component.ts': 'angular-component',
381
382
  'component.js': 'angular-component',
382
383
  'guard.ts': 'angular-guard',
@@ -602,18 +603,35 @@ const fileNameIcons = {
602
603
  '.prettierrc.yml': 'prettier',
603
604
  '.prettierignore': 'prettier',
604
605
  'nodemon.json': 'nodemon',
605
- // '.sonarrc': 'sonar',
606
606
  browserslist: 'browserlist',
607
607
  '.browserslistrc': 'browserlist',
608
608
  '.snyk': 'snyk',
609
609
  '.drone.yml': 'drone',
610
610
  };
611
611
 
612
- function getIconForFile(name) {
612
+ const getPosition = (array, depth) => {
613
+ const index = array.length - depth;
614
+ if (!(index in array)) return undefined;
615
+ // + 1 skips the dot character
616
+ return array[index] + 1;
617
+ };
618
+
619
+ const getDeepExtensionIcon = (table, name, position) => {
620
+ if (!position) return undefined;
621
+ return table[name.substring(position)];
622
+ };
623
+
624
+ function getIconForFile(name = '') {
625
+ const directMatch = fileNameIcons[name];
626
+ if (directMatch) return directMatch;
627
+
628
+ const dotPositions = [...name.matchAll(/\./g)].map((match) => match.index);
629
+ if (dotPositions.length === 0) return '';
630
+
613
631
  return (
614
- fileNameIcons[name] ||
615
- twoFileExtensionIcons[name ? name.split('.').slice(-2).join('.') : ''] ||
616
- fileExtensionIcons[name ? name.split('.').pop().toLowerCase() : ''] ||
632
+ getDeepExtensionIcon(threeFileExtensionIcons, name, getPosition(dotPositions, 3)) ||
633
+ getDeepExtensionIcon(twoFileExtensionIcons, name, getPosition(dotPositions, 2)) ||
634
+ fileExtensionIcons[name.substring(getPosition(dotPositions, 1)).toLowerCase()] ||
617
635
  ''
618
636
  );
619
637
  }